Skip to main content

How to patch AssemblyInfo in TeamCity for .net core 2.1 projects?

In the .net core 2.1 project, there is a *.csproj file, that contains assembly information:

<PropertyGroup>
    <AssemblyVersion>2019.1.15341.0</AssemblyVersion>
    <FileVersion>2019.1.15341.0</FileVersion>
    <Version>2019.1.15341</Version>
</PropertyGroup>

In Standard .net projects there were Properties/AssemblyInfo.cs which contained the Assembly information, but in the .net core, there is no AssemblyInfo.cs, all Assembly information are in the csproj.

How can I change the Assembly Version, File Version in Assembly Info Patcher in TeamCity for the .net core projects?

Gour Gopal
  • 153
  • 1
  • 6