Re: multi-project solution
IMHO,
All logic should (for any non-trivial program) be coded into class libraries, and designed to work in a host agnostic manner.
This allows the same logic assembly to be used with Windows Forms, Web Pages, Web Services, System Services, COM+ Applications, WCF Services.......
Re: multi-project solution
They could be under the same solution or not. You can compile them as libraries ( and of course you have to remove all windows forms and console code, keep just the algorithm ) and use them from the third project which is Windows Forms. You can also keep the code in a *.cs file and Add Existing item from the third project.
Of course you have to do some modifications to your projects .
Re: multi-project solution - a few more questions
thank you both.
in order to use my class library project in another project - should i do anything else except for adding a "using" statement in the main execution file and a reference to the project?
when referencing the .dll, should it be the one under the bin/ directory or under obj/ ?
what could be the reason for the load error i got?
what's the dis/advantages of including a dll project as part of the solution rather than keeping it apart?
Re: multi-project solution
Quote:
Originally Posted by tamaro
thank you both.
in order to use my class library project in another project - what should i do except for adding a "using" statement in the main execution file?
what could be the reason for the load error i got?
what's the dis/advantages of including a dll project as part of the solution rather than keeping it apart?
If you have a class library ( dll assembly ) you have to add Reference to that assembly and add a using statement.
Example