Use a. bat file to compile the project files in bulk.

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.