Skip to content
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 a first MAUI app #25641

Open
BobHD opened this issue Nov 1, 2024 · 2 comments
Open

Unable to run a first MAUI app #25641

BobHD opened this issue Nov 1, 2024 · 2 comments

Comments

@BobHD
Copy link

BobHD commented Nov 1, 2024

Problem encountered on https://dotnet.microsoft.com/en-us/learn/maui/first-app-tutorial/run
Operating System: windows

Hi,

I have installed VS 2022 17.11.1 and the .NET five Desktop & Mobile components using Window 10 Pro version 1909.

I created a new .NET MAUI project, but when I click on the "Windows Machine" button, I get the following error:

The program '[31932] MyFirstApp.exe' has exited with code 2147942405 (0x80070005)

I enabled the developer mode as asked to.

Any idea how I can solve this?

Thanks.

Copy link

We've found some similar issues:

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

@BobHD
Copy link
Author

BobHD commented Nov 1, 2024

Looking into similar issues, I added:

<WindowsAppSdkDeploymentManagerInitialize>false</WindowsAppSdkDeploymentManagerInitialize>

in my "MyFirstApp/MyFirstApp.csproj" file.

VS 2022 made an install when loading the project, but now the "Windows Machine" button is no longer displayed, instead I have an "Attach" one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants