Base solution for your next web application
Open Closed

CI build fails on missing asset file #4093


User avatar
0
[email protected] created

I download the base .core app and built in locally Pushing it to the CI, I can not get it to build

2017-10-26T20:54:16.2009001Z ##[error]C:\Program Files\dotnet\sdk\2.0.0\Sdks\Microsoft.NET.Sdk\build\Microsoft.PackageDependencyResolution.targets(323,5): Error : Assets file 'd:\a\1\s\src\Furiosotoro.Furiosotoro.Core\obj\project.assets.json' not found. Run a NuGet package restore to generate this file.

see screen shot <a class="postlink" href="https://www.dropbox.com/s/f1ywx55uqcu8rkg/CaptureBuildFail.PNG?dl=0">https://www.dropbox.com/s/f1ywx55uqcu8r ... l.PNG?dl=0</a>

Hopefully there is a fix...


7 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Have you runned nuget package restore ? As I remember, restoring nuget packages must create mentioned file.

  • User Avatar
    0
    [email protected] created

    got the building working now but getting a deploy error now

    2017-10-27T06:49:44.4563883Z ##[error]Error: More than one package matched with specified pattern. Please restrain the search pattern.

    not sure how to limit to just one package deployment

  • User Avatar
    0
    [email protected] created

    <a class="postlink" href="https://www.dropbox.com/s/z99hfagljw28kio/Capturedeployfail.PNG?dl=0">https://www.dropbox.com/s/z99hfagljw28k ... l.PNG?dl=0</a>

    copy of error

    Not sure if there is another step to add to specify with zip file to deploy....

  • User Avatar
    0
    soonjoo created

    There would be 2 or more packages generated because there will be one for UI and another for API, and maybe public. so u need to specify it. not sure what CI u using, but you could probably do a more specific wildcard search on the package like $(System.DefaultWorkingDirectory)/**/*.Host.zip if you want to deploy the API?

  • User Avatar
    0
    hakan created

    I tried to restore nuget packages but get error with

    PM> Update-Package -Reinstall
    

    Default project: ASPBoilerplate.EntityFrameworkCore

    PM> Update-Database
    

    I get the same error,

    Assets file 'C:\Github\ASPMVCNetCore3x\src\ASPBoilerplate.Web.Public\obj\project.assets.json' not found. Run a NuGet package restore to generate this file.
    

    How to fix it?

  • 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.

  • User Avatar
    0
    hakan created

    It works. Thanks :)