dotnet / razor

Compiler and tooling experience for Razor ASP.NET Core apps in Visual Studio, Visual Studio for Mac, and VS Code.
https://asp.net
MIT License
489 stars 190 forks source link

There should be a warning for select pairs of Razor Language version and C# language version #9938

Open phil-allen-msft opened 6 months ago

jjonescz commented 6 months ago

I'm not sure what this means; can you give an example?

chsienki commented 6 months ago

@jjonescz This came up in the working group yesterday. Essentially, we want to be able to warn if you for example choose Razor Lang Ver 8, but drop the C# version to 9.

We want to enforce a minimum required C# version for a given razor lang ver.