本文是小编为大家收集整理的关于在Visual Studio中使用预览功能和预览语言的处理/解决方法,可以参考本文帮助大家快速定位并解决问题,中文翻译不准确的可切换到English标签页查看源文。
问题描述
如何打开 c# preview 在Visual Studio中的功能?
当前在预览中和"不支持"的功能"无效参考类型".要使用预览功能,请使用"预览"语言版本.
项目 properties 不提供"下一个C#版本(Preview)的不支持的预览" 作为选项:
推荐答案
概要
为了打开预览功能,您需要所有这些:
- Visual Studio预览(推荐)
- .NET预览(必需)
- 更改项目应用程序设置
- 更改项目构建设置
逐步
- 下载 Visual Studio 2019 Preview
- 下载 .net sdk preview for Visual Studio for Visual Studio
- 从CMD线检查您的安装:
> dotnet --list-sdks 2.1.202 [C:\Program Files\dotnet\sdk] … 2.2.101 [C:\Program Files\dotnet\sdk] 3.0.100-preview6-012264 [C:\Program Files\dotnet\sdk]
其他推荐答案
我的情况我需要检查此复选框(并重新启动Visual Studio!)
问题描述
How can I turn on C# preview features in Visual Studio?
The feature 'nullable reference types' is currently in Preview and "unsupported". To use Preview features, use the 'preview' language version.
The project Properties does not offer "unsupported preview of next C# version (preview)" as an option:
推荐答案
Synopsis
In order to turn on the preview features, you need all these:
- Visual Studio preview (recommended)
- .NET preview (required)
- Change the Project Application settings
- Change the Project Build settings
Step by Step
- Download Visual Studio 2019 Preview
- Download .NET SDK Preview for Visual Studio
- Check your installation from a cmd-line:
> dotnet --list-sdks 2.1.202 [C:\Program Files\dotnet\sdk] … 2.2.101 [C:\Program Files\dotnet\sdk] 3.0.100-preview6-012264 [C:\Program Files\dotnet\sdk]
- Right-click on your Project → Properties → Application
Pick the Target Framework (note the link to Install other frameworks… as well) - In Project → Properties → Build
Select Advanced… (Advanced Build Settings)
Select the desired C# version:
其他推荐答案
I my case I needed to check this checkbox (and restart Visual Studio!)
相关标签/搜索
R igraph从表构建邻接矩阵
php 匹配html实体
python3.5安装comb库
vue两个组件相互调用
树莓派识别不了sata固态
oracle分页查询xml文件
allegro打印怎么设置
fineui控件手册
pytest控制py文件执行顺序
握手 verilog
powerBI计算每日流失量
android 进程间通信框架
visualstudiogeneral
lightswitch
vswpfdesigner
vssetup
sql-server
visual-studio-2015
adodotnetdataset
visual-studio-code
markdown