Visual studio 2019 project properties won't open

Uroš Kuzmanović 6 Reputation points
2022-07-21T12:44:47.537+00:00

I have VS community 2019 version is 16.11.17. In my C# unity project i need language version 9.0 but when i try to open project properties window it does nothing. How can i fix it???

Developer technologies Visual Studio Other
Developer technologies C#
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Karen Payne MVP 35,586 Reputation points Volunteer Moderator
    2022-07-21T13:43:24.833+00:00

    Double click the project name in Solution Explorer to open the project file. Alter LangVersion as shown below and save. The only reason this will not work is if the .NET Core framework is not installed.

    <Project Sdk="Microsoft.NET.Sdk">  
     <PropertyGroup>  
     <OutputType>Exe</OutputType>  
     <TargetFramework>net5.0</TargetFramework>  
     <LangVersion>9.0</LangVersion>  
     </PropertyGroup>  
    </Project>  
    
    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.