简体   繁体   English

如何使用 Visual Studio 测试 .net6 预览

[英]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.

相关问题 我如何在 Net6 中的程序中使用 DbInizializer - How can I DbInizializer in Program in Net6 Visual Studio for Mac 2022 不使用预期的 .NET6 SDK - Visual Studio for Mac 2022 does not use expected .NET6 SDK 如何使用 Visual Studio 2019 中的控制台项目测试 .net 5 WPF 项目? - How can I test a .net 5 WPF project using a console project in Visual Studio 2019? 如何将我的 sdk .net 版本 .net5 更改为 .net6 - How can I change my sdk .net version .net5 to .net6 如何将 .Net 框架添加到 Visual Studio preview 2019 项目 - How to add .Net framework to Visual Studio preview 2019 project 如何在 Visual Studio 2022 中使用旧版本的 .Net? - How can I use old version of .Net in Visual Studio 2022? .NET 4.5.1 Visual Studio 2012中的预览支持 - .NET 4.5.1 Preview Support in Visual Studio 2012 Visual Studio 2010可以测试.net 3.5 SP1项目吗? - Can Visual Studio 2010 Test .net 3.5 SP1 Projects? Slim .net:如何使用visual studio调试测试夹具? - Slim .net: How do I debug test fixtures using visual studio? 如何在 Visual Studio 2022 预览版中调试 .Net Core 项目时禁用内部终端 - How to disable internal terminal while debugging for .Net Core projects in Visual Studio 2022 preview
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM