[英]How I can test .net6 preview with Visual Studio
I'd like to test the.Net 6 preview 3.我想测试.Net 6 preview 3。
I downloaded and installed the SDK from dotnet.microsoft.com .我从 dotnet.microsoft.com 下载并安装了SDK 。
When I create a new Blazor Server project, it does not offer me the.Net 6, only version 5. If I change the version in the csproj当我创建一个新的 Blazor 服务器项目时,它没有为我提供.Net 6,只有版本 5。如果我在 csproj 中更改版本
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>
</Project>
I have yellow warnings on Dependencies-Frameworks and when I build project:我在 Dependencies-Frameworks 和构建项目时有黄色警告:
Error NETSDK1045 The current .NET SDK does not support targeting .NET 6.0.错误 NETSDK1045 当前 .NET SDK 不支持定位 .NET 6.0。 Either target .NET 5.0 or lower, or use a version of the .NET SDK that supports .NET 6.0.
以 .NET 5.0 或更低版本为目标,或者使用支持 Z303CB0EF9EDB9082AZD616BBBE5825D972AZ SDK 的 .NET 版本。
How I can install in Visual Studio 2019 version 16.9.3, I have Community and Enterprise.如何在 Visual Studio 2019 版本 16.9.3 中安装,我有社区和企业。
Thanks.谢谢。
Try VS 16.10.0 Preview 1.0.尝试 VS 16.10.0 预览版 1.0。 It's working for me.
它对我有用。 NET 6 can be used.
NET 6 可以使用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.