如何从.NET生成独立的控制台应用程序
How to generate a standalone console application from .NET
编辑:
我在MSVS2012 express上写了一个小的cpp程序(控制台应用程序)。该程序的负责人是:
#include <string>
#include <vector>
#include <algorithm>
using namespace System;
using namespace System::IO;
using namespace std;
我需要在无法安装的计算机上部署可执行文件任何东西(我只是想把它用作一个简单的console.exe)。所以我需要这个应用程序完全独立。这可能吗?
如果你所说的.Net是指Visual Studio,如果你从C/C++ | Code Generation | Runtime Library
选项(/MT或/MTd)中选择了非dll(即静态)运行库,那么你可能会逃脱惩罚。如果你使用dll版本,这些版本需要在你部署应用程序的机器上。
相关文章:
- C++:将控制台输出存储在宏中更好吗
- 如何使用OpenCV将RBG图像转换为HSV,并将H、S和V值保存为C++中的3个独立图像
- 在while循环中输入带有std::cin的字符串后,控制台会输出大量胡言乱语
- SSH通过/sbin/SSH无法读取RSA密钥文件(从控制台运行)
- 独立读取-修改-写入顺序
- C++控制台应用程序阻止退出
- 如何修复此iFile以将.txt输出到控制台
- 为什么控制台要求输入,即使代码中没有输入
- 带有多个独立参数的C++For循环
- 在Qt Creator中,如何在连接到正在运行的进程后查看控制台输出
- 控制台输出在 Qt5 中未正确显示
- C++出现控制台错误.我无法识别源代码的问题
- C++程序不会从 Windows 控制台运行
- 有人可以向我解释为什么控制台输出 0 吗?
- Visual Studio 2017 停止工作,并在打开后显示许多控制台窗口
- 如何从 Win32 C++ 应用程序输出到父控制台窗口?
- Win32 API 控制台光标在 WriteConsole 后不移动
- 独立于平台的方式捕获控制台/终端关闭事件
- 如何从.NET生成独立的控制台应用程序
- 在程序运行时隐藏控制台的独立于平台的方法