H
HONOREDANCESTOR
I would like to put a dll and a project in the same solution. So I
created a project (of type exe) and then I chose 'new project' (of
type class library) and picked the option 'same solution'. So it
looks like I created 2 projects in the same solution, which is what I
wanted to do.
However, I want the exe-project to call the dll-project. The dll
project has a class called "ClassSayThings", and a method called
"sayHello".
When I look in Solution Explorer, I see the following:
CallerOfDll
My Project
Form1.vb
TheCalledDLL
My Project
ClassSayThings.vb
(I wanted to change the name of the 'My Project' entries but I can't
find a way to do that.)
Now in the exe-project, I want to add a reference to the dll. I click
on 'Project-Add references' But I don't see the reference to
"TheCalledDLL" in the reference list of dotnet libraries, though I do
see a reference to the assembly 'TheCalledDll" in the "Projects" tab
of the 'add references' box.
Likewise, when I try to add a line of code to the caller as follows:
Dim NewClassInstance as TheCalledDll.ClassSayThings
I fail - there is no such type as "TheCalledDll.ClassSayThings'.
Is there something I am missing?
Thanks,
HA
created a project (of type exe) and then I chose 'new project' (of
type class library) and picked the option 'same solution'. So it
looks like I created 2 projects in the same solution, which is what I
wanted to do.
However, I want the exe-project to call the dll-project. The dll
project has a class called "ClassSayThings", and a method called
"sayHello".
When I look in Solution Explorer, I see the following:
CallerOfDll
My Project
Form1.vb
TheCalledDLL
My Project
ClassSayThings.vb
(I wanted to change the name of the 'My Project' entries but I can't
find a way to do that.)
Now in the exe-project, I want to add a reference to the dll. I click
on 'Project-Add references' But I don't see the reference to
"TheCalledDLL" in the reference list of dotnet libraries, though I do
see a reference to the assembly 'TheCalledDll" in the "Projects" tab
of the 'add references' box.
Likewise, when I try to add a line of code to the caller as follows:
Dim NewClassInstance as TheCalledDll.ClassSayThings
I fail - there is no such type as "TheCalledDll.ClassSayThings'.
Is there something I am missing?
Thanks,
HA