Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Try building via NAnt
nant.sourceforge.net/faq.html#change-targetframework
it is quite possible to specify the framework in the build parameters:
%windir%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe "c:\dev\MySolution.sln" /p:Configuration=RELEASE /p:TargetFrameworkVersion=v3.5
<PropertyGroup Condition=" '$(TargetFrameworkVersion)' == 'v3.5' ">
<DefineConstants>$(DefineConstants);NET35</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(TargetFrameworkVersion)' == 'v4.5' ">
<DefineConstants>$(DefineConstants);NET45</DefineConstants>
</PropertyGroup>
#if NET45
const int MagicNumber = 42;
#elseif NET35
const int MagicNumber = -1;
#endif
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question