Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[交流贴] NET 9 的 blazor.webassembly.js 兼容性问题是怎么处理的? #79

Closed
vitash opened this issue Dec 27, 2024 · 3 comments

Comments

@vitash
Copy link

vitash commented Dec 27, 2024

这两天测了一下 Android 8,发现一直在 loading 中,一路查找从 Maui 到 aspnetcore ( dotnet/maui#25862dotnet/maui#24278dotnet/aspnetcore#59090 )。发现他们真的不想管这个问题(就想用最新),有计划是 NET10 处理一下兼容性,感觉就悬。

就以这种兼容性,IOS 16(2022年9月)、安卓API 31(2021年10月)都不行,对 Maui 来说真的难以接受。

另一个吐槽:XAML (dotnet/maui#13043 )促使我逃离 Maui,Blazor 是最后的选择了。

看到项目文件有自己的 blazor.webassembly.js,这是什么时候构建的?我也想直接拿来试用了,刚刚尝试构建 aspnetcore 的 Components,卡住了。

@vitash vitash closed this as completed Dec 27, 2024
@Yu-Core
Copy link
Owner

Yu-Core commented Dec 27, 2024

大概七天前,提交时构建的963a46c

自己构建的话也不是很难
下载aspnetcore源码
安装node.js
src/Components/Shared.JS/tsconfig.json 把target改为ES2019
https://github.com/dotnet/aspnetcore/blob/v9.0.0/src/Components/README.md#building-aspnet-core-components 只执行npm相关的就行,dotnet的不用跑,可能会有点小问题,不过搜索引擎都能解决
编译出来的js在src/Components/Web.JS/dist

@vitash
Copy link
Author

vitash commented Dec 27, 2024

强 👍,如果 NET 10没计划支持呢,那得自己构建了

@LuohuaRain
Copy link

发现他们真的不想管这个问题(就想用最新),有计划是 NET10 处理一下兼容性,感觉就悬。

有这个 有计划是 NET10 处理一下兼容性 的source吗?

thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants