R
Railway7mo ago
Slashiy

Unhandled expection using .NET 8

Hi, So I'm currently trying to deploy a C# project that uses .NET 8. But I'm getting this error. Now I know it might not be the correct place to ask this. Some information I have gathered is that it uses a preview version of .NET 8 instead of the stable version. Is there something I can do here to force it not to use preview versions?
No description
Solution:
try writing a quick Dockerfile
Jump to solution
9 Replies
Percy
Percy7mo ago
Project ID: ca095b61-135e-4c7c-9371-7d07018d7097
Slashiy
SlashiyOP7mo ago
ca095b61-135e-4c7c-9371-7d07018d7097
Slashiy
SlashiyOP7mo ago
I have tested with commenting various code sections out, but it never seems to be fixing the problem. NIXPACKS_CSHARP_SDK_VERSION=8.0.0 the env var I use to force it to .NET 8.
Brody
Brody7mo ago
what version does it end up using? it unfortunately may come down to having to write a Dockerfile
Slashiy
SlashiyOP7mo ago
SDK Version: 8.0.100-preview.5.23303.2 I tried specifying 8.0.2 to see if it would change, but it does seem to at all
Solution
Brody
Brody7mo ago
try writing a quick Dockerfile
Slashiy
SlashiyOP7mo ago
Alright will do Alright fixed, making a Dockerfile solved the problem. Thank you!
Brody
Brody7mo ago
dockerfiles are always the solution haha
Want results from more Discord servers?
Add your server