Unhandled expection using .NET 8
stauersbol
PROOP

2 years ago

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?

12 Replies

stauersbol
PROOP

2 years ago

ca095b61-135e-4c7c-9371-7d07018d7097


stauersbol
PROOP

2 years ago


stauersbol
PROOP

2 years ago

I have tested with commenting various code sections out, but it never seems to be fixing the problem.


stauersbol
PROOP

2 years ago

NIXPACKS_CSHARP_SDK_VERSION=8.0.0 the env var I use to force it to .NET 8.


2 years ago

what version does it end up using? it unfortunately may come down to having to write a Dockerfile


stauersbol
PROOP

2 years ago

SDK Version: 8.0.100-preview.5.23303.2


stauersbol
PROOP

2 years ago

I tried specifying 8.0.2 to see if it would change, but it does seem to at all



stauersbol
PROOP

2 years ago

Alright will do


stauersbol
PROOP

2 years ago

Alright fixed, making a Dockerfile solved the problem.


stauersbol
PROOP

2 years ago

Thank you!


2 years ago

dockerfiles are always the solution haha


Loading...