Auto generate AssemblyInfo.cs in .NET Core

As you can see in my last post, I’m moving my TitiusLabs.Core PCL to .NET Standard. After project migration, you can choose to maintain AssemblyInfo - and in my previous post you can see how to do it - or move to an auto generation model, as we’ll see in this post.

To auto generate the AssemblyInfo.cs, simply put the following PropertyGroup element in your .csproj:

  <Authors>Fabio Cozzolino</Authors>

To avoid the Duplicate 'System.Reflection.AssemblyCompanyAttribute' attribute (CS0579) remove the AssemblyInfo.cs and set to true the GenerateAssemblyInfo in .csproj:


And that’s all!

Found a problem? Edit this post