title: Central location for Version info for .Net Core 6 solution in Visual Studio 2022
body: <p>For ASP.Net with Visual Studio 2019, I created a shared AssemblyInfo.cs file which was then referenced in each of the projects of the Solution. Thereby giving me one location to set the Version info which would then be set for each project.</p>
  <pre><code>using System.Reflection;
  using System.Runtime.InteropServices;
  using JetBrains.Annotations;
  
  [assembly: AssemblyConfiguration(&quot;&quot;)]
  [assembly: AssemblyCompany(&quot;Company Name&quot;)]
  [assembly: AssemblyProduct(&quot;Product name&quot;)]
  [assembly: AssemblyCopyright(&quot;Copyright © Company. All Rights Reserved.&quot;)]
  [assembly: AssemblyTrademark(&quot;&quot;)]
  [assembly: AssemblyCulture(&quot;&quot;)]
  
  // Setting ComVisible to false makes the types in this assembly not visible 
  // to COM components.  If you need to access a type in this assembly from 
  // COM, set the ComVisible attribute to true on that type.
  [assembly: ComVisible(false)]
  
  [assembly: AssemblyVersion(&quot;1.15.0&quot;)]
  [assembly: AssemblyFileVersion(&quot;1.15.0.7156&quot;)]
  [assembly: AssemblyInformationalVersion(&quot;1.15.0&quot;)]
  </code></pre>
  <p>Each project had a simplified AssemblyInfo.cs file:</p>
  <pre><code>using System.Reflection;
  using System.Runtime.InteropServices;
  
  // General Information about an assembly is controlled through the following 
  // set of attributes. Change these attribute values to modify the information
  // associated with an assembly.
  [assembly: AssemblyTitle(&quot;ProjectName&quot;)]
  [assembly: AssemblyDescription(&quot;&quot;)]
  // The following GUID is for the ID of the typelib if this project is exposed to COM
  [assembly: Guid(&quot;xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&quot;)]
  </code></pre>
  <p>and the shared AssemblyInfo.cs file was included in each project as a Link.</p>
  <p>I am starting a new solution using Visual Studio 2022 and .Net Core 6. I see that I can set the Version, AssemblyVersion and FileVersion in the csproj of each project ... but I can't see how I can have a single central place to set the values as I did in the previous solution.</p>
  <p>I have seen that I can revert to the manual creation of the AssemblyInfo.cs file, but is there a way to do what I want without disabling the current standard way of doing it (in VS2022 / .Net Core 6)?</p>
  <p>The code is under source control (SVN) but we do not (currently) use any build or CI tools. I just want to be able to set the version to a specific value and have it the same for all projects within the solution. I appreciate I could open each csproj file and update them each, but I'd rather have a single location.</p>