I wrote a .Net Core app and an C# UWP app, which uses FullTrustProcessLauncher to run the first app. When I use xcopy for the executable of the first app in Postbuild of the UWP app, the executable is added to Appx directory and can be executed from the UWP app. But if I publish the UWP with Visual Studio 2019, the first app is not included in the AppPackage.
I tried also to add the executable directly in the UWP project with content and copy ever property but that does also not work :(
Additionally, I tried to create a Windows Application Packaging Project and added a reference for both projects, but as I tried to start the first app an exception for an invalid manifest of the Appx-package was thrown.
Can anyone tell me what I have to do fix that problem?
It seems that you didn't add first app exe into the package project.
It should work fine. if not, check https://github.com/vincent1000/uwp-call-win32 for sample.