Compile a batch file to compile a. Net project

Source: Internet
Author: User

Q:

How can I compile a. Net project through command line?

 

A:

Use devenv.com installed with Visual Studio and add the following parameters to compile. Net:

C: \ Program Files \ Microsoft Visual Studio 8 \ common7 \ ide \ devenv.com D: \ projects \ yourproject. csproj/rebuild "release"

Of course, you can also compile a batch file to compile the. NET solution (. sln), as shown below:

PATH %; C: \ Program Files \ Microsoft Visual Studio 8 \ common7 \ ide

Devenv.com c: \ solution1 \ solution1.sln/rebuild "release"
Devenv.com c: \ solution2 \ solution2.sln/rebuild "release"
Devenv.com c: \ solution3 \ solution3.sln/rebuild "release"

...

For more information about the batch processing rules and syntax, see the bat detailed manual.

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.