Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

Failing to find AppxManifest.xml

Discussion in 'Windows' started by Smart-hawk1, Aug 2, 2019.

  1. Smart-hawk1

    Smart-hawk1

    Joined:
    May 23, 2017
    Posts:
    292
    Hi!

    I'm trying to build a debug build on my local machine, upon build finishing it will show this error:

    My build is failing everytime with following error:

    Code (CSharp):
    1. System.IO.DirectoryNotFoundException: Could not find a part of the path '...........\build\bin\x64\Debug\AppX\AppxManifest.xml
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    6,338
    What/how are you building? Can you paste the full output?
     
  3. Smart-hawk1

    Smart-hawk1

    Joined:
    May 23, 2017
    Posts:
    292
    Hey i'm trying to build a Universal Windows Platform (UWP) project from Unity, the build fails with the following errors:

    Code (CSharp):
    1. BuildFailedException: Deployment failed. Output:
    2. System.IO.DirectoryNotFoundException: Could not find a part of the path 'G:\Unity\Projects\MATRIX UWP\Project\DRIFT MATRIX\Build\TestBuilds\TestBuild1\build\bin\x64\Debug\AppX\AppxManifest.xml'.
    3.  
    4.    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    5.  
    6.    at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
    7.  
    8.    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
    9.  
    10.    at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy)
    11.  
    12.    at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
    13.  
    14.    at System.Xml.XmlTextReaderImpl.FinishInitUriString()
    15.  
    16.    at System.Xml.XmlReaderSettings.CreateReader(String inputUri, XmlParserContext inputContext)
    17.  
    18.    at System.Xml.Linq.XDocument.Load(String uri, LoadOptions options)
    19.  
    20.    at WindowsPhonePlayerRunner.AppxManifest..ctor(String appxPath) in C:\buildslave\unity\build\PlatformDependent\MetroPlayer\WindowsPhonePlayerRunner\WindowsPhonePlayerRunner\AppxManifest.cs:line 58
    21.  
    22.    at WindowsPhonePlayerRunner.AppxManifest.Get(String appxPath) in C:\buildslave\unity\build\PlatformDependent\MetroPlayer\WindowsPhonePlayerRunner\WindowsPhonePlayerRunner\AppxManifest.cs:line 39
    23.  
    24.    at UWPPlayerLauncher.Program.Run(ProgramArguments arguments) in C:\buildslave\unity\build\PlatformDependent\MetroPlayer\UWPPlayerLauncher\Main.cs:line 131
    25.  
    26.    at UWPPlayerLauncher.Program.Main(String[] args) in C:\buildslave\unity\build\PlatformDependent\MetroPlayer\UWPPlayerLauncher\Main.cs:line 92
    27.  
    28.  
    29. ApplicationLauncherImpl.RunOnLocalMachine (System.String commandLine) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ApplicationLauncher.cs:188)
    30. ApplicationLauncherImpl.Run (Utility+VisualStudio vs) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ApplicationLauncher.cs:152)
    31. ApplicationLauncher.BuildAndRunProject (UnityEditor.Modules.BuildLaunchPlayerArgs args, UnityEditor.WSABuildAndRunDeployTarget deployTarget, System.String platform, Utility+VisualStudio vs) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ApplicationLauncher.cs:61)
    32. ApplicationLauncher.BuildAndRun (UnityEditor.Modules.BuildLaunchPlayerArgs args) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ApplicationLauncher.cs:36)
    33. UnityEditor.UWP.BuildPostprocessor.LaunchPlayer (UnityEditor.Modules.BuildLaunchPlayerArgs args) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ExtensionModule.cs:83)
    34. UnityEditor.PostprocessBuildPlayer.Launch (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget buildTarget, System.String path, System.String productName, UnityEditor.BuildOptions options, UnityEditor.Build.Reporting.BuildReport buildReport) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:166)
    35. UnityEditor.EditorApplication:Internal_CallGlobalEventHandler()
    36.  
     
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    6,338
    Which Unity version are you on? Can you show a screenshot of your Build Window in Unity so I could see which build settings you're using?
     
  5. Smart-hawk1

    Smart-hawk1

    Joined:
    May 23, 2017
    Posts:
    292


    2019.1.0f2
     
  6. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    6,338
    Can you by any chance attach your editor log? Something is going wrong - I'm not exactly sure yet.

    Another alternative would be to try pressing "Build" instead of "Build & Run" and see if you encounter any issues when building generated Visual Studio project yourself. And yet another alternative would be to change Build Type to Executable Only (which is actually preferred for iteration types, as it doesn't involve generating intermediate Visual Studio project that needs to be built).