Auto Versioning in Visual Studio 2017 (.NET Core)

后端 未结 16 1468
一整个雨季
一整个雨季 2020-11-28 18:45

I have spent the better part of a few hours trying to find a way to auto-increment versions in a .NETCoreApp 1.1 (Visual Studio 2017).

I know the the AssemblyInfo.cs

16条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-28 19:07

    These values are now set in the .csproj file:

    
        netcoreapp1.1
        1.0.6.0
        1.0.6.0
        1.0.1
    
    

    These are the same values you see if you go in the Package tab in the project settings. While I don't think you can use * to autoincrement the version, what you can do is introduce a post-processing step that replaces the versions for you (e.g. as part of your continuous integration).

提交回复
热议问题