Targetting a class library for both 3.5 and 2.0
- From: Lasse Vågsæther Karlsen <lasse@xxxxxxxxxxx>
- Date: Tue, 20 Nov 2007 15:38:31 +0100
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.
--
Lasse Vågsæther Karlsen
mailto:lasse@xxxxxxxxxxx
.
- Follow-Ups:
- Re: Targetting a class library for both 3.5 and 2.0
- From: Samuel R . Neff
- Re: Targetting a class library for both 3.5 and 2.0
- Prev by Date: Interact with 2 or more windows in the same application
- Next by Date: Re: Bug in 2008
- Previous by thread: Interact with 2 or more windows in the same application
- Next by thread: Re: Targetting a class library for both 3.5 and 2.0
- Index(es):
Relevant Pages
|