我在azure帐户中使用本文中的步骤https://learn.microsoft.com/en-us/windows/msix/desktop/azure-dev-ops创建了一个MSIX包。
<?xml version="1.0" encoding="utf-8"?>
<AppInstaller
Uri="file://shares/Intranet/Dev/DotnetCore/DotnetCoreInstaller.appinstaller"
Version="1.0.12.0" xmlns="http://schemas.microsoft.com/appx/appinstaller/2017/2">
<MainPackage
Name="57d2f575-7f7d-4529-badd-249f9e6e79b8"
Version="1.0.12.0"
Publisher="CN=21st Mortgage Corporation, O=21st Mortgage Corporation, L=Knoxville, S=Tennessee, C=US"
Uri="file://21stmortgage/shares/Intranet/Dev/DotnetCore/DesktopApp.msix" />
<UpdateSettings>
<OnLaunch
HoursBetweenUpdateChecks="0" />
</UpdateSettings>
</AppInstaller>我还添加了.appinstaller文件,如上面的文章所示。当我点击.appinstaller文件在目标机器上安装应用程序时,我会得到以下错误。
应用程序安装失败,错误消息:从(57d2f575-7f7d-4529-badd-249f9e6e79b8_1.0.12.0_x64__y43p6npyeryve)返回的包全名与从AppInstaller (57d2f575-7f7d-4529-badd-249f9e6e79b8_1.0.12.0_neutral__y43p6npyeryve).生成的名称不匹配请确保在file://shares/Intranet/Dev/DotnetCore/DesktopApp.msix.文件中指定的包属性与.appinstaller中引用的包属性匹配(0x8008020c)
发布于 2021-01-12 03:54:14
看起来,您需要在ProcessorArchitecture文件中为MainPackage属性设置.appinstaller属性。
如果未设置ProcessorArchitecture属性,则将使用其默认值neutral。有关详细信息,请参阅这里。
参见下面将ProcessorArchitecture设置为x64,因为从AppxManifest返回的全名为x64
<MainPackage
Name="57d2f575-7f7d-4529-badd-249f9e6e79b8"
Version="1.0.12.0"
Publisher="CN=21st Mortgage Corporation, O=21st Mortgage Corporation, L=Knoxville, S=Tennessee, C=US"
Uri="file://21stmortgage/shares/Intranet/Dev/DotnetCore/DesktopApp.msix"
ProcessorArchitecture="x64"/>https://stackoverflow.com/questions/65672663
复制相似问题