Equivalent to AssemblyInfo in dotnet core/csproj

As you’ve already noticed, you can control most of these settings in .csproj. If you’d rather keep these in AssemblyInfo.cs, you can turn off auto-generated assembly attributes. <PropertyGroup> <GenerateAssemblyInfo>false</GenerateAssemblyInfo> </PropertyGroup> If you want to see what’s going on under the hood, checkout Microsoft.NET.GenerateAssemblyInfo.targets inside of Microsoft.NET.Sdk.

Can I automatically increment the file build version when using Visual Studio?

In visual Studio 2008, the following works. Find the AssemblyInfo.cs file and find these 2 lines: [assembly: AssemblyVersion(“1.0.0.0”)] [assembly: AssemblyFileVersion(“1.0.0.0”)] You could try changing this to: [assembly: AssemblyVersion(“1.0.*”)] [assembly: AssemblyFileVersion(“1.0.*”)] But this won’t give you the desired result, you will end up with a Product Version of 1.0.* and a File Version of 1.0.0.0. Not … Read more