I want to make sure I'm using C# 7.0 or higher. Does anyone know an easy way of checking this? I use Visual Studio Community on a MacBook and cannot seem to find an easy way of checking or setting language preferences.
Thanks
I want to make sure I'm using C# 7.0 or higher. Does anyone know an easy way of checking this? I use Visual Studio Community on a MacBook and cannot seem to find an easy way of checking or setting language preferences.
Thanks
you dhuld edit the project file and add:
<PropertyGroup>
<LangVersion>7.0</LangVersion>
</PropertyGroup>
see here
Normally you use the latest installed version (depending on the .Net framework) in Visual Studio. If you want to change it, go to the advanced build setting (project -> properties -> build)
In the advanced build settings you also see all installed versions of C# (also the latest), therefore you can also check it there.