Severity Code Description Project File Line Suppression State Error Assets file 'D:_projects\Project\src\Project.Web.Public\obj\project.assets.json' not found. Run a NuGet package restore to generate this file. Project.Web.Public C:\Program Files\dotnet\sdk\2.0.2\Sdks\Microsoft.NET.Sdk\build\Microsoft.PackageDependencyResolution.targets 165
any ideas how to resolve this?
3 Answer(s)
-
0
Run a nuget restore like it says?
-
0
you can run the below command in solution folder
dotnet restore
see <a class="postlink" href="https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-restore?tabs=netcore2x">https://docs.microsoft.com/en-us/dotnet ... =netcore2x</a>
-
0
Resolved here: #4101@346344f6-15e8-4523-9b12-bb98907bebc3
Running
dotnet build
from the command line in the public project folder will fix this.