相关疑难解决方法(0)

为商店构建通用应用程序时出错:"清单引用文件'MyAppName.dll',它不是有效负载的一部分."

我尝试为Windows通用应用程序创建商店的应用程序包时,在Visual Studio 2015中出现此错误:

清单引用文件'MyAppName.dll',它不是有效负载的一部分.

错误发生在...\..MyAppSourcePath..\Package.appxmanifest文件中.

这是以某种方式相关的Manifest引用文件'Bing.Maps.dll',它不是有效负载的一部分,但在我的情况下,错误只出现在商店的构建包并且与MyAppName.dll(MyAppName其名称)相关时我的应用程序).

MSDN中的另一个相关问题:https://social.msdn.microsoft.com/Forums/en-US/f137091e-f550-4eab-b7e2-418149b97d40/error-appx0703-manifest-references-file-myappnamedll-which-is-不是部分的最有效载荷?论坛= windowsstore

c# build-error windows-store win-universal-app visual-studio-2015

8
推荐指数
2
解决办法
4905
查看次数

打包个人Windows通用应用程序windows.fullTrustProcess

这是我第一次制作Windows Universal应用程序,但无法在UWP应用程序中创建所有内容(例如,无法启动命令行进程)。由于这是一个个人应用程序(我不想将其放在商店中),因此我使用windows.fullTrustProcess启动了WPF win32应用程序,以使我无法在主应用程序中执行任何操作。我还被迫使用UWP,因为我需要一个能够播放全屏html5视频的WebView。

当我尝试在Visual Studio 2017中使用我的应用程序时,一切正常,但是当我尝试制作一个软件包时,出现此错误:

“清单验证错误:第28行,第64列,原因:为元素” [local-name()='Applications'] / [local-name()='Application' 声明的文件名“ Backend-Mini-Browser.exe” 包中不存在'] / [local-name()='Extensions'] / [local-name()='Extension'和@ Category ='windows.fullTrustProcess']“。

但是我的“ Backend-Mini-Browser.exe”位于“ .. \ bin \ x64 \ Debug \ AppX”文件夹中,并且一切都在Visual Studio 2017中运行。

这是我的appxmanifest:

<?xml version="1.0" encoding="utf-8"?>
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities" xmlns:desktop="http://schemas.microsoft.com/appx/manifest/desktop/windows10" IgnorableNamespaces="uap mp desktop rescap">
  <Identity Name="2579cda2-1e8c-48ee-829a-b1d276066cfe" Publisher="CN=Certimeter" Version="1.0.3.0" />
  <mp:PhoneIdentity PhoneProductId="2579cda2-1e8c-48ee-829a-b1d276066cfe" PhonePublisherId="00000000-0000-0000-0000-000000000000" />
  <Properties>
    <DisplayName>Mini-browser</DisplayName>
    <PublisherDisplayName>Certimeter</PublisherDisplayName>
    <Logo>Assets\StoreLogo.png</Logo>
  </Properties>
  <Dependencies>
    <TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.0.0" MaxVersionTested="10.0.0.0" />
  </Dependencies>
  <Resources>
    <Resource Language="x-generate" />
  </Resources>
  <Applications>
    <Application Id="App" Executable="$targetnametoken$.exe" EntryPoint="Mini_browser.App">
    <uap:VisualElements DisplayName="Mini-browser" Square150x150Logo="Assets\Square150x150Logo.png" …
Run Code Online (Sandbox Code Playgroud)

c# appxmanifest uwp desktop-bridge

2
推荐指数
1
解决办法
373
查看次数