Yanshof Yanshof - 2 months ago 7
C# Question

How to update all the project in the solution with the same version number ?

I have some solution that contain in it 20 project ( dll ) and one main project ( exe )

the .exe project have some version number (A.B.C.D) and i want to update all the all in the solution with the same version number as the .exe

Is there any way to update all the project in the solution with the same version id ?

Answer Source

You could use a "shared assembly info". We're using this concept in several of our solutions.

Just a few hints (for more details see the linked blog post below):

  • Add a SharedAssemblyInfo.cs as a solution item
  • This shared file contains all the information that the projects have in common: e.g. version number, company name, ...
  • Add this file as a link to the projects
  • Delete attributes that would now be doubled from the individual assembly info files

https://blogs.msdn.microsoft.com/jjameson/2009/04/03/shared-assembly-info-in-visual-studio-projects/