Blazor WebAssembly 3.1目标框架丢失 [英] Blazor WebAssembly 3.1 Target Framework is missing

查看:211
本文介绍了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网站,未列出.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

与Balzor Server App不同,Blazor WebAssembly App在Mono运行时下运行.它不是.Net Core.

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

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

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

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

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