Can I set the general major.minor.release file for solution in Visual Studio

I know that I can set the major and minor release numbers for each project in my solution in VS. Can I set the common major.minor number for all my projects in my decision that everyone has the same format, for example. 2.3.3?

+3
source share
3 answers

I recommend that you have a common file with a name GlobalAssemblyInfo.csthat contains assembly information that is used throughout your solution. It probably includes the following attributes:

[assembly: AssemblyProduct("Your Product Name")]
[assembly: AssemblyCompany("Your Company")]
[assembly: AssemblyCopyright("Copyright © 2010 Your Company")]
[assembly: AssemblyTrademark("Your Trademark (if applicable)")]

[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

AssemblyInfo.cs, , . , , ,

[assembly: AssemblyTitle("Your Assembly Title")]
[assembly: AssemblyDescription("Your Assembly Description")]
[assembly: AssemblyCulture("Assembly Culture (if not neutral)")]

[assembly: ComVisible(true/false)]
[assembly: Guid("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")]

, , GlobalAssemblyInfo.cs :

  • , "" " ".
  • .
  • "" " " .
+3

. ( ) , . Version.cs, AssemblyVersion AssemblyFileVersion, .

,  

+2

, , , . AssemblyProduct. AsssemblyInfo.cs , AssemblyProduct ? ?

+2

Source: https://habr.com/ru/post/1776406/


All Articles