diff --git a/docs/reference/errors-and-warnings/NU1105.md b/docs/reference/errors-and-warnings/NU1105.md index b0e32fa5e..f6c4f9f93 100644 --- a/docs/reference/errors-and-warnings/NU1105.md +++ b/docs/reference/errors-and-warnings/NU1105.md @@ -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. \ No newline at end of file + +#### 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.