-
Notifications
You must be signed in to change notification settings - Fork 420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use C# 7.1 in omnisharp? #961
Comments
Hrm. I thought support was already added by #935? Which is part of release v1.23.1 and higher. @NinoFloris Which version of omnisharp-roslyn have you got installed? |
Running omnisharp vscode 1.12.1, 1.12.0 states in the changelog it now supports c# 7.1. I cannot find how to enable that support however |
use |
For the record |
If the property value was actually plumbed then yes, latest is a valid value and refers to the latest minor language version. |
Is there a LanguageVersion 7.3 support in Omnisharp/Rosyln with Visual Studio Code ? Below VS code is fine with below 3 lines when I set LanguageVersion to 7.1, but VSCode doesn't recognise 7.3 and complains about tuple Comparison on 6th line ..
The whole code works fine with "dotnet run" if I set Language Version using Visual Studio Community 15.7.3 but VSCode still keeps on complaining about Tuple Comparison . Below is my CSPROJ
|
Yes. However, this was just added and isn't in an official OmniSharp build yet. If you want to use C# 7.3 in VS Code you can set the following option in your VS Code settings: {
"omnisharp.path": "latest"
} |
Things like default literal are already supported by compilers but omnisharp doesn't pick up the LangVersion csproj attribute and so roslyn gives errors for these features.
Unless I'm missing something and there is another way this should be fixed.
The text was updated successfully, but these errors were encountered: