?
=?ISO-8859-1?Q?Lasse_V=E5gs=E6ther_Karlsen?=
I have a rather big class library solution with lots of projects.
Some of these projects I'd like to include .NET 3.5 things in, but only
when I'm targetting 3.5.
Basically, I'd like to be able to target 3.5 and rebuild, getting new
things into the new dll's for 3.5, and also be able to target 2.0 and
rebuild, to get files for 2.0.
What is the best way to do this? The "best" way I've come up with so far
is to make a new solution file and new project files with a named
definition and use #if..#endif to make files, or just not include the
3.5 files in the 2.0 projects, but this seems like a rather big
maintenance nightmare.
I'd like to have one solution and all of the projects once, and include
files that may or may not produce any compiled code depending on the target.
Or am I way off target here? Any thoughts would be welcome.
Some of these projects I'd like to include .NET 3.5 things in, but only
when I'm targetting 3.5.
Basically, I'd like to be able to target 3.5 and rebuild, getting new
things into the new dll's for 3.5, and also be able to target 2.0 and
rebuild, to get files for 2.0.
What is the best way to do this? The "best" way I've come up with so far
is to make a new solution file and new project files with a named
definition and use #if..#endif to make files, or just not include the
3.5 files in the 2.0 projects, but this seems like a rather big
maintenance nightmare.
I'd like to have one solution and all of the projects once, and include
files that may or may not produce any compiled code depending on the target.
Or am I way off target here? Any thoughts would be welcome.