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

こ雲淡風輕ζ 提交于 2019-11-30 23:33:00

Thanks for the tip on TargetFrameworkVersion. It worked for me, but this unfortunately does not help you.

It is easy to get "internal compiler error" if you have some old files (PCH files, object files) made for another version of the C++ compiler lying around. Have you cleaned everything when you changed tools version?

When you're targeting .Net framework v3.5 and building using VS2010 you can sometimes trigger the linker error C1001 due to VS2010 automatically adding a reference to System.Core when you're compiling. This isn't explicit and will not show up in your references but rather done during compile time. You can tell VS to not add the assemblies by adding this element in your Globals PropertyGroup:

<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>

Wow, the response to Brickner's bug report is devastating - targeting 3.5 is not supported and won't be fixed!

My own weird experiences with crashes are that they were fixed by turning on precompiled headers, even more strange because stdafx.h was empty so I don't know what they are doing.

Install this hotfix and your troubles are probably gone: http://support.microsoft.com/kb/976656

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!