S
Stefan
Hi,
I'm a VS/C# beginner and have a question on how I should structure my
C# projects.
I'm currently coding the basics for a larger project (base classes,
data access, business logic, UI stuff, main application). Up to now I
put each of these tiny bits in its own project that finally results in
a DLL, some consisting of only one .cs source file, some more (maybe
up to 10). In higher level projects I reference these DLLs (I do not
include the project). In the main app I just reference DLL's on form
window level maybe some business logic DLLs if needed.
Now I get into trouble because not all DLL's will get updated
automatically when I build the main application exe, only those that
are directly referenced. Also while developing I build all DLLs in
debug mode. Once a base DLL is fully tested, I want to switch to
release build. Which means I must update all references to this DLL
from the debug to the release directory.
Another problem is that some DLL's will get used in a MS-Office
application, which means that they must get "signed". And it is not
enough to just "sign" the top level DLLs I also must sign all
referenced lower level DLLs. Which leads to the questions why not sign
all DLL's?
Can somebody please advice me for a best practice with VS. Maybe there
is an MSDN article or book that shows which possibilities I have.
Maybe also regarding the fact that I must some day in the future
decide which DLL versions numbers are compatible (up to now I'm lazy
and just don't use other version numbers other than 1.0.0.0, this is
not a problem now, as the final version is not yet complete).
TIA,
Stefan
I'm a VS/C# beginner and have a question on how I should structure my
C# projects.
I'm currently coding the basics for a larger project (base classes,
data access, business logic, UI stuff, main application). Up to now I
put each of these tiny bits in its own project that finally results in
a DLL, some consisting of only one .cs source file, some more (maybe
up to 10). In higher level projects I reference these DLLs (I do not
include the project). In the main app I just reference DLL's on form
window level maybe some business logic DLLs if needed.
Now I get into trouble because not all DLL's will get updated
automatically when I build the main application exe, only those that
are directly referenced. Also while developing I build all DLLs in
debug mode. Once a base DLL is fully tested, I want to switch to
release build. Which means I must update all references to this DLL
from the debug to the release directory.
Another problem is that some DLL's will get used in a MS-Office
application, which means that they must get "signed". And it is not
enough to just "sign" the top level DLLs I also must sign all
referenced lower level DLLs. Which leads to the questions why not sign
all DLL's?
Can somebody please advice me for a best practice with VS. Maybe there
is an MSDN article or book that shows which possibilities I have.
Maybe also regarding the fact that I must some day in the future
decide which DLL versions numbers are compatible (up to now I'm lazy
and just don't use other version numbers other than 1.0.0.0, this is
not a problem now, as the final version is not yet complete).
TIA,
Stefan