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)
-
0
Hi,
Have you runned nuget package restore ? As I remember, restoring nuget packages must create mentioned file.
-
0
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
-
0
<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....
-
0
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?
-
0
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?
-
0
Resolved here: #4101@346344f6-15e8-4523-9b12-bb98907bebc3
Running
dotnet build
from the command line in the public project folder will fix this.
-
0
It works. Thanks :)