Changing the C# version in Visual Studio 2019
I'm using visual studio 2019 and I'm trying to change my C# version. The reason I am doing this is that the build servers I use use an older version of VS / MSBuild to build and deploy code (this is outside my control). Therefore I need to use C# 5. On previous versions of visual studio, you could do this from the menu in [Project] -> Properties -> Build -> Advanced. For VS2019 Microsoft, in their infinite wisdom, has decided to make this harder. Apparently you need to edit the project file manually and add: <PropertyGroup> <LangVersion>[some version here]</LangVersion> </PropertyGroup> To you
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.