Target.Net 3.5 in VS2010 for C ++ executables.

Is it possible in VS2010 to create a mixed-mode executable that targets .Net 3.5?

If we try this, we get Error MSB8009: .NET Framework 2.0 / 3.0 / 3.5 is designed for the v90 platform toolkit. Verify that Visual Studio 2008 is installed on the computer.

If we then change the toolbox in the properties to v100, the resulting executable is still aimed at .Net 4.0.

If we installed VS2008, can we still use the VS2010 compiler and VS2010 CRT compiler in our (native) C ++ code when targeting .Net 3.5?

+7
visual-studio-2010 c ++ - cli
source share
1 answer

As explained in this answer , you need to add TargetFrameworkVersion by manually editing the .vcxproj file.

I have VS2008 installed on this machine, but I think I also chose to enable the VC90 compilers when installing 2010.

However, it does not seem to be supported by the design according to this answer from Microsoft : targeting the 3.5 framework with the Visual C ++ 2010 compiler is not supported. Visual C ++ 2010 compiler only supports framework 4.0 targeting.

+6
source share

All Articles