Skip to content
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

Unable to use C# 9 in a script project #2003

Closed
germanftorres opened this issue Nov 4, 2020 · 2 comments
Closed

Unable to use C# 9 in a script project #2003

germanftorres opened this issue Nov 4, 2020 · 2 comments

Comments

@germanftorres
Copy link

Hi!,

I'm trying to use the 'records' feature and others latest additions of C# 9 in a script project, but OmniSharp seems to be configured with LanguageVersion.CSharp8 hardcoded in ScriptProjectProvider and complaints about the feature not being available in C# 8.

private static readonly CSharpParseOptions ParseOptions = new CSharpParseOptions(LanguageVersion.CSharp8, DocumentationMode.Parse, SourceCodeKind.Script);

Not sure if this value can be updated to CSharp9 or Latest without breaking existing projects. Any chance this may be configured throught omnisharp.json in it's script section?

Thanks!!

Germán

@germanftorres germanftorres changed the title Unable to use c# 9 in script project Unable to use C# 9 in a script project Nov 4, 2020
@filipw
Copy link
Member

filipw commented Nov 4, 2020

I already changed it earlier today #2001

@germanftorres
Copy link
Author

Great! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants