dotnet
Attempting to build dotnet apps fails at
dotnet restore
step. Tried with two brand-new projects, minimal APIs in F# and C#, nothing fancy. Previously building and deploying single-project repos was a breeze - would love to not have to manually add a dockerfile. Targeting the .NET 8 runtime - project created with dotnet new web
, spun it up locally to make sure it worked, pushed to github and tried to deploy.
Projects:
9687eb42-691c-430b-962b-9129b1705d22
0301d141-a811-4b07-9474-a46be8801627
Solution:Jump to solution
it doesn't look like the f sharp provider supports specifying a SDK version, you would have to write a simple dockerfile for that
19 Replies
Project ID:
9687eb42-691c-430b-962b-9129b1705d22,0301d141-a811-4b07-9474-a46be8801627
Whoops forgot to update title to something better
please include the actual error
The error from the build output is included below the project IDs
that is just a log saying there was an error
Where would I find the error?
further up in the logs
Ah this is it, couldn't read the whole thing until I copied it out of the log viewer
The builder doesn't have the correct sdk installed
may I ask why you thought the portion of the build logs you included was the error? perhaps the scroll bar didn't show?
Been a while since I had to parse through these - saw something that said ERROR pointing to the step that failed
Nice, thanks! Worked great for the C# project, no effect on the F#, which isn't that surprising since the F# nixpacks docs page doesn't mention it
wonder if the
global.json
method would workSolution
it doesn't look like the f sharp provider supports specifying a SDK version, you would have to write a simple dockerfile for that
Bummer, - but thanks for the help! Just a heads up, it appears that the C# provider, even with the
NIXPACKS_CSHARP_SDK_VERSION
version set, is using a preview version of dotnet 8 - which hit GA last November.may I ask why that's a bummer? you get far more control over how your app is built with a dockerfile
I'm into Railway for the no-fuss deployment, and usually everything "just works". Haven't touched a dockerfile in a couple years since I switched jobs and love just being able to git-push and it does its thing. I know it's trivial to set up, but it's really just the fact that I have to do it at all
I see, thank you
Of course, and thanks again!
Do I mark this as solved or is that a you thing?
that one because it's going to be the answer to not using a preview version