Skip to content

Commit

Permalink
Merge pull request #1923 from NuGet/master-nkolev92-NU1105
Browse files Browse the repository at this point in the history
Clarify NU1105
  • Loading branch information
karann-msft authored Feb 28, 2020
2 parents 0a98fed + 38c4089 commit 88d0072
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion docs/reference/errors-and-warnings/NU1105.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,17 @@ f1_keywords:
The project file exists but no restore information was provided for it.

### Solution
In Visual Studio, the error could mean that the project is unloaded, in which case reload the project. From the command line this could mean that the file is corrupt or that it doesn't contain the custom "after imports" target needed for restore to read the project. Check that the project file is valid and contains an "after imports" target.

#### Command line

From the command line this could mean that the file is corrupt or that the `NuGet.targets` are not imported.
To import the `NuGet.targets`, usually it's recommended to import the `Microsoft.Common.targets`.

#### Visual Studio

In Visual Studio the error could mean that targets are not import similar to the command line scenario.

The error could also mean that the project is unloaded.

* If you are using Visual Studio 2019 or later, NuGet has the ability to re-use artifacts from the previous restore for unloaded projects. In order for this scenario to work, you need to ensure that all projects currently in the solution have been restored from the command line prior to loading them in Visual Studio.
* Alternatively, reload the project.

0 comments on commit 88d0072

Please sign in to comment.