james441
❔ ✅ C# 12 Features Work Locally, but Not in Docker with .NET 6.0
My project's target framework is net6.0. It all works fine locally. In docker, the base image I'm using for building is
mcr.microsoft.com/dotnet/sdk:6.0
. For some reason when I build the docker image, it fails on the lines that use the new C# features. What have I misunderstood? I specify LangVersion 12.0 in my .csproj file.9 replies