.NET 8 Still using preview version
Hello! .NET 8 was released to GA on Tuesday, but it looks like when I build a .NET 8 project it's still using the .NET SDK version
8.0.100-preview.5.23303.2
. I'm wondering if there's a way I can configure my project to use the release version or if I'll need to wait for the release version to be included in the build environment?
Project id 7ad3bc94-6713-4296-bd41-cd1d33dc5303
Thanks in advance!Solution:Jump to solution
nix packages doesn’t have the latest version of .net 8 https://github.com/NixOS/nixpkgs/commits/master/pkgs/development/compilers/dotnet/versions/8.0.nix
unfortunately it wont be possible to use the latest version of .net 8 on nixpacks unless nix packages has it.
the other option would be to use a dockerfile https://github.com/dotnet/dotnet-docker/blob/main/samples/dotnetapp/README.md...
10 Replies
Project ID:
7ad3bc94-6713-4296-bd41-cd1d33dc5303
@matt - users want an easy way to use whatever language version that's available
@ianwold hey there! Do you have any explicit build info in the connected repo, like a
nixpacks.toml
file or a Dockerfile
? Or are you letting Railway determine all the build needs?
looking at your project it looks like your building using nixpacksYep, I'm using nixpacks, and the only configuration I've done is to set the variable
NIXPACKS_CSHARP_SDK_VERSION
to 8.0
Other than that I'm letting Railway handle everything, I don't have a toml or a DockerfileSolution
nix packages doesn’t have the latest version of .net 8 https://github.com/NixOS/nixpkgs/commits/master/pkgs/development/compilers/dotnet/versions/8.0.nix
unfortunately it wont be possible to use the latest version of .net 8 on nixpacks unless nix packages has it.
the other option would be to use a dockerfile https://github.com/dotnet/dotnet-docker/blob/main/samples/dotnetapp/README.md
awsome, when that gets merged, you grab the commit id from the url and use it in a nixpacks.toml file like so
this example shows how to use this commit https://github.com/NixOS/nixpkgs/commit/62d00016218b818defcce35fe598e8628d003c3c
you would just replace the commit id with the id from the upcoming .net commit
Oh spectacular, really appreciate that info 🙂
no problem!
awesome work, Brody!