Unable to build UWP package for sideloading

  • Thread starter Thread starter Hong (MA, USA)
  • Start date Start date
H

Hong (MA, USA)

Guest
Immediately after building a UWP app package for Microsoft Store successfully, I tried to build its package for side-loading without changing anything. Unfortunately, the build kept failing with the following error:

2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VisualStudio\v16.0\AppxPackage\Microsoft.AppXPackage.Targets(6235,5): error : System.IO.DirectoryNotFoundException: Could not find a part of the path '...\MyApp\Assets'.
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VisualStudio\v16.0\AppxPackage\Microsoft.AppXPackage.Targets(6235,5): error : at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VisualStudio\v16.0\AppxPackage\Microsoft.AppXPackage.Targets(6235,5): error : at System.IO.FileSystemEnumerableIterator`1.CommonInit()
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VisualStudio\v16.0\AppxPackage\Microsoft.AppXPackage.Targets(6235,5): error : at System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost)
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VisualStudio\v16.0\AppxPackage\Microsoft.AppXPackage.Targets(6235,5): error : at System.IO.Directory.GetFiles(String path, String searchPattern, SearchOption searchOption)
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VisualStudio\v16.0\AppxPackage\Microsoft.AppXPackage.Targets(6235,5): error : at Microsoft.Build.AppxPackage.CreateAppInstallerPublishMeta.GetLogoFilePath(AppInstallerInfo appInstallerInfo)
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VisualStudio\v16.0\AppxPackage\Microsoft.AppXPackage.Targets(6235,5): error : at Microsoft.Build.AppxPackage.CreateAppInstallerPublishMeta.ExecuteImplementation()
I cleaned the solution and restarted VS to no avail.

Could anyone offer a tip on its remedy?



Hong

Continue reading...
 
Back
Top