当我一开始在cmd.exe中运行时
"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\VsDevCmd.bat"然后
start MSBuild.exe /t:BatchRebuild /p:Configuration=Debug /noautoresponse "C:\Users\developer\Documents\Visual Studio 2013\Projects\AutoCAD_Net_Extension1\AutoCAD_Net_Extension1\AutoCAD_Net_Extension1.csproj"然后成功地执行了这两个命令。
但是,当我将它们写入BAT-file中时--第二个命令没有启动:
:: This script builds your project for all target AutoCAD versions, are pointed
:: in the "BuildFor" property of your csproj-file.
:: WARNING If you will rename your csproj-file later, then don't forget to do
:: the same in this file (look last parameter of the msbuild command below).
"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\VsDevCmd.bat"
start MSBuild.exe /t:BatchRebuild /p:Configuration=Debug /noautoresponse "C:\Users\developer\Documents\Visual Studio 2013\Projects\AutoCAD_Net_Extension1\AutoCAD_Net_Extension1\AutoCAD_Net_Extension1.csproj"为什么会发生这种事?我怎么才能修好它?
发布于 2015-03-11 11:04:32
工作变量(有必要为其他BAT文件的执行添加call ):
:: This script builds your project for all target AutoCAD versions, are pointed
:: in the "BuildFor" property of your csproj-file.
:: WARNING If you will rename your csproj-file later, then don't forget to do
:: the same in this file (look last parameter of the msbuild command below).
call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\VsDevCmd.bat"
MSBuild.exe /t:BatchRebuild /p:Configuration=Debug /noautoresponse "C:\Users\developer\Documents\Visual Studio 2013\Projects\AutoCAD_Net_Extension1\AutoCAD_Net_Extension1\AutoCAD_Net_Extension1.csproj"发布于 2015-03-11 10:51:40
起始引号中的第一个参数必须是窗口标题。把一个空白的放进去。
Start "" rest of command linehttps://stackoverflow.com/questions/28984308
复制相似问题