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

Add option to disable C# 10 features (e.g. global usings) #146

Closed
mikoro opened this issue Jul 21, 2023 · 2 comments
Closed

Add option to disable C# 10 features (e.g. global usings) #146

mikoro opened this issue Jul 21, 2023 · 2 comments

Comments

@mikoro
Copy link

mikoro commented Jul 21, 2023

When trying to use the generated C# file in Unity I get the following errors:

Plugin.gen.cs(14,1): error CS8773: Feature 'global using directive' is not available in C# 9.0. Please use language version 10.0 or greater.
Plugin.gen.cs(22,1): error CS8773: Feature 'file-scoped namespace' is not available in C# 9.0. Please use language version 10.0 or greater.

It would be nice to be able to turn off these features during the code generation.

@lithiumtoast
Copy link
Member

Thanks, I removed global using for just using and added support for optional file scoped namespace in #147

@lithiumtoast
Copy link
Member

Part of v6.10

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