Change Assembly Version in a compiled .NET assembly

前端 未结 6 1943
攒了一身酷
攒了一身酷 2020-12-01 05:17

Simple question... is there a way to change the Assembly Version of a compiled .NET assembly?

I\'d actually be fine with a way to change the Assembly File Version.

6条回答
  •  执念已碎
    2020-12-01 05:35

    It sounds like your process is heavy because you have to update multiple AssemblyInfo files. Have you considered sharing the same AssemblyInfo file between projects? Derik Whittaker gives a good example on how to do this.

    Once you have a single file, you could then go the extra distance by having a build process update your single AssemblyInfo version using MSBuild or NAnt.

提交回复
热议问题