1

I am trying to install a NuGet Package from a private package source, and whenever I try to install or update a specific package, it doesn't appear in the project's references folder in Visual Studio.

The packages.config file says it is installed, but it isn't listed in the references. Has anyone else had this issue? Does anyone know how to fix it?

I am using Visual Studio 2015 Enterprise on a Windows 8.1 machine.

7
  • You could try update-package -reinstall in the package manager console for that project Commented Apr 6, 2017 at 13:13
  • @bump I've just tried that. Still getting the exact same result. NuGet is still saying that it is still installed when it isn't. Commented Apr 6, 2017 at 13:17
  • You could add a reference to the DLL in a package by hand Commented Apr 6, 2017 at 13:41
  • @bump What I've ended up doing is adding the project files into my solution and adding a reference that way. It's defiantly not ideal and definitely isn't a fix. But thanks for your help anyway. Commented Apr 6, 2017 at 13:53
  • Is this package custom? If not, could you share us the package name to us? Commented Apr 6, 2017 at 14:07

1 Answer 1

1

According to your reply to the comment, The reason for this problem should be related to your privately package. You can verify it by installing a common package from NuGet.org, like Newtonsoft.Json, check if it add the reference after install the package.

Not very sure that how you create that privately package, I would like provide a simple workaround to test it:

  1. Download the NuGet Package Explorer.
  2. Open the NuGet Package Explorer, select the create a new package.
  3. Add a lib folder on the content tab, and add your dll file
  4. Save the package and install it to the project, check if it add reference.

enter image description here

Hope this can help you.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.