O
Oenone
In VB6, it's possible to create a project with a class library within it.
The project can then be run with F5, and it sits and waits for an external
process to create an instance of one of its objects. This is extremely
useful, as it allows me (for example) to create a PlugIn class running in
source, and call it from a host application that is running as an
executable.
In VB.NET, I'm not allowed to run class library projects, I simply get an
error message: "A project with an Output Type of Class Library cannot be
started directly. In order to debug this project, go to the Debugging tab
under Configuration Settings in Project Properties, and set the Start Action
to Start External Program or Start URL. Alternatively, you can add a
non-library project to this solution that uses a reference to this project
and set it as the startup project."
This is really frustrating. I can obviously launch the host app via the
Start Action, or I can add the host app's source code to my solution, but in
either case I need to close the host app in order to get back into the
PlugIn source to make any changes. The app in question has a fairly involved
and slow startup procedure, and re-running and then closing the application
over and over again gets very tedious very quickly.
Some questions:
- is there a better way to do this?
- does this scenario change at all in VS2005?
My thanks in advance,
The project can then be run with F5, and it sits and waits for an external
process to create an instance of one of its objects. This is extremely
useful, as it allows me (for example) to create a PlugIn class running in
source, and call it from a host application that is running as an
executable.
In VB.NET, I'm not allowed to run class library projects, I simply get an
error message: "A project with an Output Type of Class Library cannot be
started directly. In order to debug this project, go to the Debugging tab
under Configuration Settings in Project Properties, and set the Start Action
to Start External Program or Start URL. Alternatively, you can add a
non-library project to this solution that uses a reference to this project
and set it as the startup project."
This is really frustrating. I can obviously launch the host app via the
Start Action, or I can add the host app's source code to my solution, but in
either case I need to close the host app in order to get back into the
PlugIn source to make any changes. The app in question has a fairly involved
and slow startup procedure, and re-running and then closing the application
over and over again gets very tedious very quickly.
Some questions:
- is there a better way to do this?
- does this scenario change at all in VS2005?
My thanks in advance,