Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12141

Package versioning in C#

$
0
0

Getting the following error when trying to publish our package after successfully building it.

/usr/share/dotnet/sdk/8.0.204/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.GenerateAssemblyInfo.targets(226,5): error NETSDK1018: Invalid NuGet version string: '1.0.0-06181390'. [/app_build/OurProject/OurSolution/OurSolution.csproj]

1.0.0-06181390 is our version which we are giving using /p:Version=$VERSION variable while building it and publishing it through GitLab pipeline. Basically, we are using the CI_COMMIT_SHORT_SHA at the end of the version, like 1.0.0-$CI_COMMIT_SHORT_SHA

It was working fine till a couple of days ago, but now we are getting this. Any help on understanding why the sudden change might have occurred?


Viewing all articles
Browse latest Browse all 12141

Trending Articles