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

dotnet add package doesn't honor package type #5998

Closed
bricelam opened this Issue Mar 10, 2017 · 4 comments

Comments

Projects
None yet
3 participants
@bricelam
Copy link
Contributor

bricelam commented Mar 10, 2017

Steps to reproduce

  1. dotnet add package Microsoft.EntityFrameworkCore.Tools.DotNet

Expected behavior

<DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="1.0.0" />

Actual behavior

<PackageReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="1.0.0" />

Environment data

.NET Command Line Tools (1.0.0)

Product Information:
Version: 1.0.0
Commit SHA-1 hash: e53429f

Runtime Environment:
OS Name: Windows
OS Version: 10.0.15042
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\1.0.0

@bricelam bricelam changed the title dotnet add package doesn't honor DotnetCliTool dotnet add package doesn't honor package type Mar 10, 2017

@bricelam

This comment has been minimized.

Copy link
Contributor

bricelam commented Mar 10, 2017

This issue is similar to NuGet/Home#4190

@bricelam

This comment has been minimized.

Copy link
Contributor

bricelam commented Mar 10, 2017

Workaround

Manually add the appropriate <DotNetCliToolReference> to your *.csproj

@livarcocc

This comment has been minimized.

Copy link
Member

livarcocc commented Mar 11, 2017

Yes, this needs to be handled in NuGet as the command in the CLI is just a shim. We know this is a missing functionality though.

Let's track it in the NuGet issue.

@livarcocc livarcocc closed this Mar 11, 2017

@isaac2004

This comment has been minimized.

Copy link
Member

isaac2004 commented Jun 1, 2017

This workaround does not work with .Net Standard. If you put the preview version of the tools in .csproj you still get the error message

Package Microsoft.EntityFrameworkCore.Tools.DotNet 2.0.0-preview1-final is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Package Microsoft.EntityFrameworkCore.Tools.DotNet 2.0.0-preview1-final supports: netcoreapp2.0 (.NETCoreApp,Version=v2.0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment