AvaloniaUI / AvaloniaVS

Visual Studio Extension for Avalonia
MIT License
421 stars 81 forks source link

Visual Studio Professional 2022 crashing on .axaml files #389

Closed soerenlemke closed 11 months ago

soerenlemke commented 11 months ago

Describe the bug Visual Studio Professional 2022 coming up with an error when double clicking on an .axaml file. I can run the App without errors, but i can´t view the axaml code. I have the Avalonia extension installed like it is described in the installation guide: https://docs.avaloniaui.net/docs/next/get-started/install

Here is the message that shows (HRESULT: 0x8000FFFF E_UNEXPECTED):

image

To Reproduce

  1. Open Visual Studio Professional 2022
  2. Double click any .axaml file
  3. Error message coming up (i get the errors even with the example projects: https://github.com/AvaloniaUI/Avalonia.Samples)

Expected behavior VS opening the file like it does in Visual Studio Community 2022.

Desktop (please complete the following information):

Takoooooo commented 11 months ago

May you please try this VSIX and check if it fixes the issue for you. I don't have the VS Pro by the hand and can't verify whether it fixes the issue or not. In case when it doesen't fix your issue i would be keen if you would clone that repo and run it on VS Pro Experimental instance because i might need more information AvaloniaVS.VS2022 (10).zip

soerenlemke commented 11 months ago

Thank you for the reply! I deinstalled my Visual Studio Current Version and installed a "normal" Visual Studio Professional 2022 version. With the newest updates everything works fine :) I don't know how to reproduce the errors because I had that Current version of Visual Studio installed and don't have it anymore...