Command Line compilation of Visual Studio solution (. sln) and wise installation script (. WSe)

Source: Internet
Author: User
Tags visual studio 2002

We have been busy submitting project acceptance for the past two days. Ah, our company has an almost abnormal rule: The project files and installation files submitted by you should be irrelevant to the project, even people who do not fully understand the technology compile according to the compilation instructions. To simplify the compilation process and reduce the trouble, I decided to write a batch file. Note the following:

  • Compile. sln

Needless to say,. sln is the solution file of Visual Studio. You only need to install. NET Framework during compilation, and then you can use the msbuild editable. sln file. However, according to the official documentation, msbuild currently only supports 7.0 ~ Version 9.0 (Visual Studio 2002 ~ 2005 generated). sln file. If you are using Visual studio2008, you need to do the following:

    1. Manually change "Microsoft Visual Studio solution file, format version 10.00" in the. sln file header to "Microsoft Visual Studio solution file, format version 9.00 ".
    2. Msbuild cannot recognize it. in the csproj file, change "$ (msbuildtoolspath) \ microsoft.csharp.tar gets"/> "to" $ (msbuildtoolspath )".
  • Compile. WSe

. WSe is the project file (that is, the installation script) of the wise install system tool. It has always been thought that only the wise GUI can be used for manual compilation, after checking its help file, the command is also executed in the command line. The following content is taken from the help file provided by wise:

Additional instructions

According to the prompts of "buxiangliumingzi", we found that msbuild in Framework 3.5 supports the. sln and. csproj project files generated by Visual Studio 2008.

Related Article

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.