当前位置: 首页 > news >正文

Deepin 系统中安装Rider和Uno Platform

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

wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.debsudo dpkg -i packages-microsoft-prod.debsudo apt-get updatesudo 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 。

dotnet tool install -g uno.checkdotnet tool update -g uno.checkuno-check

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

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

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

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

sudo dotnet workload install android

安装android后,如下图。 

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就是?

sudo dotnet workload install ios
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,真是一万个神兽。不知道是不是我的问题,请懂的兄弟赐教。非常感谢


http://www.mrgr.cn/news/70149.html

相关文章:

  • css-50 Projects in 50 Days(4)
  • 安装仓库,ssh连接与nfs共享文件
  • python共享全局变量的方案
  • Spring Boot 接口防重复提交解决方案
  • Redis简介、数据结构、高性能读写、持久化机制、分布式架构
  • 数字后端教程之Innovus report_property和get_property使用方法及应用案例
  • 《Django 5 By Example》阅读笔记:p1-p16
  • 前端-服务端渲染(SSR)和客户端渲染(CSR)的页面,在浏览器发出请求之后,分别返回的是什么
  • axios如何给某一个请求设置请求头信息
  • Python和Java就业趋势分析
  • Swift 宏(Macro)入门趣谈(一)
  • Xcode 16 中 Swift Testing 的参数化(Parameterized)机制趣谈
  • MrakDown图片
  • 关于JWT的攻击利用
  • 盘古信息赋能中小企业:数字化转型的成功实践分享
  • Deepin系统安装NET 8.0.10 运行时
  • 深入理解Python字符串:驻留机制、内存分析与同一性判断
  • 2024中国游戏出海情况
  • 【Linux系统编程】线程--控制
  • linux内核驱动心得
  • 整页添加水印的方法
  • idea插件开发-国际化调试
  • 985研一学习日记 - 2024.11.10
  • AI写作(七)的核心技术探秘:情感分析与观点挖掘
  • 以字符串的形式输出一个当前操作系统的路径分隔符os.altsep
  • VirtIO实现原理(1)