marv51
marv51

Reputation: 376

What of UWP App must be packed into appx?

Long time reader, first time writer:

I'm trying to move my WPF-App to UWP, as a first addition I would like to include an in-app help reader that will be built in UWP.

I packed my app with the centennial VisualStudio extension, and it works nicely.

For the help reader I've added an empty Universal Windows App Project to the solution. I plan to activate the project with a custom url scheme (protocol activation).

But in the process of starting the UWP app it crashes. It can not load the MainPage.xaml file, I think. I'm starting it from WPF with Process.Start("app1-help://showhelp");.

In the AppxManifest I've added:

 <uap:Extension Category="windows.protocol" 
      Executable="App1.exe" EntryPoint="App1.App">
     <uap:Protocol Name="app1-help"></uap:Protocol>
 </uap:Extension>

My question is: What do I need to include from the build output of the UWP App in the appx package? Currently I only add the App1.exe file.

The output folder contains more then 100 files, most of them dotNETcore dlls. I don't really understand yet how all the files work together to create a white-"hello world" window:

app1.xr.xml
vs.appxrecipe
resources.pri
Microsoft.*.dll
System.*.dll
clrjit.dll
clrcompression.dll
WinMetadata/Windows.winmd
Properties/Default.rd.xml
entrypoint/App1.exe

A pointer to some explanations of what all these files do, and which ones I need to package in the centennial appx would be really awesome.

Thank you in advance for any help.

Upvotes: 0

Views: 509

Answers (1)

rido
rido

Reputation: 1242

If you are planning to include a UWP component to your solution, you can use that project as the "packaging" project, and then add the output from the WPF project.

In the desktop bridge samples repo, you will find several options to integrate WPF and UWP. And this post explain those in more detail.

Upvotes: 2

Related Questions