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

Run .NET Multi-platform App UI development problem run under Windows 10 #22482

Open
vukmileusnic opened this issue May 17, 2024 · 3 comments
Open
Labels
area-setup Installation, setup, requirements, maui-check, workloads, platform support platform/windows 🪟 s/needs-attention Issue has more information and needs another look

Comments

@vukmileusnic
Copy link

For testing .NET Multi-platform App UI development projects I use VMware Workstation Pro and Oracle VM VirtualBox to run Visual Studio 2022.
On Windows 11 I can projects, but on Windows 10 project star and close quickly. I don't see a errors? The same problem exists with new .NET MAUI projects.

Anyone had a similar problem?

Please see video: https://github.com/dotnet/maui/assets/170092520/0240c94b-f3e2-4570-a83f-998f8317c019

Copy link
Contributor

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@PureWeen PureWeen added area-setup Installation, setup, requirements, maui-check, workloads, platform support platform/windows 🪟 s/needs-info Issue needs more info from the author labels May 17, 2024
@moljac
Copy link
Contributor

moljac commented May 20, 2024

Hi

@vukmileusnic Thanks for the feedback.

There is visible warning:

MSB3277: Found conflicts between different versions of 'assembly' that could not be resolved

This would indicate that installation is messed up.

Try creating MSBuild structured log with diagnostic output please

dotnet build <SLN|CSPROJ> -bl -v:diagnostic

(BTW logs and text is tons better than video. I had to retype errors and warnings)

Details in the link:

https://learn.microsoft.com/en-us/visualstudio/msbuild/errors/msb3277?view=vs-2022

And last error:

has exited with code 2147942405 (0x80070005)

Indicates issue with WinApp SDK

Possible workarounds:

  1. start app once as Admin
  2. manually install the Microsoft.WindowsAppRuntime.1.2 redist

Details:

and yes - please report if something worked.

@vukmileusnic
Copy link
Author

@moljac Thank you for your reply.

I tried to solve the problem:

  1. Start project as admin
  2. Manually install the Microsoft.WindowsAppRuntime.1.2 redist
  3. Reinstall .NET 8

In the end, the only solution was:

  1. Create new Windows 10 64-bit in VMware Workstation Pro

  2. Download ISO file Windows 10 from here https://www.microsoft.com/sr-latn-rs/software-download/windows10

  3. Install Windows 10 64-bit Pro N

  4. Download Visual Studio 2022 (Install .NET Multi-platform App UI and Node.js development)

4.1) Restart virtual PC

  1. Install .NET 8 Hosting Bundle: https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-aspnetcore-8.0.5-windows-hosting-bundle-installer

5.1) Restart virtual PC

  1. Project .NET Multi-platform App UI started under Windows 10 64-bit in VMware Workstation Pro

@dotnet-policy-service dotnet-policy-service bot added s/needs-attention Issue has more information and needs another look and removed s/needs-info Issue needs more info from the author labels May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-setup Installation, setup, requirements, maui-check, workloads, platform support platform/windows 🪟 s/needs-attention Issue has more information and needs another look
Projects
None yet
Development

No branches or pull requests

3 participants