简体   繁体   English

在 windows 平台上对 Microsoft.AspNetCore.Components.WebView.Maui package 发出警告

[英]warning on Microsoft.AspNetCore.Components.WebView.Maui package in windows platform

i have a .net maui project and i want to add blazor page in my project when add Microsoft.AspNetCore.Components.WebView.Maui package from nuget ، All platforms are well supported except Windows and warning sing and displays a warning sign next to it and displays the message "MSB4057 The target "StaticWebAssetsPrepareForRun" does not exist in the project."我有一个 .net maui 项目,我想在添加 Microsoft.AspNetCore.Components.WebView.Maui package 时在我的项目中添加 blazor 页面,来自 nuget Ì 所有平台都得到很好的支持,除了 8874418 和警告旁边显示警告显示消息“MSB4057 项目中不存在目标“StaticWebAssetsPrepareForRun”。” when running the program.运行程序时。 Please guide me to solve this problem请指导我解决这个问题

I don't have a solution for this problem我没有解决这个问题的方法

See https://github.com/do.net/maui/issues/2609 for possible fix (change SDK):有关可能的修复(更改 SDK),请参见https://github.com/do.net/maui/issues/2609

Changing project sdk from Microsoft.NET.Sdk to Microsoft.NET.Sdk.Razor resolved the issue.将项目 sdk 从 Microsoft.NET.Sdk 更改为 Microsoft.NET.Sdk.Razor 解决了该问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Microsoft.AspNetCore.Components.WebAssembly.Server 的用途 package - Purpose of Microsoft.AspNetCore.Components.WebAssembly.Server package 是否存在名为 Microsoft.AspNetCore.Mvc.Components.Prerendering 的块包或程序集? - Exist a nugget package or assembly called Microsoft.AspNetCore.Mvc.Components.Prerendering? Maui 媒体选择器 Windows 平台错误 - Maui media picker on Windows Platform error Windows 平台上 VisualStateManager 的 .Net MAUI 问题 - .Net MAUI Issue with VisualStateManager on Windows Platform .Net MAUI WebView 和 iFrame - windows 高度问题 - .Net MAUI WebView with iFrame - problem with windows height 没有“Microsoft.AspNetCore.Components.Authorization.AuthenticationStateProvider”类型的注册服务 - There is no registered service of type 'Microsoft.AspNetCore.Components.Authorization.AuthenticationStateProvider' “Microsoft.AspNetCore.Components.WebAssembly.Authentication.BaseAddressAuthorizationMessageHandler”类型没有服务错误 - No service for type ' Microsoft.AspNetCore.Components.WebAssembly.Authentication.BaseAddressAuthorizationMessageHandler' Error 暴击:Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100] - crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100] 自定义 AssemblyLoadContext 无法加载 Microsoft.AspNetCore.Components - Custom AssemblyLoadContext failing to load Microsoft.AspNetCore.Components 在 Windows 平台的情况下,如何为 MAUI 应用程序指定 window 大小? - How to specify window size for a MAUI application in case of Windows platform?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM