[英]How can i create .bat file to run "devenv" command with VS2012 Developer Command Prompt?
i want to run this code to rebuild my project every X minutes我想每 X 分钟运行一次此代码来重建我的项目
devenv /rebuild Debug "C:\\inetpub\\wwwroot\\myProject\\Project.sln" devenv /rebuild 调试“C:\\inetpub\\wwwroot\\myProject\\Project.sln”
Now i can run this command only in Developer Command Prompt for VS2012, my question is, can i create .bat file to run this through Developer command prompt, if yes, what is the code lines that i need to write in .bat file?现在我只能在 VS2012 的开发人员命令提示符中运行此命令,我的问题是,我可以创建 .bat 文件以通过开发人员命令提示符运行它吗?如果是,我需要在 .bat 文件中编写哪些代码行?
There is a batch file called: vsVars32.bat .有一个名为: vsVars32.bat的批处理文件。
Call that from your .bat file and it will setup the environment.从您的 .bat 文件中调用它,它将设置环境。
(Note there are other 'flavors' of the file, I think that is the correct one). (请注意,该文件还有其他“风味”,我认为这是正确的)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.