Target .NET 3.5 C ++ / CLI in Visual Studio 2010 Beta 2

Has anyone managed to convert the VS 2008 C ++ / CLI project (vcproj) into the VS 2010 project (vcxproj), supporting .NET 3.5 as the target structure? I could not do this and successfully implemented the project. The project compiles fine in VS2008 as .NET 3.5 and works fine in VS2010 as .NET 4.0, but I cannot target .NET 3.5 in 2010. The IDE does not seem to provide it with an option and modifies the vcxproj file by adding

<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>

causes compilation to fail with an error:

Error   1   error C1001: An internal error has occurred in the compiler.

According to this link , there are apparently some differences in the compilers used between VS2008 and 2010, but manually editing the project file is still suggested as a solution. Does anyone know about this?

+3
source share
4 answers

Thanks for the tip on TargetFrameworkVersion. This worked for me, but it unfortunately will not help you.

It is easy to get an β€œinternal compiler error” if you have old files (PCH files, object files) made for another version of the C ++ compiler. Did you clear everything when you changed the tool version?

0
source

.Net framework v3.5 VS2010, C1001 - , VS2010 System.Core . , . VS, , :

<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
+13

, Brickner - 3.5 !

My own strange experiences with crashes are that they were fixed by including precompiled headers, which is even weirder because stdafx.h was empty, so I don’t know what they are doing.

+3
source

Install this hotfix and your problems probably disappeared: http://support.microsoft.com/kb/976656

+1
source

Source: https://habr.com/ru/post/1729314/


All Articles