VSSolutionColor icon indicating copy to clipboard operation
VSSolutionColor copied to clipboard

VS2022 support?

Open anupshah opened this issue 3 years ago • 14 comments

Hi, thanks for this useful extension.

Any plans to update to support VS2022?

anupshah avatar Oct 13 '21 11:10 anupshah

No, not using this or VS in general much anymore myself. But if someone wants to take it over we can make this happen

Wumpf avatar Oct 13 '21 17:10 Wumpf

please make it happen , we need this . @Wumpf what are you using instead of VS ?

ovidiubuligan avatar Nov 11 '21 08:11 ovidiubuligan

Hey, I made the extension work with VS2022. It was a quick hack so it only works with 64bit VS2022. I did not test it much, but it seems to work fine. It also contains a couple of changes. If automatic color is used it searches for color names to use in solution path. If if doesn't find any color it uses a hash of the path so that the color stays the same even when solution is recreated. Hope this is OK @Wumpf SolutionColor_fromPath_vs2022.zip

Roozi489 avatar Nov 11 '21 16:11 Roozi489

Thanks! Can you create a pr?

Wumpf avatar Nov 11 '21 16:11 Wumpf

It was a quick hack so it only works with 64bit VS2022.

ah well nvm actually, wouldn't want to land that obviously ;)

Wumpf avatar Nov 11 '21 20:11 Wumpf

I can clean it up and create a PR if you want. It was just a very minor change.

Roozi489 avatar Nov 12 '21 11:11 Roozi489

@Roozi489 Please make a PR :) thx for your work.

Caedendi avatar Nov 17 '21 11:11 Caedendi

Yes, +1

ovidiubuligan avatar Nov 24 '21 14:11 ovidiubuligan

@Roozi489 any chance you could make a PR?

Caedendi avatar Dec 02 '21 12:12 Caedendi

Sorry, yeah, I'm still planning to. I just didn't know how much work is it to make the extension work with both VS2019 and VS2022. The code change itself is trivial, but you need to have at least 2 separate projects. MS recommends moving the code into Shared project and creating one project for VS2019 (and older) and one for VS2022.

Roozi489 avatar Dec 02 '21 13:12 Roozi489

Yes, +1

twilly86 avatar Dec 21 '21 21:12 twilly86

Hello, I added the support for VS 2022 available on this fork here. You just have to download the solution, build in Release and you will find the .vsix extension in the bin/ folder. Separate the project into a shared project as MS recommends.

I don't do PR yet since I can't get the extension to work under VS 2019. The extension installs but I don't see the commands accessible from the VS menus. There is still some work to do but the fork allows to use the plugin under VS 2022.

RODevVro avatar Mar 11 '22 12:03 RODevVro

Just for those looking for an official VS2022 supported plugin that does the same:

https://devblogs.microsoft.com/visualstudio/differentiating-visual-studio-instances/

dviry avatar Aug 23 '22 09:08 dviry

Thanks @dviry - I had seen that myself and started using that.

I appreciate that extension development has become a bit more complex if you need to support both VS 2022 and VS 2019.

For me, I am happy to use that other extension for now, so if you want to close this issue that is fine with me, though others may still prefer this extension and want to keep this open?

anupshah avatar Sep 01 '22 15:09 anupshah