dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.04k stars 1.73k forks source link

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

Closed vukmileusnic closed 1 month ago

vukmileusnic commented 4 months ago

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

github-actions[bot] commented 4 months ago

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.

moljac commented 4 months ago

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 commented 4 months ago

@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

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

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

dotnet-policy-service[bot] commented 2 months ago

Hi @vukmileusnic. We have added the "s/try-latest-version" label to this issue, which indicates that we'd like you to try and reproduce this issue on the latest available public version. This can happen because we think that this issue was fixed in a version that has just been released, or the information provided by you indicates that you might be working with an older version.

You can install the latest version by installing the latest Visual Studio (Preview) with the .NET MAUI workload installed. If the issue still persists, please let us know with any additional details and ideally a reproduction project provided through a GitHub repository.

This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.