Xavalon / XamlStyler

Visual Studio extension to help format your XAML source code
Apache License 2.0
1.17k stars 128 forks source link

E_NOINTERFACE Dialog from XAML Styler when saving csproj file #492

Open michael-hawker opened 2 months ago

michael-hawker commented 2 months ago

Describe the bug When manually editing a csproj file and making changes, upon saving, XAML Styler is trying to do something which causes an exception:


Microsoft Visual Studio

Error in StylerPackage:

No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE))

If this deems a malfunctioning of styler, please kindly submit an issue at https://github.com/Xavalon/XamlStyler.

OK

To Reproduce Steps to reproduce the behavior:

  1. Click on a project file to load the csproj file in the XML VS Editor
  2. Make a change to the file and save the csproj file
  3. See XAML Styler error dialog

Expected behavior I would not expect XAML Styler to be running here and causing a problem.

Screenshots If applicable, add screenshots to help explain your problem.

Version Info (please complete the following information):

Additional context Updated to 3.2404.2 and restarted VS, don't see it at the moment, but feel like I've had that happened in the past, so wondering if there's some transient other step that has to happen first.