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

Make NuGet.PackageManagement available as a .NET Standard package #6150

Closed
sandyarmstrong opened this issue Nov 8, 2017 · 10 comments · Fixed by NuGet/NuGet.Client#2861
Closed
Assignees
Labels
help wanted Considered good issues for community contributions. Priority:3 Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog. Type:Engineering product/infrastructure work/not a customer bug/feature/DCR Type:Feature

Comments

@sandyarmstrong
Copy link

It seems that NuGet.PackageManagement is the only package in the client libraries that does not have .NET Standard support. It would be great to be able to use this package in other .NET Standard libraries, or in .NET Core apps, etc.

I notice that this package has a dependency on Microsoft.Web.Xdt. Is that the only thing blocking this from happening?

@emgarten
Copy link
Member

emgarten commented Nov 8, 2017

I notice that this package has a dependency on Microsoft.Web.Xdt. Is that the only thing blocking this from happening?

That is the main blocker.

Could you provide some reasons for making this package support netstandard, are you using this cross platform?

@sandyarmstrong
Copy link
Author

I work on Xamarin Workbooks, and we use the NuGet client libraries (including this one) on Mac and Windows. We're interested in creating some cross-platform .NET Core apps, and NuGet.PackageManagement is the only dependency currently tying us to .NET Framework.

@emgarten
Copy link
Member

emgarten commented Nov 8, 2017

So this would be for installing/uninstalling packages and other things that the VS UI handles?

@abock
Copy link

abock commented Nov 8, 2017

@emgarten yes, ultimately we need to provide a VS-like package management experience on .NET Core.

@emgarten emgarten added this to the Backlog milestone Nov 10, 2017
@emgarten emgarten added Type:Engineering product/infrastructure work/not a customer bug/feature/DCR help wanted Considered good issues for community contributions. labels Nov 10, 2017
@aelij
Copy link

aelij commented Dec 23, 2017

I've created my own package (needed it for the xplat version of RoslynPad). I just added a few #ifs to remove the XDT and MEF stuff. Would it be acceptable to merge this kind of change? This could be a multi-target package that supports everything on the desktop framework.

aelij/NuGet.Client@3403963

@aelij
Copy link

aelij commented Dec 23, 2017

The package I published also seems to be used by Cake Build, so there's definitely a need for this.

@bjorkstromm
Copy link

👍 About to bump @aelij's package to 4.6.0 (currently at 4.3.0)

Yep! There's definitely a need for this. I'd think @daveaglick also would be interested in this for Wyam.

@bdovaz
Copy link

bdovaz commented Oct 10, 2018

I'm currently using it with Unity, I have recompiled it for .NET Standard 2.0 but I would want to see it supported officially.

I also encountered other problems like this:

https://github.com/NuGet/NuGet.Client/blob/dev/src/NuGet.Core/NuGet.Commands/NuGet.Commands.csproj#L24

You can see that it's using "some" classes from old Microsoft.Extensions.* packages. It should reference the entire package because in my case I got collisions regarding one script defined multiple times (one from Nuget.Commands.dll and another one from the real Microsoft.Extensions dll) and son on. In my case I removed that class references and add the entire package reference from nuget.

@vdefeo
Copy link

vdefeo commented Jun 4, 2019

Hello guys, would be very nice to have this lib for .net core.

Any ETA for this migration?

thanks

@deadlydog
Copy link

We're building a ASP.Net Core app that runs some PowerShell scripts from C# to do some of the work. It dies when trying to run Install-PackageProvider NuGet. Any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Considered good issues for community contributions. Priority:3 Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog. Type:Engineering product/infrastructure work/not a customer bug/feature/DCR Type:Feature
Projects
None yet