Reputation: 20179
I have a Visual Studio 2010 Solution with a class library project. What I want to do is compile 2 DLLs on build. I want to compile against .NET 3.5 and .NET 4.0 respectively. Something like below.
myproject\bin\debug\3.5\assembly.dll
myproject\bin\debug\4.0\assembly.dll
Is this possible?
Upvotes: 1
Views: 247
Reputation: 5023
Maybe you'can write a simple problem to execute on each build, it simply does:
I've used this approach before for different purpose.
Upvotes: 1
Reputation: 38179
The target framework is part of the application project settings that cannot depend on the configuration (unlike build settings).
I'm afraid you will have to create a separate project for each framework version.
Upvotes: 0