Nixpack's .NET 8 sdk doesn't support short list syntax
marcinskicTRIAL
a year ago
When I try to release my project on dotnet 8.0 then i get errors Invalid expression term '[' [/app/harmonify-api.csproj]
because I use this syntax Players = [host]
where Players
is a List
ⓘ Deployment information is only viewable by project members and Railway employees.
1 Replies
mignnoniHOBBY
a year ago
I had the same issue, so I changed all my code just to make it work, but it started complaining about Primary Constructors, saying that it was only available in preview, so I made other changes to enable the preview, but it also didn't work.
Long story short, the best thing you can do is to create your own Dockerfile, since Nixpacks doesn't seem to support .NET 8 yet.