I am trying to create a NuGet package from my C# class library project. It uses automatic versioning set in AssemblyInfo.cs
:
[assembly: AssemblyVersion("0.5.*")]
But package information is taken from the Version
property from the .csproj
file.
Because of this I have to either update version twice in both files or remove version from AssemblyInfo.cs
and stop using automatic versioning (looks like it is not supported in .csproj
).
Is there any way to set package version (to 0.5
in my example) and keep automatic versioning of the file while updating version in only one file?