Base solution for your next web application
Open Closed

Build fails due to missing key and project.assets.json files #4101


User avatar
0
nickkellett created

Hi, I just downloaded my Core MVC + JQuery project and am following the instructions here: <a class="postlink" href="https://aspnetzero.com/Documents/Getting-Started-Core">https://aspnetzero.com/Documents/Getting-Started-Core</a> When I do my first build I have the same issue as this thread: #4093 It starts by saying failing to restore Nuget packages due to missing keys. Then the build fails with missing asset files. I have done a Nuget package rebuild and also tried updating the packages, but I can't get the build to complete. Finally, when I run Update-Database I get "Build Failed" error, so can't launch the website. Screenshots attached. I'm using the Community version of VS2017. Thanks!


3 Answer(s)
  • User Avatar
    0
    godrunner created

    Greetings NickKellett!

    Running

    dotnet build

    from the command line in the public project folder will fix this. I had the same issue.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Thanks a lot @godrunner :)

  • User Avatar
    0
    nickkellett created

    Thanks @godrunner, that was the fix!