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

Suggestion: Use the package name from Nuget site instead of the name user enters when running "dotnet add package" command #6162

Closed
livarcocc opened this issue Nov 11, 2017 · 3 comments
Labels
Platform:Xplat Product:dotnet.exe Resolution:Duplicate This issue appears to be a Duplicate of another issue

Comments

@livarcocc
Copy link

From @RickyLin on August 2, 2017 5:40

Steps to reproduce

run the follow commands (I run them on Mac OS):

  1. mkdir demo
  2. cd demo
  3. dotnet new console
  4. dotnet add package microsoft.aspnetcore.mvc.core
  5. vim demo.csproj

Look at the PackageReference element in demo.csproj

Expected behavior

<PackageReference Include="Microsoft.AspNetCore.Mvc.Core" Version="1.1.3" />

Actual behavior

<PackageReference Include="microsoft.aspnetcore.mvc.core" Version="1.1.3" />

Explanation

I typed commands in all lower-case for faster typing speed and commands were run successfully, but in .csproj file, it would better be Microsoft.AspNetCore.Mvc.Core instead of microsoft.aspnetcore.mvc.core.

Environment data

dotnet --info output:

.NET Command Line Tools (1.0.1)

Product Information:
Version: 1.0.1
Commit SHA-1 hash: 005db40cd1

Runtime Environment:
OS Name: Mac OS X
OS Version: 10.12
OS Platform: Darwin
RID: osx.10.12-x64
Base Path: /usr/local/share/dotnet/sdk/1.0.1

Copied from original issue: dotnet/cli#7346

@livarcocc
Copy link
Author

From @rohit21agrawal on August 4, 2017 5:24

CC: @mishra14

@livarcocc
Copy link
Author

Moving this to NuGet for consideration, but I don't believe there is any technical reason to do that, as it does not influence the package id nor the package folder where NuGet restores that package.

On top of that, with tab completion in the CLI, the right casing would be used if the package name were auto-completed in the command line.

@mishra14
Copy link
Contributor

This is a known issue. Please use #5952 to track this.

@mishra14 mishra14 added Product:dotnet.exe Resolution:Duplicate This issue appears to be a Duplicate of another issue Platform:Xplat labels Nov 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform:Xplat Product:dotnet.exe Resolution:Duplicate This issue appears to be a Duplicate of another issue
Projects
None yet
Development

No branches or pull requests

2 participants