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

Error when trying to use toolkit.Themes.UseVsTheme #433

Open
SiriusED opened this issue May 20, 2023 · 2 comments
Open

Error when trying to use toolkit.Themes.UseVsTheme #433

SiriusED opened this issue May 20, 2023 · 2 comments

Comments

@SiriusED
Copy link

SiriusED commented May 20, 2023

Hi. I'm trying to use VS theme for my custom tool window and getting an error.
The code I tried to use is from this example:
https://github.com/VsixCommunity/Community.VisualStudio.Toolkit/blob/master/demo/VSSDK.TestExtension/ToolWindows/RunnerWindowControl.xaml

And this is the error I get after.

Could not load file or assembly 'Microsoft.VisualStudio.Imaging, Version=17.0.0.0, Culture=neutral,
 PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

After that when I try to add this assembly it says it is already referenced to this assembly in my project.
After that I tried to add it trough the NuGet, it added.
Then it asked for one more assembly not found: Microsoft.VisualStudio.Shell.15.0
Then I added this one trough NuGet also.
After that I got no errors, and built my project successfully. But when I tried to run the project, my experimental visual studio just crashed and after that I can't build my project anymore because it VS says Extension '0000-0000...' could not be found. Please make sure the extension has been installed.

Is there anything I miss or what?

@KBM-Kevin-Kessler
Copy link

I got the exact same problem.
Version: 17.0.503

@dorianmk
Copy link

dorianmk commented Jul 7, 2023

The same problem has gone for me after I updated Visual Studio to 17.6.4

This should work without any modifications:
https://github.com/VsixCommunity/Community.VisualStudio.Toolkit/tree/master/demo/VSSDK.TestExtension

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants