简体   繁体   中英

How do I build an executable file in visual studio 2010 that doesn't rely on the .NET 4 SDK DLL/Library files?

How do I build an executable file in visual studio 2010 that doesn't rely on the .NET 4 SDK DLL/Library files?

I'm getting an error that informs that the system.dll is missing, I'm assuming this is part of the SDK.

If you're building a.Net application this is simply not possible. A.Net application requires the.Net runtime to be installed on the machine that it is run on.

If you're trying to build a pure C++ application which has no.Net framework support then make sure the Common Language Runtime support is disabled for the project.

  • Right click on the project and select properties
  • Navigate to Configuration Properties -> General
  • Ensure "Common Language Runtime Support" is sot to "No Common Language Runtime Support"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM