Currently, the set up .NET Core 2.2.5 installed using SDK Core 2.2.107. The project has two .NET 4.7.2 and one .NET Core 2.2.5. This runs perfect everywhere else but when on our build server we get this error:
(ResolvePackageAssets target) ->
[exec] C:\Program Files\dotnet\sdk2.2.107\SdksMicrosoft.NET.Sdk\targetsMicrosoft.PackageDependencyResolution.targets(208,5): error NETSDK1064: Package Microsoft.EntityFrameworkCore.Analyzers, version 2.2.4 was not found. It might have been deleted since NuGet restore. Otherwise, NuGet restore might have only partially completed, which might have been due to maximum path length restrictions.
I am not sure of the steps to reproduce. We have our solution with the three projects and build fails on that line.
```
EF Core version: found in project.csproj
Operating system: Windows 8.1
IDE: Visual Studio 2017 15.4
<!-- Include the newly-built files in the publish output -->
<ItemGroup>
<DistFiles Include="$(SpaRoot)build\**; $(SpaRoot)build-ssr\**" />
<ResolvedFileToPublish Include="@(DistFiles->'%(FullPath)')" Exclude="@(ResolvedFileToPublish)">
<RelativePath>%(DistFiles.Identity)</RelativePath>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
</ResolvedFileToPublish>
</ItemGroup>
@bricelam to take a look.
Fixed!
Hi @rmorgan0076 ,
Sorry, can you write how did you fix this issue?
Thanks in advance :)
For this issue, if I remember correctly, I had to create a new project and copy over the contents of the damage project to it.
Hi again, thanks for answer.
I've solved this issue by putting the param "/t:Restore" for MSBuild step, because during usual Nuget step I had this fail.