调研Mac环境下是否可以正常运行
JusterZhu opened this issue · comments
将搭载GeneralUpdate组件的应用程序在Mac环境下运行测试
目前因为GeneralUpdate.Single项目中,有引用
using System.Windows;
using System.Windows.Threading;
所以在Mac无法还原这个基础项目,建议做成根据操作系统环境判定是否启用这部分受影响的工具类
VS for Mac 2019 以及最新的Preview版本,均输出:
获取项目 /Users/mac/GitHub/JaneConan/AutoUpdater/src/GeneralUpdate.AspNetCore/GeneralUpdate.AspNetCore.csproj 的还原信息
获取项目 /Users/mac/GitHub/JaneConan/AutoUpdater/src/AutoUpdate.WpfNet6-Sample/AutoUpdate.WpfNet6-Sample.csproj 的还原信息
/usr/local/share/dotnet/sdk/6.0.200/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(90,5) : error NETSDK1100: 需使用 Windows 才能构建 Windows 桌面应用程序。
无法为项目创建包规范。/Users/mac/GitHub/JaneConan/AutoUpdater/src/AutoUpdate.WpfNet6-Sample/AutoUpdate.WpfNet6-Sample.csproj
目前情况建议部分standard类库向.net6迁移
目前因为GeneralUpdate.Single项目中,有引用
using System.Windows; using System.Windows.Threading;
所以在Mac无法还原这个基础项目,建议做成根据操作系统环境判定是否启用这部分受影响的工具类
VS for Mac 2019 以及最新的Preview版本,均输出:
获取项目 /Users/mac/GitHub/JaneConan/AutoUpdater/src/GeneralUpdate.AspNetCore/GeneralUpdate.AspNetCore.csproj 的还原信息 获取项目 /Users/mac/GitHub/JaneConan/AutoUpdater/src/AutoUpdate.WpfNet6-Sample/AutoUpdate.WpfNet6-Sample.csproj 的还原信息 /usr/local/share/dotnet/sdk/6.0.200/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(90,5) : error NETSDK1100: 需使用 Windows 才能构建 Windows 桌面应用程序。 无法为项目创建包规范。/Users/mac/GitHub/JaneConan/AutoUpdater/src/AutoUpdate.WpfNet6-Sample/AutoUpdate.WpfNet6-Sample.csproj
目前情况建议部分standard类库向.net6迁移
这一块的测试是这样的,把MAUI的程序可执行文件放在mac上看看能不能运行。因为MAC的VS对MAUI支持并不太好,所以这样测试不太能看出效果。GeneralUpdate.Single这个目前仅仅适合.net framwork . 如果要适配MAUI需要重新写
好滴,那我把MAUI发布一下,在Mac试着运行~ 我这边也有Linux机器,包括arm64的Linux,另外一个issue我也可以试试~