Blog Post

Nuget - Package reference is not found

Tuesday, March 1, 2016 12:59 AM

After downloading project, the compilation does fail with error message like:

Package reference is not found in

Below on picture we can see what the error looks like, when we click on the properties of the missing referece we have identified from output window.

Solution to this problem is relatively simple


Locate package.json in your solution. Ensure the package name is present in this file and pay attention to the version.


Now just restore nuget packages into your solution.


If this does not work, you might be forced to re-add the package into the solution by removing the package name from the packages.json file and add the nuget package again. (Ensure you are adding the correct version you had previously).


After this you should be able to build the solution/project without any other issues.