2

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).

1
  • I've also had this question. I have two different versions of my application, one is full trust and one is not, and I've never been able to get the F5 deployment of that scenario figured out :( Commented Mar 18 at 19:09

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.