我使用的Visual Studio 2010 SP1。
我第一次尝试是这样的:
- 从打开开始菜单中的Visual Studio控制台工具
- 导航到项目文件夹(已经包含可执行文件)
- 运行:
msbuild myproject.sln or msbuild myproject.sln /p:Configuration=Release
- 这成功地建立,但我不能找到一个可执行文件运行
- 我尝试的第二件事是步骤1和2从上方
- 运行:
devenv myproject.sln /Build and devenv myproject.sln /Run
- 这一定程度上工作,但它似乎打开IDE运行构建
- 整点是避免使用IDE的。
现在,我该如何构建和运行,而无需打开IDE的解决方案?
- - - - - - - - - - - - - 固定 - - - - - - - - - - - - -------
问题是,我是找错了地方的可执行文件(小白错误)。 我结束了使用此批处理文件:
msbuild myproj.sln /p:configuration=Release
cd (("Path to executable" usually in the Debug/Release Folder))
myExecutableName
cd (("Path to original folder"))