Restore packages does not preserve package name cases
See original GitHub issueSteps to reproduce
- Create a new project
- Add
Deedle
package - Restore packages into packages directory
$ dotnet new classlib -n Lib
...
$ dotnet add Lib.csproj package Deedle
...
$ cat Lib.csproj
...
<ItemGroup>
<PackageReference Include="Deedle" Version="2.0.1" />
</ItemGroup>
...
$ dotnet restore --packages packages
Restore completed in 906.43 ms for /home/vpap/temp/p1/Lib/Lib.csproj.
$ ll packages/
total 0
drwxrwxrwx 0 vpap vpap 512 Apr 6 18:13 deedle/
Expected behavior
Folder under packages should be Deedle
.
Actual behavior
Instead it is always in small case; deedle
.
Environment data
(This is in Win10 WSL)
dotnet --info
output:
$ dotnet --info
.NET Core SDK (reflecting any global.json):
Version: 2.2.202
Commit: 8a7ff6789d
Runtime Environment:
OS Name: ubuntu
OS Version: 16.04
OS Platform: Linux
RID: ubuntu.16.04-x64
Base Path: /usr/share/dotnet/sdk/2.2.202/
Host (useful for support):
Version: 2.2.3
Commit: 6b8ad509b6
.NET Core SDKs installed:
2.2.202 [/usr/share/dotnet/sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.2.3 [/usr/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.2.3 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.2.3 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:7 (5 by maintainers)
Top Results From Across the Web
NuGet Package Restore Not Working
Re-installing a package by it's name in all solution's projects: ... After this your nuget packages should be restored, i think this might...
Read more >Troubleshooting NuGet Package Restore in Visual Studio
A description of common NuGet restore errors in Visual Studio and how to troubleshoot them.
Read more >Azure Devops Nuget Restore failing in Community Forums
The reason you have a version number at the end of the package name is probably because the project was using a local...
Read more >Dotnet restore vs nuget restore. Share. In my code repo, there
Tools-->Nuget Package Manager-->Package Manager Console and then . dotnet restore doesn't support packages. By changing so, you will be able to restore the ......
Read more >NuGet packages in the Package Registry
When asking for versions of a given NuGet package name, the GitLab Package Registry returns a maximum of 300 most recent versions. Do...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @fractus. Thanks for reporting an issue with us.
This is by design as NuGet stores the packages based on a normalized (lower case) name. cc @nkolev92 from the NuGet team to confirm that this is the expected behavior.
Are you running into any problems with the way NuGet is storing the package?
Thanks @fractus. I’m going to close this issue for now, but feel free to reopen if you run into any issues.