Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NuGet - Remove leading zeros in packages versions #245

Open
RobiNino opened this issue Apr 2, 2024 · 0 comments
Open

NuGet - Remove leading zeros in packages versions #245

RobiNino opened this issue Apr 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@RobiNino
Copy link
Contributor

RobiNino commented Apr 2, 2024

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 RobiNino added the bug Something isn't working label Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant