Is it possible to configure which <Application> gets launched when I F5 deploy my projects in Visual Studio?
I have an MSIX WinAppSDK app with a Package.appxmanifest that has multiple <Application>s (this cannot be changed):
<Package
xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest"
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
xmlns:uap3="http://schemas.microsoft.com/appx/manifest/uap/windows10/3"
IgnorableNamespaces="uap rescap wincap">
<!-- ... -->
<Applications>
<Application Id="Global.App1" Executable="App1.exe" EntryPoint="Windows.FullTrustApplication">
<uap:VisualElements
DisplayName="Global.App1"
Description="Global.App1"
Square150x150Logo="Assets\Square150x150Logo.png"
Square44x44Logo="Assets\Square44x44Logo.png"
BackgroundColor="transparent" AppListEntry="none" />
</Application>
<Application Id="Global.App2" Executable="App2.exe" EntryPoint="Windows.FullTrustApplication">
<uap:VisualElements
DisplayName="Global.App2"
Description="Global.App2"
Square150x150Logo="Assets\Square150x150Logo.png"
Square44x44Logo="Assets\Square44x44Logo.png"
BackgroundColor="transparent" AppListEntry="none" />
</Application>
</Applications>
</Package>
And a launchSettings.json that looks like this:
{
"profiles": {
"Run App (Local)": {
"commandName": "MsixPackage",
"nativeDebugging": true
}
}
Whenever I F5 deploy from Visual Studio, App1 launches, but I want App2 to launch. Is it possible to change which app launches via the launchSettings.json? (I believe changing the order in the <Applications> list would fix this, but my build system doesn't allow me to reorder them).