I auto-increment assembly/file version numbers using a T4 Text Template that generates an AssemblyInfo.cs
file looking like this:
[assembly: AssemblyVersion("1.0.0.525")]
[assembly: AssemblyFileVersion("1.0.0.525")]
[assembly: AssemblyInformationalVersion("1.0.0.525")]
The project is set to generate a package on build. However, the created package file name always ends with *.1.0.0.nupkg
because the <Version>
element is missing in the csproj
-file.
Is there a way to use the versions specified in AssemblyInfo.cs
as the package version?