: Package was not found
ratioofrenji
TRIALOP

a year ago

i have a problem with deploying app. it works localy, but bild on railway crashes, because it could not find a package

here is the log:
1.073 /nix/store/0f43yfx91hg74bcp66qkbp97zv3ln27i-dotnet-sdk-6.0.413/sdk/6.0.413/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(267,5): error NETSDK1064: Package Microsoft.EntityFrameworkCore.Analyzers, version 6.0.35 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. [/app/HotelBookingAPI.csproj]

why this issue occurs and how could i fix it? i made my web api with asp.net core and used super common nuget packages such as Microsoft.EntityFramework.core.

it seems, that issue could easily be fixed with some settings, becuse it occurs even if i deploy default visual studio template for web api (there it crashes because builder cant find OpenApi package and if i remove this package it deploys fine)
but what if need a package for my api to work? how could i help builder to find required packages?

Solved

1 Replies

ratioofrenji
TRIALOP

a year ago

figured it out, lads: in build command you need to paste "dotnet publish -c Release -o ./out"
so packages you're using would be pulled


Status changed to Solved brody over 1 year ago


Loading...