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:
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:
- 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 ".
- Msbuild cannot recognize it. in the csproj file, change "$ (msbuildtoolspath) \ microsoft.csharp.tar gets"/> "to" $ (msbuildtoolspath )".
. 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.