How to patch AssemblyInfo in TeamCity for .net core 2.1 projects?
You can use File Content Replacer build feature with predefined templates for .NET Core
https://www.jetbrains.com/help/teamcity/file-content-replacer.html#.NET+Core+csproj+templates