I would like to support .NET 3.0 and .NET 4.0 for my project. My current solution is to have two project files - one for each version of .NET. Is there a better / more convenient way?
+1
A:
See my answer to this question: http://stackoverflow.com/questions/3212101/build-system-for-targeting-multiple-net-versions/3214266#3214266
The short answer is that there isn't an easy way to do this. The best I've found is to use separate projects (with #define's set up appropriately) and use "Add as Link" to share code.
Stephen Cleary
2010-07-22 14:01:54