Use a. bat file to compile the project files in bulk. 2008-6-1 Source: www.aspcool.com Author: pcjim Click: Times
Use a. bat file to bulk compile each project file in one or more of the solutions generated by Vs.net. Using this batch file in conjunction with Microsoft Visual SourceSafe can improve the compilation speed of the entire project source code.
Primarily through the Devenv command-line switches, DEVENV allows you to set various options for the integrated development Environment (IDE) and to build, debug, and deploy projects from the command line. Use these switches to run the IDE from a script or. bat file, or to start the IDE in a specific configuration.
Example: Buildapp.bat, the file contents are as follows:
Path%path%;D: \program Files\Microsoft Visual Studio 8\Common7\IDE
Devenv/rebuild Debug. \appone\appone.sln/project "Appone.csproj"/projectconfig Debug
Devenv/rebuild Debug. \apptwo\apptwo.sln/project "Apptwo.csproj"/projectconfig Debug
Pause
Two solution files are used in this instance: AppOne.sln and AppTwo.sln.
1, AppOne.sln contains a project file: Appone.csproj.
2. The AppTwo.sln contains two project files: Apptwo.csproj and common.csproj.
Path%path%;D: \program Files\Microsoft Visual Studio 8\Common7\IDE
where "D:\Program Files\Microsoft Visual Studio 8\Common7\IDE" is the installation path for vs.net, it can be modified according to the actual situation.
Buildapp.bat after running as follows:
1, Appone compile information:
2, Apptwo compile information:
Attached: https://msdn.microsoft.com/zh-cn/library/2fdbz5xd.aspx
Use a. bat file to compile the project files in bulk.