0

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

juemura7
  • 411
  • 9
  • 20
  • You can find it in Help->about but im marking this as off-topic – styx Aug 04 '19 at 06:33
  • 2
    For a particular project: Properties -> Build -> Advanced... -> Language Version – JonyVol Aug 04 '19 at 06:34
  • @styx I don't think it is a duplicate because I'm referring to Visual Studio Community on a MacBook which doesn't have those options...? I have looked at Help as well and couldn't find it – juemura7 Aug 04 '19 at 07:30

2 Answers2

-1

you dhuld edit the project file and add:

<PropertyGroup>
   <LangVersion>7.0</LangVersion>
</PropertyGroup>

see here

Efraim Newman
  • 927
  • 6
  • 21
-1

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.