Is it possible to launch an app from the CLI? #2391
Replies: 2 comments 2 replies
-
Is your app packaged or unpackaged? If packaged then you need to know your application's Application User Model ID (AUMID). That's a derived value of There's oodles of APIs and recipes to discover AUMIDs for installed apps as well as compute it arbitrary values (w/o anything installed e.g. FormatApplicationUserModelId(). If unpackaged then nothing's changed. You still launch however you launch without WinAppSDK or MSIX e.g. if your app's an exe then run the exe. |
Beta Was this translation helpful? Give feedback.
-
For packaged apps, there's also the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have been spoilt with
dotnet run
all these years, so I was wondering is there a set of CLI args that can be used to launch a Windows App from the CLI?This can be with either msbuild or dotnet. I know of a few ways that don't seem to work:
msbuild /t:Run
dotnet run
dotnet build -t:Run
Not sure if maybe there is a special task for that?
Also, how does this work with packaged vs unpackaged apps?
From @eerhardt
I can get an unpackaged app to launch from the command line:
but you need to build first, and then run
Beta Was this translation helpful? Give feedback.
All reactions