Base solution for your next web application
Open Closed

Erorr on build Web.Public missing project.assets.json #4461


User avatar
0
trippycat created

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)
  • User Avatar
    0
    bbakermmc created

    Run a nuget restore like it says?

  • User Avatar
    0
    alper created
    Support Team

    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>

  • User Avatar
    0
    aaron created
    Support Team

    Resolved here: #4101@346344f6-15e8-4523-9b12-bb98907bebc3

    Running

    dotnet build

    from the command line in the public project folder will fix this.