How to change assembly info in asp.net core?

被刻印的时光 ゝ 提交于 2019-12-05 07:24:24
Set

Right now properties could be defined in .csproj or using AssemblyInfo.cs, but only the one place could be used, otherwise "Duplicate" errors are generated.


If you want to use AssemblyInfo.cs, add the following into .csproj to avoid duplication errors:

<PropertyGroup>
  <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>

If you are interesting how does it work, look into GenerateAssemblyInfo task.


Otherwise, remove AssemblyInfo.cs and add the following property into your .csproj file:

<PropertyGroup>
  <AssemblyVersion>1.2.3.4</AssemblyVersion>
</PropertyGroup>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!