Visual Studio Code – How to get rid of the Visual Studio error because it doesn't recognise the new C# 12 syntax for collection expressions?
I have created a new project in dotnet 8 / C#12. Some of the new C#12 features are well recognised by Visual studio, for example I can do this without any errors: public class MyClass(string parameter) {...} while it does…