-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to run Windows application from command line #5975
Comments
Verified the issue on 17.2.0 Preview 2.1 [32317.152.main], it's repro. |
Could be related with #5923? cc @mattleibow |
Not sure... I don't know if there is a way to run WinUI apps from the CLI, either with msbuild or dotnet. |
Opened this discussion to be able to find out the way to do things: microsoft/WindowsAppSDK#2391 |
Might even be related to this discussion: microsoft/WindowsAppSDK#55 Not sure if there is a way to launch MSIX apps via the CLI, but could be via unpackaged... |
Same here. Been doing everything on a Mac so far, where |
Now that the .NET MAUI general availability release has happened, is there any timeline on resolving this issue? Some Microsoft material released last year indicated that it was perfectly feasible to develop .NET MAUI apps using only VS Code. (Which means you must be able to do it using only vi too... which is my goal... crazy though that may seem!) To me, this means that there may be a work-around for this issue that the Microsoft insiders have access to. Perhaps it could be posted here as a viable alternative. That is, until the non-VS experience on Windows works out-of-the-box. |
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process. |
I also see that doing a However, I was able to get something to run with unpackaged:
But we still also need to get
|
Moving the issue here as well: microsoft/WindowsAppSDK#2922 |
Sure! There's a few Activation via AUMID:
Activation via Executable: On Win11 if you run a packaged app's exe from its package directory Windows figures out it's a packaged app and runs it e.g. NOTE: This requires the executable be declared for only 1 app in the package e.g. you can declare multiple Alternatively on 20H1+, if the executable has a Fusion manifest declaring NOTE: Running an executable by typing it into a command line invokes CreateProcess (or ShellExecute, depending on the command prompt). These are options you can use to interactively launch MSIX packaged apps. Programmatically there's additional options. |
I think the issue I raised here on SO is similar. |
Verified this issue with Visual Studio 17.6.0 Preview 2.0. Repro on Windows application from command line. |
Still an issue in 2024 btw |
This is still blocked on microsoft/microsoft-ui-xaml#7331 and other related issues. Thank you for your patience! |
Still an issue today. |
How do you actually build/run a maui app on windows then? I only use VSCode. |
i use the following for running the windows application. |
Works for me too, thanks @sdheer ! |
Description
I am unable to launch my Maui Windows application from the command line. With Android I can with
dotnet build -t:Run
. But this doesn't work with Windows. Note thatdotnet run -f net6.0-windows10.0.19041.0
also doesn't work.cc @mattleibow
Steps to Reproduce
dotnet new maui
dotnet build -t:Run -f net6.0-windows10.0.19041.0
Results
Version with bug
Unknown/Other (please specify)
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
All Windows
Did you find any workaround?
No response
Relevant log output
Depends on
The text was updated successfully, but these errors were encountered: