C# code works but errors occur while packaging my UWP application in Visual Studio 2017

0

I have created a UWP application in Visual Studio. I plan on using it only for side loading(it is a LOB app). It doesn't have any errors. But when I try to package it, I get the following errors.

Errors in Packaging

0X8007000b an attempt was made to load a program with an incorrect format

Also, here is my output console.

Output

How do I fix this?

c#
uwp
visual-studio-2017
packaging
asked on Stack Overflow Jul 2, 2017 by Cade Engen • edited Jul 6, 2017 by Cade Engen

1 Answer

0
  • From the solution explorer, double click and open Package.appxmanifest Click on Visual Assets tab on top. It is second from left, after Application tab.
  • Select a source image (this is the image you want to use for logos, badges, splash screen, etc.)
  • Under assets combo box, select all All Visual Assets
  • Hit Generate
  • Say ok that it will overwrite your existing files

Now, if you want to use a different image for any of the specific areas, for example, App Icon, scroll down, and provide a different source for it.

Now, build and make sure your app builds. Then attempt to create the app package again.

answered on Stack Overflow Jul 27, 2017 by karann - MSFT

User contributions licensed under CC BY-SA 3.0