缺少 Blazor WebAssembly 3.1 目标框架 [英] Blazor WebAssembly 3.1 Target Framework is missing

查看:43
本文介绍了缺少 Blazor WebAssembly 3.1 目标框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 .NET Standard 3.1 创建了一个 .NET Core Web API 和类库.但是当我尝试使用 3.1 创建 Blazor WebAssembly 时,它会自动创建一个 2.1 版本 - 如下所示:

I created a .NET Core Web API and class library with .NET Standard 3.1. But when I try to create Blazor WebAssembly with 3.1, it automatically creates a 2.1 version - as seen here:

这是我的 Blazor Web,未列出 .NET Core 3.1.我再次安装了 3.1 版本,但仍然没有列出.我已经在 Web API 和类库上拥有 .NET Core 3.1 版本,但我不明白为什么我不能创建 Blazor 3.1.

This is my Blazor web and .NET Core 3.1 is not listed. I install the 3.1 version again but still not listing. I already have .NET Core 3.1 version on Web API and class library but I don't understand why I can not create Blazor 3.1.

但是我什么时候可以将 blazor 服务器端应用程序创建为 3.1,但我无法将 Web 程序集创建为 3.1.任何想法都会很棒

But when can I create blazor server side application as 3.1 but I can't create web assembly as 3.1. Any idea would be great

谢谢

推荐答案

这没问题.这是 Blazor WebAssembly 应用程序的最新版本:.NETStandard 2.1

This is OK. This is the latest version of Blazor WebAssembly App: .NETStandard 2.1

与 Blazor 服务器应用程序不同,Blazor WebAssembly 应用程序在 Mono 运行时下运行.它不是 .Net Core.

A Blazor WebAssembly App, unlike Blazor Server App , runs under the Mono runtime. It is not .Net Core.

只需添加项目并尝试.唉,它有效;)

Just add the project and try it. Alas, it works ;)

这篇关于缺少 Blazor WebAssembly 3.1 目标框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆