Visual Studio 2019版本C#问题 [英] visual studio 2019 version c# probleme
问题描述
我无法在Visual Studio 2019上更改C#的版本
I can not change the version of C # on visual studio 2019
我试图去该属性以访问通常允许更改C#版本的窗口
I tried to go to the property to access a window that normally allowed to change the version of C #
错误CS8025在C#4中不提供本地功能"功能.请使用7.0版或更高版本.
Error CS8025 The 'local functions' feature is not available in C # 4. Use version 7.0 or later.
推荐答案
我假设您正在使用.Net Core.在您的启动项目的.csproj文件(可执行文件,Web,Web API,无论哪种情况)中,添加以下内容:
I'm assuming you're using .Net Core. Within the .csproj file for your start-up project (executable, web, web API, whichever it is in your case), add the following:
< PropertyGroup>< LangVersion>最新</LangVersion></PropertyGroup>
请参见文档有关更多详细信息.
See the docs for more details.
这篇关于Visual Studio 2019版本C#问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!