Xavalon / XamlStyler

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

New releases blocked on release build extension deployment bug and VS debugging #479

Closed grochocki closed 5 months ago

grochocki commented 5 months ago

I am investigating a blocking issue with the release build of the extension for VS2022 that is preventing it from loading properly, even though it seems to have worked fine under debug. Unfortunately, I am not unable to deploy the extension under debug, blocking progress. This issue has been reported to the Visual Studio team: Unable to deploy VSIX to VS2022 under debugger.

mrlacey commented 5 months ago

What's the blocking issue?

I can build release versions locally and install and run without issue.


Your deployment issue sounds like something went wrong with a VS update. Have you tried a full VS reinstall? (I know it can be frustrating and time-consuming, but it may be quicker than waiting on MS.)

grochocki commented 5 months ago

What's the blocking issue?

I am able to repro #466. I have seen this before when updating certain NuGet packages, which was done with #455. But now without being able to debug to verify package compat, I am uneasy about pushing an update.

Your deployment issue sounds like something went wrong with a VS update. Have you tried a full VS reinstall?

That was going to be my next step, though I am running into the issue on two separate devices, which makes it seem less likely to be something wrong with my VS install. Both are on preview builds of Windows (WIP), so maybe related.

mrlacey commented 5 months ago

Do you have a copy of the exception log in English? And can you verify a possible version mismatch as I commented on the other issue?

mrlacey commented 5 months ago

Having just checked the source, there's an inconsistency between the minimum install target and the version of the SDK that the extension tries to use. This can cause package load failures -- ask me how I know ;)

grochocki commented 5 months ago

Do you have a copy of the exception log in English?

Unfortunately, not from my repro. Also, it wasn't the same version reported in that issue, but latest release builds out of our pipeline on the latest VS release at the time.

Having just checked the source, there's an inconsistency between the minimum install target and the version of the SDK that the extension tries to use.

Is there any documentation on this?

mrlacey commented 5 months ago

Having just checked the source, there's an inconsistency between the minimum install target and the version of the SDK that the extension tries to use.

Is there any documentation on this?

Not that I'm aware of. I only learned this when someone on the VS team helped debug why one of my extensions was throwing a similar exception.

I'm putting together a PR with a fix, and lots of comments.

grochocki commented 5 months ago

Clean install on a spare device unblocked my issue. Published VSIX updates for 2017, 2019, 2022, and Console. Release details here.