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=";
xmlns:mp=";
xmlns:uap=";
xmlns:uap3=";
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).