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

CSC : error CS1617: Invalid option '9' for /langversion. Use '/langversion:?' to list supported values. #761

Closed
plantematthieu opened this issue Jun 17, 2021 · 2 comments

Comments

@plantematthieu
Copy link

Hi,

I'm trying to build the DeepLMTProvider but I got this issue.
I'm using Visual Studio 2017 and my target framework is .NET Framework 4.8.

Thanks for your help.

Matthieu

@RainerLeukel
Copy link

Hi,

you have to use Visual Studio 2019 for using C#9 syntax.

See also: dotnet/roslyn#21783 (comment)

Or you re-code the incompatible parts so that they are compatible with your Visual Studio 2017 C#7 version.

Regards
Rainer

@plantematthieu
Copy link
Author

Thanks RainerLeukel, it worked!
I also had to change the langversion manually in the .csproj file

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