Deepin 系统中安装Rider和Uno Platform

1、在系统的中断命令行中输入如下命令,安装.NET 8环境。

bash 复制代码
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb

sudo dpkg -i packages-microsoft-prod.deb

sudo apt-get update

sudo apt-get install -y apt-transport-https 

sudo apt-get update 

sudo apt-get install -y dotnet-sdk-8.0

2、在终端命令行中使用dotnet --version 查看安装的.NET 版本。如下图。

3、下载安装Rider,现在针对个人免费喽。下载后解压在bin目录下双击 rider.sh 可执行程序,运行rider。

感谢您下载 JetBrains Rider!

4、安装Uno Platform 。

bash 复制代码
dotnet tool install -g uno.check

dotnet tool update -g uno.check

uno-check

5、在Rider中添加Uno Platform的项目模版。在欢迎页面选择左下角的设置->插件->搜索Uno Platform->安装->重启IDE,重启IDE后再新建解决方案中就可以找到Uno Platform的项目模版了。

6、创建项目后运行效果如下图。

7、上文中没有关于android环境的配置,接下来补全。如果选择了包括android和ios等系统,会发现如下错误提示。

cs 复制代码
2>UnoAppPrism.csproj: Error NU1012 : Platform version is not present for one or more target frameworks, even though they have specified a platform: net8.0-android, net8.0-ios, net8.0-maccatalyst
2>UnoAppPrism.csproj: Error NU1012 : Platform version is not present for one or more target frameworks, even though they have specified a platform: net8.0-android, net8.0-ios, net8.0-maccatalyst
2>Uno.Build.targets(124,4): Error UNOB0014 : Building for Windows is not supported on non-Windows systems. See for more details: https://aka.platform.uno/UNOB0014
2>Uno.Build.targets(132,4): Error UNOB0014 : Building for Apple platforms is not supported on Linux. See for more details: https://aka.platform.uno/UNOB0014
2>Uno.Build.targets(132,4): Error UNOB0014 : Building for Apple platforms is not supported on Linux. See for more details: https://aka.platform.uno/UNOB0014
2>Microsoft.NET.Sdk.ImportWorkloads.targets(38,5): Error NETSDK1147 : 要构建此项目,必须安装以下工作负载: android
要安装这些工作负载,请运行以下命令: dotnet workload restore
2>------- Finished building project: UnoAppPrism. Succeeded: False. Errors: 6. Warnings: 0

以android为例,可以执行下面的命令安装android

bash 复制代码
sudo dotnet workload install android

安装android后,如下图。

bash 复制代码
1>------- Started building project: UnoAppPrism
1>UnoAppPrism.csproj: Error NU1012 : Platform version is not present for one or more target frameworks, even though they have specified a platform: net8.0-ios, net8.0-maccatalyst
1>UnoAppPrism.csproj: Error NU1012 : Platform version is not present for one or more target frameworks, even though they have specified a platform: net8.0-ios, net8.0-maccatalyst
1>UnoAppPrism.csproj: Error NU1012 : Platform version is not present for one or more target frameworks, even though they have specified a platform: net8.0-ios, net8.0-maccatalyst
1>Uno.Build.targets(124,4): Error UNOB0014 : Building for Windows is not supported on non-Windows systems. See for more details: https://aka.platform.uno/UNOB0014
1>Uno.Build.targets(132,4): Error UNOB0014 : Building for Apple platforms is not supported on Linux. See for more details: https://aka.platform.uno/UNOB0014
1>Uno.Build.targets(132,4): Error UNOB0014 : Building for Apple platforms is not supported on Linux. See for more details: https://aka.platform.uno/UNOB0014
1>------- Finished building project: UnoAppPrism. Succeeded: False. Errors: 6. Warnings: 0

哪是不是ios就是?

bash 复制代码
sudo dotnet workload install ios
bash 复制代码
1>------- Started building project: UnoAppPrism
1>UnoAppPrism.csproj: Error NU1012 : Platform version is not present for one or more target frameworks, even though they have specified a platform: net8.0-ios, net8.0-maccatalyst
1>UnoAppPrism.csproj: Error NU1012 : Platform version is not present for one or more target frameworks, even though they have specified a platform: net8.0-ios, net8.0-maccatalyst
1>UnoAppPrism.csproj: Error NU1012 : Platform version is not present for one or more target frameworks, even though they have specified a platform: net8.0-ios, net8.0-maccatalyst
1>Uno.Build.targets(124,4): Error UNOB0014 : Building for Windows is not supported on non-Windows systems. See for more details: https://aka.platform.uno/UNOB0014
1>Uno.Build.targets(132,4): Error UNOB0014 : Building for Apple platforms is not supported on Linux. See for more details: https://aka.platform.uno/UNOB0014
1>Uno.Build.targets(132,4): Error UNOB0014 : Building for Apple platforms is not supported on Linux. See for more details: https://aka.platform.uno/UNOB0014
1>------- Finished building project: UnoAppPrism. Succeeded: False. Errors: 6. Warnings: 0

说说感受吧,不能在Linux上编译Window、也不能搞ios,真是一万个神兽。不知道是不是我的问题,请懂的兄弟赐教。非常感谢

相关推荐
NightReader2 分钟前
Ubuntu 22.04使用nitrogen设置双屏显示
linux·运维·ubuntu
Vicky&James3 分钟前
英雄联盟客户端项目:从跨平台Uno Platform到Win UI3的转换只需要30分钟
github·wpf·跨平台·英雄联盟·winui·unoplatform
CoderJia程序员甲4 分钟前
阿里云Linux安装Docker服务报错问题
linux·阿里云·docker
yfs102436 分钟前
普通用户切换到 root 用户不需要输入密码配置(Ubuntu20)
linux
腾讯蓝鲸智云1 小时前
大模型在蓝鲸运维体系应用——蓝鲸运维开发智能助手
运维·自动化·云计算·sass
Angindem1 小时前
(Termux)旧手机变Ubuntu服务器
linux·运维·服务器
西装暴徒_121381 小时前
基于node一键发布到服务器的js脚本
运维·服务器·javascript
ZhangTao_zata1 小时前
从python源码到可自动更新软件
linux·开发语言·python
Blood_J1 小时前
Jenkins配置步骤
运维·servlet·jenkins
IPdodo全球网络2 小时前
如何解决亚马逊商家IP问题:静态住宅IP的优势与选择指南
大数据·运维·网络