创建.NET MAUI Blazor应用程序的.exe文件的过程是什么?

huangapple go评论60阅读模式
英文:

What is the process to create a .exe file for a .NET MAUI Blazor application?

问题

I have made a .NET MAUI application using Blazor. And I want to export my application to share with my client. So I want to give them an .exe file with the app to run in windows. How can I do it? I'm using VS 22

I tried to publish the app but the file is in other extension file type.

我用Blazor制作了一个.NET MAUI应用程序,我想要将这个应用程序导出以与我的客户分享。所以我想要给他们一个.exe文件来在Windows上运行应用程序。我该如何做呢?我正在使用VS 22。

我尝试发布应用程序,但文件的扩展名是其他类型。

英文:

I have made a .NET MAUI application using Blazor. And I want to export my application to share with my client. So I want to give them an .exe file with the app to run in windows. How can I do it?
I'm using VS 22

I tried to publish the app but the file is in other extension file type

答案1

得分: 1

Maui is deployed as an MSIX file,而不是exe文件。这样可以安装所需的依赖项:

> .NET MAUI目前只允许发布MSIX包。目前还不能发布用于分发的Windows可执行文件。

请注意,MSIX文件始终是一种“安装”操作。目前不可能部署可在未安装的情况下运行的内容。

英文:

Maui is deployed as an MSIX file, not as an exe. So that it can install needed dependencies:

> .NET MAUI currently only allows publishing an MSIX package. You can't yet publish a Windows executable file for distribution.

Note that an MSIX file is always an "install" action. It isn't currently possible to deploy something that can be run without installation.

huangapple
  • 本文由 发表于 2023年5月25日 10:26:19
  • 转载请务必保留本文链接:https://go.coder-hub.com/76328509.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定