Setting the version number for .NET Core projects - CSPROJ - not JSON projects

前端 未结 10 923
一个人的身影
一个人的身影 2020-12-02 08:58

This question is very similar to Setting the version number for .NET Core projects, but not the same. Using the latest stable version of .NET Core at the time of writing (1.

10条回答
  •  星月不相逢
    2020-12-02 09:36

    I use Jenkins + Octopus for CI, and following worked quite well:

    1. Have a pre-build Powershell script that can take CI build number as a param or default to something preset.
    2. Have a separate nuspec file in the project for CI.
    3. The pre-build script would update nuspec file with the latest build version.
    4. Publish project with Jenkins.
    5. Call Nuget manually with a nuspec file from #2.
    6. Push the nuget package to Octopus.

提交回复
热议问题