I could need some advice on how to work with a project that should work
with framework 1.1 and 2.
Currently i work on a VS solution with about fifteen projects within. Most
of them we convert to VS2005 but a few of them are base libraries that are
used in VS 2003 solutions / dotnet 1.1 as well.
To handle this, we now maintain a version of the solution/projects files
for each version.
How can i make sure, that when you work on the VS2005 projects you won't
mess up the code for 2003? Two things i have in mind are
- Configure the base library projects to only use ISO-1 csharp features?
(i don't know even know if that setting is really exactly the same as
dotnet1.1)
- Set all references of this libraries back to the 1.1 framework dlls?
(but i have no glue if that is such an good idea to mix the versions and
then it is compiled with dotnet 2.0 csc anyway)
Did i miss some project setting for the target framework so i could just
say "this specific project has to work with and is compiled/compilable on
framework 1.1"?
btw: for specific code for dotnet2 that honors deprecated/new functions i
have defined a constant on each vs2005 project DOTNET_2 and then #if
DOTNET_2 #else #endif handling in the code.
Isn't there really no way to determine the framework on compile time in
the code? When i think back to C++ times, microsoft placed all kind of
#defines into the headers with most of them noone had an idea what they
could be good for so how come i don't find some that says
"I_AM_DOTNET_2_AND_COMPILED_ON_A_MACHINE_WITH_OFFICE_AND_SQLSERVER_INSTALLED"
or something like that :)