-
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
No support for 'preview' language versions? #1487
Comments
I don't think there'll be any breaking changes if that entire snippet was replaced with LanguageVersionFacts.TryParse, so that could be a possible fix ensuring that this won't happen again in the future. |
You are right, the The reason why the built-in Roslyn language version parser was not used in the first place is because when the project parsing code was originally added, the |
Ah, I had guessed as much. I'm alright to make a PR to fix this then, right? I'll probably replace it with the TryParse method I mentioned, which is indeed under |
sure, please do! |
I'm writing some code to try out the new 'unmanaged constructed types' and 'static local functions' features, and as expected OmniSharp is flagging this up with error CS8652, stating that the feature is not supported and currently in preview.
However, the error says to use the
preview
language version to use these features, and upon specifying this in theLangVersion
property, these errors remain. To hide these errors, I had to specify8.0
as the value, instead of what the error had specified.I believe this is due to this switch not including
preview
as a possible value, though I may be wrong since I'm not familiar with the code:omnisharp-roslyn/src/OmniSharp.MSBuild/ProjectFile/PropertyConverter.cs
Lines 38 to 53 in 46c814a
The text was updated successfully, but these errors were encountered: