Avalonia 打包成Linux的deb安装包

使用 dotnet-deb 工具安装自定义 .NET 应用的 .deb 包

1.安装 dotnet-deb 打包工具

dotnet tool install --global dotnet-deb

2.在项目根目录下打开命令窗口。

3.运行以下命令:
dotnet deb install
dotnet restore -r linux-x64
dotnet msbuild <项目名称>.csproj /t:CreateDeb /p:TargetFramework=net6.0 /p:RuntimeIdentifier=linux-x64 /p:Configuration=Release
最后在 bin 文件夹下可以找到生成的 deb 文件

例子:
dotnet deb install
dotnet restore -r linux-x64
dotnet msbuild YourLinuxDesktop.csproj /t:CreateDeb /p:TargetFramework=net6.0 /p:RuntimeIdentifier=linux-x64 /p:Configuration=Release

posted @   筑丹期码农  阅读(89)  评论(1编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
点击右上角即可分享
微信分享提示