Skip to content

[Unity] When language version is set to C# 10 InteliSense still thinks it's C# 9 #2187

@BarionLP

Description

@BarionLP

Describe the Issue

This is a little known feature, but Unity does support C# 10 features.
When this is enabled all C# 10 features compile without problems but VS Code still displays them as errors.

The generated .csproj still says C# 9, manually overriding this solves the issue until the file gets regenerated

Steps To Reproduce

Expected Behavior

VS Code displays no error

Environment Information

  • OS: Windows 11
  • Unity: 6000.1.13
  • VS Code: 1.102.3
  • Unity Extension: 1.1.2

Metadata

Metadata

Assignees

Labels

area-unityUnity supportbugSomething isn't workingexternalExternal to this extension

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions