I am having trouble building C++ projects targeting the .Net Framework v3.5 in VS2010 via automated builds (see my other question here)
While I'm pretty sure that the answer provided to the question is correct, I have hit another problem which is still preventing the builds from working.
I have so far taken the following steps:
- Changed the .vcxproj files manually so that they are targeting the .net framework 3.5
- Changed each project's "Platform Toolset" to v90
- Installed VS2008 SP1 on the build machine
- Opened VS2010 command line on the build machine, set TargetFrameworkVersion=v3.5 and started devenv.exe from the commandline.
- Pass /p:TargetFrameworkVersion=v3.5 to MSBuild in the workflow for my particular build definition
(steps taken from here)
When i kick off a build for these projects, the build will fall over on the very first project with the following error message:
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets (293): Specified platform toolset (v90) requires Visual Studio 2008. Please make sure that Visual Studio 2008 is installed on the machine.
I really am at a loss with this issue. I have no idea why MSBuild would think that VS2008 is not installed when it clearly is. I have tried changing the MSBuild platform from Auto to X86 and that made no difference.
My build machine is running Windows Server 2008 R2 Enterprise (64-bit)
As always, thanks for any help offered