This article is a mirror article of machine translation, please click here to jump to the original article.

View: 32107|Reply: 0

[Source] .NET Framework projects under the same solution have a unified version number

[Copy link]
Posted on 2020-10-26 16:21:20 | | | |
The easiest way to do this is to open the AssemblyInfo.cs file under each project or use the project properties to modify.

First, the renderings are as follows:



Under Solutions, create a new Version.cs file (The file name doesn't really matter, it doesn't affect compilation and generation), the code is as follows:

Right-click on the project, add an existing file, select the Version.cs file under the solution directory,Add as a link。 As shown below:



Modify the /Properties/AssemblyInfo.cs file of the project and comment out the version settings, as follows:

In this way, we rebuild the solution and all project versions are the same, and if we want to change the version number, we only need to modify the Version.cs file.

(End)





Previous:DMP file import is exceptional
Next:VMware VMs fail to boot the system
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com