简体   繁体   English

如何创建 .bat 文件以使用 VS2012 开发人员命令提示符运行“devenv”命令?

[英]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.

相关问题 如何在VS2012的解决方案文件中创建可执行文件? - How to create an executable out of a solution file in VS2012? 无法在VS2012中创建资源文件 - Not able to create resource file in VS2012 如何创建也可以在命令提示符下运行的Windows窗体程序 - How to create a Windows Forms program that can also run at the command prompt 如何在Vs2012中更改异常消息? - How can I change the exception messages in Vs2012? 如何在C#类库项目(VS2012)中嵌入和使用.txt文件作为资源? - How can I embed and use a .txt file as resource in a C# Class Library Project (VS2012)? 如何仅安装 VS2015 的开发人员命令提示符 - How to install just the Developer Command Prompt for VS2015 VS 2017开发人员命令提示中的语言版本 - Language version in Developer Command Prompt for VS 2017 VS2012-编辑项目文件-错误:命令“ Project.UnloadProject”不可用 - VS2012 - Edit Project File - Error: Command 'Project.UnloadProject' is not available 在开发人员命令提示符下运行控制台应用程序 - Run Console application under developer command prompt 在开发人员命令提示符中运行单元测试 - Run unit tests in developer command prompt
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM