总结问题:
我正在为某些项目使用Visual Studio 2015,我想做的是运行一个批处理文件,该文件将打开一个应用程序(无论哪个应用程序)。问题是,VS2015会卡在构建过程中,直到我的应用程序关闭为止。
批处理工作正常。您可以像这样批量处理:
start notepad.exe
或者您想要什么,您在这里打开什么应用程序都没有关系。
我尝试过的内容:
我已经尝试了一些替代方案,例如...
我要尝试的内容:
最后,我要获取的只是一批,用于在项目的构建/重建完成后打开应用程序而不会卡在某个地方。
即使构建是“成功构建”,它也将保留在“构建”过程中
答案 0 :(得分:0)
Unfortunately I believe all processes spun off by the build have to be joined and returned successfully for VS to consider the build a success. Instead, is it possible in your use-case to attach the batch file to the execution step of your project? In the project settings you can modify the command line arguments to spin off your batch file before executing your project executable. Is there any issues with this approach?
I found this too, would this help: Visual Studio post build events stuck waiting for executable to finish before running app in debug mode