简体   繁体   English

如何在 Visual Studio 2010 中构建不依赖于 .NET 4 SDK DLL/库文件的可执行文件?

[英]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?如何在 Visual Studio 2010 中构建不依赖于 .NET 4 SDK DLL/库文件的可执行文件?

I'm getting an error that informs that the system.dll is missing, I'm assuming this is part of the SDK.我收到一条错误消息,提示缺少 system.dll,我假设这是 SDK 的一部分。

If you're building a.Net application this is simply not possible.如果您正在构建一个.Net 应用程序,这根本不可能。 A.Net application requires the.Net runtime to be installed on the machine that it is run on. A.Net 应用程序需要在运行它的机器上安装 .Net 运行时。

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.如果您正在尝试构建没有.Net 框架支持的纯 C++ 应用程序,请确保为项目禁用公共语言运行时支持。

  • Right click on the project and select properties右键单击项目和 select 属性
  • Navigate to Configuration Properties -> General导航到配置属性 -> 常规
  • Ensure "Common Language Runtime Support" is sot to "No Common Language Runtime Support"确保“公共语言运行时支持”设置为“无公共语言运行时支持”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何为Ironpython文件和.Net dll文件构建可执行文件? - How to build a executable for ironpython files and a .Net dll file? Visual Studio 2010 未检测到 .NET 4 - Visual Studio 2010 doesn't detect .NET 4 Visual Studio项目构建为可执行文件和DLL - Visual Studio project build as an executable AND a DLL 对于我在 Visual Studio 2013 中的类库项目; 使用后期构建事件如何将创建的 dll 复制到另一个路径? - For my class Library project in visual Studio 2013 ; Using post build event how do I copy the created dll to another path? .net-如何从Visual Studio的IntelliSense中隐藏类库(dll)的方法/属性? - .net - How do I hide methods/properties of my class-library (dll) from Visual Studio's IntelliSense? .NET Framework 4.5未在Visual Studio 2010中显示 - .Net Framework 4.5 doesn't show up in Visual studio 2010 如何在VB6中使用.NET .DLL文件或库? - How do I use a .NET .DLL file or library in VB6? 如何使用.NET 3.5和Visual Studio 2010构建WCF REST服务? - How to build WCF REST services with .NET 3.5 and Visual Studio 2010? Visual Studio 2019 似乎没有看到我安装了 .NET Core 3.1(使用 SDK) - Visual Studio 2019 Doesn't seem to see that I have .NET Core 3.1 Installed (with SDK) Visual Studio 2010中的参考转发(从库到可执行文件) - Reference forwarding in Visual Studio 2010 (from library to executable)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM