英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论