Search Issue Tracker
Active
Votes
1
Found in [Package]
1.2.4
Issue ID
1367269
Regression
No
Unity generates .csproj file with incorrect <LangVersion> value for Visual Studio Code
Reproduction steps:
1. Create a new Project
2. Set external editor to VS Code (Edit -> Preferences -> External Tools -> External Script Editor -> Visual Studio Code)
3. Create a new C# Script in the project.
4. Open C# Project (Assets -> Open C# Project)
5. Open the "Assembly-CSharp.csproj" file in VSCode
6. Inspect the <LangVersion> XML tag
Expected result: Unity generates the <LangVersion> Tag with the latest C# language version supported by the target framework set in project settings. (i.e. 8.0)
Actual result: Unity generates 'latest' in the <LangVersion> Tag
Reproducible with: 1.2.2, 1.2.3 (2019.4.32f1, 2020.3.23f1), 1.2.4 (2019.4.32f1, 2020.3.23f1, 2021.1.28f1, 2021.2.3f1, 2022.1.0a15)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "One or more data file missing for baking set NewScene Baking Set. Cannot load shared data." error in Player when a specific project is built
- Choosing new HDR Colour using RGB values breaks colour on Intensity Selectors
- Rendering/Decal Layer Mask options are different inside Prefab Mode and outside Prefab Mode when the project is upgraded to Unity 6
- Incorrect Realtime GI Light Probes baking when more than one Light Probe Group is used and "Baked Global Illumination" is enabled
- Hovering on the three-dot menu also highlights the tab header near it when not all tabs fit the bar
Add comment