Visual studio 2015 如何修复xbox one的appxmanifest.xml?

Visual studio 2015 如何修复xbox one的appxmanifest.xml?,visual-studio-2015,unity5,xbox,xbox-one,appxmanifest,Visual Studio 2015,Unity5,Xbox,Xbox One,Appxmanifest,我目前在为xbox one开发的一款游戏中遇到此错误。它运行得非常好ThinkUnity5,当我将它导出为pc的.exe游戏时,我无法让它在本地或远程运行。我已经将它设置为调试x64,因为它在运行xbox one时需要打开 AppManifest.xml 快跑运动员 osbodav游戏 资产\StoreLogo.scale-100.png UnityEngineDelegates.dll UnityPlayer.dll CLRHost.dll 此处的错误消息非常清楚:windows.fil

我目前在为xbox one开发的一款游戏中遇到此错误。它运行得非常好ThinkUnity5,当我将它导出为pc的.exe游戏时,我无法让它在本地或远程运行。我已经将它设置为调试x64,因为它在运行xbox one时需要打开




AppManifest.xml
快跑运动员
osbodav游戏
资产\StoreLogo.scale-100.png
UnityEngineDelegates.dll
UnityPlayer.dll
CLRHost.dll

此处的错误消息非常清楚:
windows.fileTypeAssociation违反了“windows.backgroundTasks windows.preInstalledConfigTask windows.updateTask windows.restrictedLaunch”的枚举约束。无法分析值为“windows.fileTypeAssociation”的属性“Category”。

这意味着有一个名为
Category
的属性的值为
windows.fileTypeAssociation
,该值不是允许的值之一。清单中只有一个元素具有这样的属性:

<Extension Category="windows.fileTypeAssociation">
  <FileTypeAssociation Name="game" />
</Extension>

因此,您需要修改扩展名为
.appxmanifest
的文件,该扩展名为
AppManifest.xml
。它的名称可能类似于
package.appxmanifest

此处的错误消息非常清楚:
“windows.fileTypeAssociation”违反了“windows.backgroundTasks windows.preInstalledConfigTask windows.updateTask windows.restrictedLaunch”的枚举约束。无法分析值为“windows.fileTypeAssociation”的属性“Category”。

这意味着有一个名为
Category
的属性的值为
windows.fileTypeAssociation
,该值不是允许的值之一。清单中只有一个元素具有这样的属性:

<Extension Category="windows.fileTypeAssociation">
  <FileTypeAssociation Name="game" />
</Extension>

因此,您需要修改扩展名为
.appxmanifest
的文件,该扩展名为
AppManifest.xml
。它的名称可能类似于
package.appxmanifest

谢谢你的帮助我不知道文件在那里谢谢你的帮助我不知道文件在那里
AppManifest.xml

    <?xml version="1.0" encoding="utf-8"?>
<Package xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" IgnorableNamespaces="uap mp build" xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:build="http://schemas.microsoft.com/developer/appx/2015/build">
  <!--
    THIS PACKAGE MANIFEST FILE IS GENERATED BY THE BUILD PROCESS.

    Changes to this file will be lost when it is regenerated. To correct errors in this file, edit the source .appxmanifest file.

    For more information on package manifest files, see http://go.microsoft.com/fwlink/?LinkID=241727
  -->
  <Identity Name="SpeedRunner" Publisher="CN=osbodav gaming" Version="1.0.0.0" ProcessorArchitecture="x64" />
  <mp:PhoneIdentity PhoneProductId="b893210b-2006-4704-91d6-aad428b34a24" PhonePublisherId="00000000-0000-0000-0000-000000000000" />
  <Properties>
    <DisplayName>Speed Runner</DisplayName>
    <PublisherDisplayName>osbodav gaming</PublisherDisplayName>
    <Logo>Assets\StoreLogo.scale-100.png</Logo>
  </Properties>
  <Dependencies>
    <TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.10240.0" MaxVersionTested="10.0.14295.0" />
    <PackageDependency Name="Microsoft.VCLibs.140.00" MinVersion="14.0.23816.0" Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US" />
  </Dependencies>
  <Resources>
    <Resource Language="EN-US" />
  </Resources>
  <Applications>
    <Application Id="App" Executable="Speed Runner.exe" EntryPoint="SpeedRunner.App">
      <uap:VisualElements DisplayName="Speed Runner" Square150x150Logo="Assets\Square150x150Logo.scale-200.png" Square44x44Logo="Assets\Square44x44Logo.scale-200.png" Description="Speed Runner" BackgroundColor="transparent">
        <uap:DefaultTile ShortName="Speed Runner" Wide310x150Logo="Assets\Wide310x150Logo.scale-200.png" />
        <uap:SplashScreen Image="Assets\SplashScreen.scale-200.png" BackgroundColor="#222C37" />
        <uap:InitialRotationPreference>
          <uap:Rotation Preference="landscape" />
          <uap:Rotation Preference="landscapeFlipped" />
          <uap:Rotation Preference="portrait" />
          <uap:Rotation Preference="portraitFlipped" />
        </uap:InitialRotationPreference>
      </uap:VisualElements>
      <Extensions>
        <Extension Category="windows.fileTypeAssociation">
          <FileTypeAssociation Name="game" />
        </Extension>
      </Extensions>
    </Application>
  </Applications>
  <Extensions>
    <Extension Category="windows.activatableClass.inProcessServer">
      <InProcessServer>
        <Path>UnityEngineDelegates.dll</Path>
        <ActivatableClass ActivatableClassId="UnityEngineDelegates.PlatformInvoke" ThreadingModel="both" />
        <ActivatableClass ActivatableClassId="UnityEngineDelegates.FunctionDefsDictionary" ThreadingModel="both" />
      </InProcessServer>
    </Extension>
    <Extension Category="windows.activatableClass.inProcessServer">
      <InProcessServer>
        <Path>UnityPlayer.dll</Path>
        <ActivatableClass ActivatableClassId="UnityPlayer.XamlPageAutomationPeer" ThreadingModel="both" />
        <ActivatableClass ActivatableClassId="UnityPlayer.AppCallbacks" ThreadingModel="both" />
      </InProcessServer>
    </Extension>
    <Extension Category="windows.activatableClass.inProcessServer">
      <InProcessServer>
        <Path>CLRHost.dll</Path>
        <ActivatableClass ActivatableClassId="WinRTBridge.MethodTools" ThreadingModel="both" />
        <ActivatableClass ActivatableClassId="WinRTBridge.WinRTBridge" ThreadingModel="both" />
        <ActivatableClass ActivatableClassId="WinRTBridge.Marshalling" ThreadingModel="both" />
        <ActivatableClass ActivatableClassId="WinRTBridge.GCHandles" ThreadingModel="both" />
        <ActivatableClass ActivatableClassId="WinRTBridge.ExceptionHandling" ThreadingModel="both" />
        <ActivatableClass ActivatableClassId="WinRTBridge.Utils" ThreadingModel="both" />
        <ActivatableClass ActivatableClassId="WinRTBridge.UnityEngineObjectTools" ThreadingModel="both" />
        <ActivatableClass ActivatableClassId="WinRTBridge.ArrayTools" ThreadingModel="both" />
        <ActivatableClass ActivatableClassId="WinRTBridge.GCHandledObjects" ThreadingModel="both" />
        <ActivatableClass ActivatableClassId="WinRTBridge.ScriptingPinnedArray" ThreadingModel="both" />
        <ActivatableClass ActivatableClassId="WinRTBridge.TypeInformation" ThreadingModel="both" />
        <ActivatableClass ActivatableClassId="WinRTBridge.ObjectInstantiation" ThreadingModel="both" />
      </InProcessServer>
    </Extension>
  </Extensions>
  <build:Metadata>
    <build:Item Name="TargetFrameworkMoniker" Value=".NETCore,Version=v5.0" />
    <build:Item Name="VisualStudio" Version="14.0" />
    <build:Item Name="VisualStudioEdition" Value="Microsoft Visual Studio Community 2015" />
    <build:Item Name="OperatingSystem" Version="10.0.10586.0 (th2_release.151029-1700)" />
    <build:Item Name="Microsoft.Build.AppxPackage.dll" Version="14.0.25123.0" />
    <build:Item Name="ProjectGUID" Value="{13A45C13-3265-47B8-BC48-A553B569DF55}" />
    <build:Item Name="ilc.exe" Version="1.2.23413.00 built by: PROJECTNREL" />
    <build:Item Name="OptimizingToolset" Value="ilc.exe" />
    <build:Item Name="UseDotNetNativeSharedAssemblyFrameworkPackage" Value="true" />
    <build:Item Name="Microsoft.Windows.UI.Xaml.Build.Tasks.dll" Version="14.0.25123.0" />
    <build:Item Name="WindowsMobile" Version="10.0.14295.0" />
  </build:Metadata>
</Package>
<Extension Category="windows.fileTypeAssociation">
  <FileTypeAssociation Name="game" />
</Extension>
THIS PACKAGE MANIFEST FILE IS GENERATED BY THE BUILD PROCESS.

Changes to this file will be lost when it is regenerated. To correct errors in this file, edit the source .appxmanifest file.