Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

.NET setting package version with version autoincrement

$
0
0

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?


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>