简体   繁体   English

.Net Maui .exe 无法在 Windows 服务器上运行

[英].Net Maui .exe wont run on Windows server

I have built a .net maui application with blazor using the following command:我使用以下命令构建了一个带有 blazor 的 .net maui 应用程序:

dotnet publish -f net6.0-windows10.0.19041.0 -c Release -p:WindowsPackageType=None /p:PublishSingleFile=true /p:IncludeNativeLibrariesForSelfExtract=true --self-contained true /p:DebugType=None /p:EnableCompressionInSingleFile=true

The application runs fine on my development machine (Windows 10)该应用程序在我的开发机器上运行良好(Windows 10)

It also runs fine on another machine i tested after installing Windows app sdk 1.1 from here: https://docs.microsoft.com/en-us/windows/apps/windows-app-sdk/downloads它还在我从这里安装 Windows 应用程序 sdk 1.1 后测试的另一台机器上运行良好: https ://docs.microsoft.com/en-us/windows/apps/windows-app-sdk/downloads

However, on a Windows server 2019 machine i am unable to install Windows app sdk 1.1 (it crashes after a few console lines), and the .net maui application will not open.但是,在 Windows server 2019 机器上,我无法安装 Windows app sdk 1.1(它在几行控制台行后崩溃),并且 .net maui 应用程序将无法打开。

This scenario is known as unpackaged publishing and is not supported yet.此方案称为未打包发布,尚不支持。 This issue tracks the progress and adds some instructions that you might try to make it work today: https://github.com/dotnet/maui/issues/3166此问题跟踪进度并添加一些说明,您可能会尝试使其在今天工作: https ://github.com/dotnet/maui/issues/3166

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM