Conditionally changing target framework version
问题 I'm trying to compile an #ifdef'd codebase to two different target frameworks, namely 3.5 and 4.0. I attempted to modify the .proj files in the solution to no avail. It seems MSBuild / VS2012 isn't picking up the solution configuration change via UI. This is a fragment of one of the .proj files: <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <DebugType>pdbonly</DebugType> <Optimize>true</Optimize> <OutputPath>..\Binaries\</OutputPath> <DefineConstants>TRACE