首页 > 其他分享 >AvaloniaVS2022

AvaloniaVS2022

时间:2024-11-13 12:40:25浏览次数:1  
标签:... amd64 kisak 24.2 AvaloniaVS2022 ubuntu mesa

AvaloniaVS.VS2022安装和使用

首先下载VS2022专业版

https://visualstudio.microsoft.com/zh-hans/downloads/

image-20241113082713868

image-20241113092111414

安装Avalonia for Visual Studio 2022扩展包

image-20241113083825332

这里直接安装经常失败,我下载AvaloniaVS.VS2022.vsix 单独安装,直接以管理员安装就可以,时间有点长,耐心等待

image-20241113092537426

image-20241113084150337image-20241113084205005image-20241113084344980

打开VS2022 开始创建项目

image-20241113084639609

image-20241113084750103

image-20241113084810076

image-20241113084829379

image-20241113084846836

image-20241113085016063

image-20241113085213025

image-20241113085341755

image-20241113085430278

那么怎么样把程序运行在 Ubuntu 20.04 X64 Linux

直接拷贝过去是不行的,我们需要使用发布的方式

image-20241113085901157

image-20241113085936545

image-20241113085951558

image-20241113090043591

image-20241113090244957

image-20241113090327098

image-20241113090421893

image-20241113090508029

image-20241113090653630

image-20241113091153635

image-20241113091706133

image-20241113091905004

感觉好像需要设置打开方式

image-20241113120525861

dell@dell-Precision-7920-Tower:~/桌面$ sudo add-apt-repository ppa:kisak/kisak-mesa
[sudo] dell 的密码:
PPA publishes dbgsym, you may need to include 'main/debug' component
源: 'Types: deb
URIs: https://ppa.launchpadcontent.net/kisak/kisak-mesa/ubuntu/
Suites: noble
Components: main
'
描述:
The goal of this PPA is to provide the latest point release of Mesa plus select non-invasive early backports. Deviations from upstream packages are listed on the package details page.

--- Support status ---

Bionic (18.04) - Discontinued - Long term users can use kisak-mesa stable
Focal (20.04) - Supported
Jammy (22.04) - Supported
Noble (24.04) - Preliminary support (Not tested locally)

Note: Please report any issues to mesa. ARM builds are not tested locally.

--- Is this PPA stable? ---

Short answer: Mostly.

Long answer: Compared to bleeding edge mesa PPAs, there is a much lower chance of complications, but as Ubuntu LTS releases age, the odds of unexpected interactions between older kernels / compilers / X increases with each major release. Anomalies are inevitable the further the host system gets from the configuration active mesa developers use on a daily basis. If you value stability over support, https://launchpad.net/~kisak/+archive/ubuntu/turtle/ is available as an alternative.

In the event that there is a major issue with new mesa on an older Ubuntu LTS and the mesa devs are not interested in triaging the issue, then the Ubuntu LTS release will be dropped from this PPA and the last release pushed to kisak-mesa stable will be frozen.

--- Package status ---

llvm - Following latest point release supported by mesa

  • Focal / Jammy frozen on llvm 15
    mesa - Following latest point release
    libdrm - Updating as needed for mesa

Mesa 24.2.0 note:
This update cycle dropped some hacks that allowed rusticl on Jammy.
Upstream added NVK, but is only sane on Noble, with missing i386 dependencies.

--- Removal ---

It's strongly recommended to remove this PPA before upgrading to a newer Ubuntu release or using another mesa PPA.

sudo apt install ppa-purge
sudo ppa-purge ppa:kisak/kisak-mesa

Note: Using ppa-purge with Ubuntu derivatives needs to include -d <based_on_name> to work safely. For example, Linux Mint 20 is based on Ubuntu Focal, so that would make it:

sudo ppa-purge -d focal ppa:kisak/kisak-mesa

--- Donations ---

I can't accept donations and any random donation site account is a scam. If you have some extra money burning a hole in your pocket, please consider sending it to a charity of your choice (for the poors, animals, whatever else you may think it might need it), then send Oibaf a note that I stole the suggestion from his PPA.
更多信息:https://launchpad.net/~kisak/+archive/ubuntu/kisak-mesa
正在添加源。
按 [ENTER] 继续,或按 Ctrl-c 取消。
命中:1 http://security.ubuntu.com/ubuntu noble-security InRelease
命中:2 http://archive.ubuntu.com/ubuntu noble InRelease
获取:3 http://archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB]
获取:4 https://ppa.launchpadcontent.net/kisak/kisak-mesa/ubuntu noble InRelease [24.1 kB]
命中:5 http://archive.ubuntu.com/ubuntu noble-backports InRelease
获取:6 https://ppa.launchpadcontent.net/kisak/kisak-mesa/ubuntu noble/main amd64 Packages [5,260 B]
获取:7 https://ppa.launchpadcontent.net/kisak/kisak-mesa/ubuntu noble/main Translation-en [4,056 B]
已下载 160 kB,耗时 3秒 (59.1 kB/s)
正在读取软件包列表... 完成
dell@dell-Precision-7920-Tower:~/桌面$ sudo apt update
命中:1 http://security.ubuntu.com/ubuntu noble-security InRelease
命中:2 http://archive.ubuntu.com/ubuntu noble InRelease
命中:3 http://archive.ubuntu.com/ubuntu noble-updates InRelease
命中:4 https://ppa.launchpadcontent.net/kisak/kisak-mesa/ubuntu noble InRelease
命中:5 http://archive.ubuntu.com/ubuntu noble-backports InRelease
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成
有 13 个软件包可以升级。请执行 ‘apt list --upgradable’ 来查看它们。
dell@dell-Precision-7920-Tower:~/桌面$ sudo apt upgrade
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成
正在计算更新... 完成
下列软件包是自动安装的并且现在不需要了:
libgl1-amber-dri
使用'sudo apt autoremove'来卸载它(它们)。
下列【新】软件包将被安装:
mesa-libgallium
下列软件包将被升级:
libdrm-amdgpu1 libdrm-common libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libdrm2 libegl-mesa0 libgbm1 libgl1-mesa-dri
libglapi-mesa libglx-mesa0 libxatracker2 mesa-vulkan-drivers
升级了 13 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
需要下载 31.1 MB 的归档。
解压缩后会消耗 68.9 MB 的额外空间。
您希望继续执行吗? [Y/n] Y
获取:1 https://ppa.launchpadcontent.net/kisak/kisak-mesa/ubuntu noble/main amd64 libdrm-common all 2.4.122-1kisakn [8,370 B]
获取:2 https://ppa.launchpadcontent.net/kisak/kisak-mesa/ubuntu noble/main amd64 libdrm2 amd64 2.4.122-1kisakn [40.6 kB]
获取:3 https://ppa.launchpadcontent.net/kisak/kisak-mesa/ubuntu noble/main amd64 libdrm-amdgpu1 amd64 2.4.122-1kisakn [23.2 kB]
获取:4 https://ppa.launchpadcontent.net/kisak/kisak-mesa/ubuntu noble/main amd64 libdrm-intel1 amd64 2.4.122-1kisakn [66.4 kB]
获取:5 https://ppa.launchpadcontent.net/kisak/kisak-mesa/ubuntu noble/main amd64 libdrm-nouveau2 amd64 2.4.122-1kisakn [20.2 kB]
获取:6 https://ppa.launchpadcontent.net/kisak/kisak-mesa/ubuntu noble/main amd64 libdrm-radeon1 amd64 2.4.122-1kisakn [23.3 kB]
获取:7 https://ppa.launchpadcontent.net/kisak/kisak-mesa/ubuntu noble/main amd64 libgl1-mesa-dri amd64 24.2.6kisak1n [45.6 kB]
获取:8 https://ppa.launchpadcontent.net/kisak/kisak-mesa/ubuntu noble/main amd64 libglx-mesa0 amd64 24.2.6kisak1n [164 kB]
获取:9 https://ppa.launchpadcontent.net/kisak/kisak-mesa/ubuntu noble/main amd64 libegl-mesa0 amd64 24.2.6kisak1n [140 kB]
获取:10 https://ppa.launchpadcontent.net/kisak/kisak-mesa/ubuntu noble/main amd64 libglapi-mesa amd64 24.2.6kisak1n [41.9 kB]
获取:11 https://ppa.launchpadcontent.net/kisak/kisak-mesa/ubuntu noble/main amd64 mesa-libgallium amd64 24.2.6kisak1n [9,800 kB]
获取:12 https://ppa.launchpadcontent.net/kisak/kisak-mesa/ubuntu noble/main amd64 libgbm1 amd64 24.2.6kisak1n [42.5 kB]
获取:13 https://ppa.launchpadcontent.net/kisak/kisak-mesa/ubuntu noble/main amd64 libxatracker2 amd64 24.2.6kisak1n [2,427 kB]
获取:14 https://ppa.launchpadcontent.net/kisak/kisak-mesa/ubuntu noble/main amd64 mesa-vulkan-drivers amd64 24.2.6kisak1n [18.2 MB]
已下载 31.1 MB,耗时 20分 13秒 (25.6 kB/s)
(正在读取数据库 ... 系统当前共安装有 186921 个文件和目录。)
准备解压 .../00-libdrm-common_2.4.122-1kisakn_all.deb ...
正在解压 libdrm-common (2.4.122-1kisakn) 并覆盖 (2.4.120-2build1) ...
准备解压 .../01-libdrm2_2.4.122-1kisakn_amd64.deb ...
正在解压 libdrm2:amd64 (2.4.122-1kisakn) 并覆盖 (2.4.120-2build1) ...
准备解压 .../02-libdrm-amdgpu1_2.4.122-1kisakn_amd64.deb ...
正在解压 libdrm-amdgpu1:amd64 (2.4.122-1kisakn) 并覆盖 (2.4.120-2build1) ...
准备解压 .../03-libdrm-intel1_2.4.122-1kisakn_amd64.deb ...
正在解压 libdrm-intel1:amd64 (2.4.122-1kisakn) 并覆盖 (2.4.120-2build1) ...
准备解压 .../04-libdrm-nouveau2_2.4.122-1kisakn_amd64.deb ...
正在解压 libdrm-nouveau2:amd64 (2.4.122-1kisakn) 并覆盖 (2.4.120-2build1) ...
准备解压 .../05-libdrm-radeon1_2.4.122-1kisakn_amd64.deb ...
正在解压 libdrm-radeon1:amd64 (2.4.122-1kisakn) 并覆盖 (2.4.120-2build1) ...
准备解压 .../06-libgl1-mesa-dri_24.2.6kisak1n_amd64.deb ...
正在解压 libgl1-mesa-dri:amd64 (24.2.6kisak1n) 并覆盖 (24.0.9-0ubuntu0.2) ...
准备解压 .../07-libglx-mesa0_24.2.6kisak1n_amd64.deb ...
正在解压 libglx-mesa0:amd64 (24.2.6kisak1n) 并覆盖 (24.0.9-0ubuntu0.2) ...
准备解压 .../08-libegl-mesa0_24.2.6kisak1n_amd64.deb ...
正在解压 libegl-mesa0:amd64 (24.2.6kisak1n) 并覆盖 (24.0.9-0ubuntu0.2) ...
准备解压 .../09-libglapi-mesa_24.2.6kisak1n_amd64.deb ...
正在解压 libglapi-mesa:amd64 (24.2.6kisak1n) 并覆盖 (24.0.9-0ubuntu0.2) ...
正在选中未选择的软件包 mesa-libgallium:amd64。
准备解压 .../10-mesa-libgallium_24.2.6kisak1n_amd64.deb ...
正在解压 mesa-libgallium:amd64 (24.2.6kisak1n) ...
准备解压 .../11-libgbm1_24.2.6kisak1n_amd64.deb ...
正在解压 libgbm1:amd64 (24.2.6kisak1n) 并覆盖 (24.0.9-0ubuntu0.2) ...
准备解压 .../12-libxatracker2_24.2.6kisak1n_amd64.deb ...
正在解压 libxatracker2:amd64 (24.2.6kisak1n) 并覆盖 (24.0.9-0ubuntu0.2) ...
准备解压 .../13-mesa-vulkan-drivers_24.2.6kisak1n_amd64.deb ...
正在解压 mesa-vulkan-drivers:amd64 (24.2.6kisak1n) 并覆盖 (24.0.9-0ubuntu0.2) ...
正在设置 libglapi-mesa:amd64 (24.2.6kisak1n) ...
正在设置 libdrm-common (2.4.122-1kisakn) ...
正在设置 libdrm2:amd64 (2.4.122-1kisakn) ...
正在设置 libdrm-amdgpu1:amd64 (2.4.122-1kisakn) ...
正在设置 mesa-vulkan-drivers:amd64 (24.2.6kisak1n) ...
正在设置 libdrm-nouveau2:amd64 (2.4.122-1kisakn) ...
正在设置 libdrm-radeon1:amd64 (2.4.122-1kisakn) ...
正在设置 libdrm-intel1:amd64 (2.4.122-1kisakn) ...
正在设置 libxatracker2:amd64 (24.2.6kisak1n) ...
正在设置 mesa-libgallium:amd64 (24.2.6kisak1n) ...
正在设置 libgbm1:amd64 (24.2.6kisak1n) ...
正在设置 libgl1-mesa-dri:amd64 (24.2.6kisak1n) ...
正在设置 libegl-mesa0:amd64 (24.2.6kisak1n) ...
正在设置 libglx-mesa0:amd64 (24.2.6kisak1n) ...
正在处理用于 libc-bin (2.39-0ubuntu8.3) 的触发器 ...
dell@dell-Precision-7920-Tower:~/桌面$

image-20241113123252608

双击运行,暂时还不行,就这样吧,先写程序了

image-20241113125059369

这个方法是OK的,谢谢

标签:...,amd64,kisak,24.2,AvaloniaVS2022,ubuntu,mesa
From: https://www.cnblogs.com/funiyi816/p/18543668

相关文章