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

前端 未结 10 906
一个人的身影
一个人的身影 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:34

    MsBuild 2017 will generate some assembly info if you missing them in Project file.

    If you can read the msbuild target file you can look at:

    [VS Install Dir] \MSBuild\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.GenerateAssemblyInfo.targets

    You will see you can use some property in you project file to disable generated assembly info to prevent duplicated with your generated tools.

    • (This property will on/off all generate assembly info)

提交回复
热议问题