Using Jenkins Version Environment Variable in the MSBuild step

后端 未结 4 819
情深已故
情深已故 2021-02-05 23:45

I\'m currently using the Jenkins \"Version Number Plug-In\" to set an Environment Variable for build version. This works fine within jenkins but i need a way to pass this to MSB

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-06 00:15

    The easiest way I´ve found to do this is using the Change Assembly Version. Using that plugin you only need to provide the version number (or the environment variable used) and it will replace it in all the AssemblyInfo.cs files in your workspace.

提交回复
热议问题