build-info-go icon indicating copy to clipboard operation
build-info-go copied to clipboard

NuGet - Remove leading zeros in packages versions

Open RobiNino opened this issue 10 months ago • 0 comments

Describe the bug

NuGet 3.4 introduced a change whereby leading zeroes are removed from version numbers when restoring/packing (Normalized version numbers). When this project searches for package in cache it should also search for it without these leading zeros.

Current behavior

The exact version listed in the .csproj file is expected and not found, which produced the following warning:

[🟠Warn] The following NuGet package <package> with version <version> was not found in the NuGet cache <path to cache>. Skipping adding this dependency to the build info. This might be because the package already exists in a different NuGet cache, possibly the SDK's NuGetFallbackFolder cache. Removing the package from this cache may resolve the issue.

Reproduction steps

Restore a project that has such a version while collecting build info, the warning should be logged.

Operating system type and version

NuGet Version: 6.8.0.131

RobiNino avatar Apr 02 '24 06:04 RobiNino