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

Uninstall-Package - Argument cannot be null. #4

Open
omares opened this issue Jun 25, 2015 · 3 comments
Open

Uninstall-Package - Argument cannot be null. #4

omares opened this issue Jun 25, 2015 · 3 comments
Assignees
Labels
Milestone

Comments

@omares
Copy link

omares commented Jun 25, 2015

When trying to remove an existing nuget package from a project i get following input:

PM> Uninstall-Package FAKE
Removing ...
Argument cannot be null.
Parameter name: packageId

Am i missing something?, or is this an error?

Running the package manager console using:

Xamarin Studio
Version 5.9.3 (build 1)
Runtime:
    Mono 4.0.1 ((detached/ed1d3ec)
    GTK+ 2.24.23 (Raleigh theme)

    Package version: 400010044

Operating System
Mac OS X 10.10.3
@mrward mrward added the bug label Jun 25, 2015
@mrward mrward self-assigned this Jun 25, 2015
@mrward
Copy link
Owner

mrward commented Jun 25, 2015

The error seems to be misleading. If I try the same thing with SharpDevelop it shows a better error message which is that it cannot find the FAKE package. In Xamarin Studio I get the argument cannot be null error if I try to uninstall a NuGet package that is not installed, which is a bug.

The problem is that the Fake NuGet is a solution level package which is not installed into a particular project. Currently Xamarin Studio does not have good support for these types of NuGet packages. It currently only looks at the project. You cannot uninstall these types of NuGet packages directly from Xamarin Studio using the built in support either.

I will look at adding support for these types of NuGet packages into the package manager console.

@omares
Copy link
Author

omares commented Jun 25, 2015

Thank you 👍

@mrward
Copy link
Owner

mrward commented Jun 28, 2015

Version 0.9 of the NuGet extensions has been published and it supports uninstalling solution level NuGet packages. There is one limitation on the Mac currently where the package id passed to Uninstall-Package needs to match the case of the package id used in the .nupkg file. So Uninstall-Package fake does not work and will fail to find the NuGet package, but Uninstall-Package FAKE will work.

@mrward mrward added this to the 0.9 milestone Jun 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants