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