Updating the version number of all assemblies in a solution

前端 未结 6 1939
清歌不尽
清歌不尽 2020-12-08 03:00

I\'ve got a rather large solution in Visual Studio. Is there a way to update the Major / Minor version numbers for all the assemblies in the solution in one go?

6条回答
  •  青春惊慌失措
    2020-12-08 03:11

    Also you can create some "core" assembly and add into each your assembly reference to "core" assembly. "core" assembly will constaint constant. In this case in each Assembly info file will be set asembly version from "core" constant. For example:

    "core" assembly has file Ver.cs with constant: public const string Value = "0.0.0.99";

    in each solution assembly info will: [assembly: AssemblyFileVersion(Ver.Value)]

提交回复
热议问题