Suggestion: Use the package name from Nuget site instead of the name user enters when running "dotnet add package" command #6162
Labels
Platform:Xplat
Product:dotnet.exe
Resolution:Duplicate
This issue appears to be a Duplicate of another issue
From @RickyLin on August 2, 2017 5:40
Steps to reproduce
run the follow commands (I run them on Mac OS):
mkdir demo
cd demo
dotnet new console
dotnet add package microsoft.aspnetcore.mvc.core
vim demo.csproj
Look at the
PackageReference
element in demo.csprojExpected 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 ofmicrosoft.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
The text was updated successfully, but these errors were encountered: