Build uses dotnet 8 preview 5

pkcrazy
HOBBY

2 years ago

Hello guys,

I try to use dotnet 8 in my service. I have a global.json file which sets the sdk version to 8.0.100 the build uses the 8.0.100-preview 5. Of course I get build errors because of this.
How can I make it work?

3 Replies

devsuperman
HOBBY

a year ago

I have the same problem! :(
I can't use a dotnet 8 release candidate version, only preview and cant work for me 😒


devsuperman
HOBBY

a year ago

When i deploy with nixpack it use dotnet-sdk-8.0.100-preview.5.23303.2, but the dotnet already in 8.0.4 https://dotnet.microsoft.com/en-us/download/dotnet/8.0 .

Anyone know how to update the dotnet version of nixpacks?


pkcrazy
HOBBY

a year ago

I've got it to work with a Dockerfile based on the docs: https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/docker/building-net-docker-images?view=aspnetcore-8.0#the-dockerfile
You don't have to use docker for local development.


Build uses dotnet 8 preview 5 - Railway Help Station