question

archergod avatar image
5 Votes"
archergod asked simon-3776 answered

UWP Package not working after upgrading Visual studio

Today, I update from Visual studio 16.9 Community Edition to Visual Studio 16.10 Community Edition. But as upgrade finish my project stop working, I have an UWP app with Package project in solution and it was all working. But since upgrade it stop creating Package file for sideload distribution. We are getting following error:

System.Runtime.InteropServices.COMException (0x80070716): The specified resource name cannot be found in the image file. (Exception from HRESULT: 0x80070716)
at Microsoft.VisualStudio.Deployment.AppxFactory.CreatePackageReader(IStream inputStream)
at Microsoft.VisualStudio.Deployment.AppxInteropHelpers.GetAppxManifestReader3(String appxFilePath)
at Microsoft.Build.AppxPackage.AppxPackageFile.ReadAppxPackageFile()
at Microsoft.Build.AppxPackage.GenerateAppInstallerFile.AddPackageDependencies(XElement dependenciesRoot)
at Microsoft.Build.AppxPackage.GenerateAppInstallerFile.AddDependenciesIfNecessary(XElement element)
at Microsoft.Build.AppxPackage.GenerateAppInstallerFile.CreateAppInstallerFile(String uri, Boolean addOnLaunchUpdateCheck)
at Microsoft.Build.AppxPackage.GenerateAppInstallerFile.ExecuteImplementation() Package C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VisualStudio\v16.0\AppxPackage\Microsoft.AppXPackage.Targets 6362


After the failure I try to run the Code on VS 16.7 and it compile thre just fine, but not on machine with Windows 10, 64bit, 21H! with VS 16.10 .. Please suggest what should I change fix to make it working again.

windows-uwp
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I am also having this exact issue. Nothing changed in my code. I have no idea what resource name it is referring to is. Please fix this asap. The practical symptom is not being able to build the installer and index files. I have an old copy and I can deploy if I take the old file and rename the versions, then copy it out to my publish server.

System.Runtime.InteropServices.COMException (0x80070716): The specified resource name cannot be found in the image file. (Exception from HRESULT: 0x80070716)
at Microsoft.VisualStudio.Deployment.AppxFactory.CreatePackageReader(IStream inputStream)
at Microsoft.VisualStudio.Deployment.AppxInteropHelpers.GetAppxManifestReader3(String appxFilePath)
at Microsoft.Build.AppxPackage.AppxPackageFile.ReadAppxPackageFile()

2 Votes 2 ·

I made a simple test for your question. I'm using Visual Studio 2019 Enterprise 16.10. I tried to package a UWP app with the Packaging project. But the result shows that my app is packaged successfully. Based on your description, the code works correctly on the previous version of Visual Studio without changing anything, it looks like the issue is more related to the Visual Studio. I'd suggest you submit feedback from Visual Studio to report this behavior. Click on the Help Button on the top bar, select Send Feedback -> Report a Problem. Then please describe your issue about the VS team will check it.

0 Votes 0 ·
BurtonRodman-9745 avatar image
0 Votes"
BurtonRodman-9745 answered

Confirmed that 16.10 has BROKEN Appx build. After downgrading to 16.9.3 (which is the only 16.9.x version that would install without download errors), my project builds again (unchanged).

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

simon-3776 avatar image
0 Votes"
simon-3776 answered

A Visual Studio update has been released and it seems the error is resolved.

https://docs.microsoft.com/en-us/visualstudio/releases/2019/release-notes#16.10.2

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.