0

我尝试从https://msdn.microsoft.com/en-us/library/windows/desktop/mt808781(v=vs.85).aspx运行 TruePlay 教程,但出现错误:

“无法激活 Windows 应用商店应用程序‘AppName’。ProcessName 进程已启动,但激活请求失败并出现错误‘ErrorNumber’(它表示“在系统二进制文件中发现错误,请尝试恢复您的 PC)-翻译自俄语“

我在 Visual Studio 2017 中使用了一个新的 C++ UWP 项目

此外,当我更改我的 Package.appxmanifest(如上面链接中的教程)并构建项目时,会出现此警告:

https://i.stack.imgur.com/2gflN.png

文件清单:

<?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"
  IgnorableNamespaces="uap mp rescap">


  <Identity
    Name="76f3b46c-58e3-422b-a2ee-c9d7dfd62e9b"
    Publisher="CN=dana"
    Version="1.0.0.0" />

  <mp:PhoneIdentity PhoneProductId="76f3b46c-58e3-422b-a2ee-c9d7dfd62e9b" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>

  <Properties>
    <DisplayName>App6</DisplayName>
    <PublisherDisplayName>dana</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="App6.App">
      <uap:VisualElements
        DisplayName="App6"
        Square150x150Logo="Assets\Square150x150Logo.png"
        Square44x44Logo="Assets\Square44x44Logo.png"
        Description="App6"
        BackgroundColor="transparent">
        <uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png"/>
        <uap:SplashScreen Image="Assets\SplashScreen.png" />
      </uap:VisualElements>
    </Application>
  </Applications>

  <Capabilities>
    <Capability Name="internetClient" />
    <rescap:Capability Name="gameMonitor" />
    <rescap:Capability Name="protectedApp" />
  </Capabilities>
</Package>

4

0 回答 0