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

[Bug] visual studio 2022 17.1 preview 1 MAUI project not building #3330

Closed
emceelovin opened this issue Nov 10, 2021 · 4 comments
Closed

[Bug] visual studio 2022 17.1 preview 1 MAUI project not building #3330

emceelovin opened this issue Nov 10, 2021 · 4 comments
Labels
area/tooling ⚙️ XAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, Debugging t/bug Something isn't working
Projects

Comments

@emceelovin
Copy link

emceelovin commented Nov 10, 2021

Description

Upgraded from Visual Studio 2022 17.0 latest preview to Visual Studio 17.1 Preview-1, and now I am unable to build a new MAUI project, or load my old MAUI project. Images are attached. I have edited my PATH, renamed my C:\Program Files (X86)\dotnet, to underscore dotnet underscore, and it's underneath my C:\Program Files\dotnet in my PATH priorities list. I have uninstalled everything installed with the Windows APP SDK via the shell script supplied. I have completely reinstalled Visual Studio 2022 17.1 Preview-1, repaired Visual Studio, uninstalled and reinstalled the dotnet sdk's, and everything else under the sun. I still have the errors in the supplied images.

Steps to Reproduce

  1. Go from Visual Studio 2022 17.0 latest preview to Visual Studio 2022 17.1 Preview-1, and you wont be able to build a new MAUI project

Expected Behavior

Build a MAUI project sucessfully

Actual Behavior

Basic Information

  • Version with issue: Preview 10

  • Last known good version: Preview 9

  • IDE: Visual Studio 17.1 Preview-1

  • Platform Target Frameworks:

    • iOS:
    • Android:
    • UWP:
  • Android Support Library Version:

  • Nuget Packages:

  • Affected Devices:

Screenshots

maui_solution_explorer'

maul_build

maui_check

Reproduction Link

Workaround

@emceelovin emceelovin added the t/bug Something isn't working label Nov 10, 2021
@emceelovin
Copy link
Author

UPDATE Redth/dotnet-maui-check#105 helped me fix the issue. apparently, you have to delete c:\program files\dotnet\metadata\workloads and reinstall maui. then maui-check will pass. once you reload your project, it'll settle and all of the errors will go away

@jsuarezruiz jsuarezruiz added this to New in Triage via automation Nov 10, 2021
@jsuarezruiz jsuarezruiz added the area/tooling ⚙️ XAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, Debugging label Nov 10, 2021
@jsuarezruiz
Copy link
Contributor

Thanks for the feedback. I am going to close the issue but if find any other detail, feel free to open a new issue.

@emceelovin
Copy link
Author

my pleasure. just trying to help wherever I can with this. will do.

@Only-Xam
Copy link

Noticed same issue and after trying couple of things including re-install of Visual Studio, I noticed root cause was below two paths in environmental variables.

C:\Program Files (x86)\dotnet\dotnet.exe
C:\Program Files\dotnet\dotnet.exe

I removed path - C:\Program Files (x86)\dotnet\dotnet.exe from System Environmental variables, created new project and that was fine.

@hartez hartez moved this from New to Done in Triage Dec 27, 2021
@dotnet dotnet locked as resolved and limited conversation to collaborators Feb 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/tooling ⚙️ XAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, Debugging t/bug Something isn't working
Projects
No open projects
Development

No branches or pull requests

3 participants