build-info-go
build-info-go copied to clipboard
NuGet - Remove leading zeros in packages versions
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