R
Railway13mo ago
ianwold

.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:
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...
Jump to solution
10 Replies
Percy
Percy13mo ago
Project ID: 7ad3bc94-6713-4296-bd41-cd1d33dc5303
Brody
Brody13mo ago
@matt - users want an easy way to use whatever language version that's available
matt
matt13mo ago
@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 nixpacks
ianwold
ianwoldOP13mo ago
Yep, 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 Dockerfile
Solution
Brody
Brody13mo ago
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
ianwold
ianwoldOP13mo ago
Ah, gotcha! Thanks for the info. Looks like there's a PR open to update it - I'll watch for that!
Brody
Brody13mo ago
awsome, when that gets merged, you grab the commit id from the url and use it in a nixpacks.toml file like so
[phase.name]
nixpkgsArchive = '62d00016218b818defcce35fe598e8628d003c3c'
[phase.name]
nixpkgsArchive = '62d00016218b818defcce35fe598e8628d003c3c'
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
ianwold
ianwoldOP13mo ago
Oh spectacular, really appreciate that info 🙂
Brody
Brody13mo ago
no problem!
matt
matt13mo ago
awesome work, Brody!
Want results from more Discord servers?
Add your server