cppcheck-vs-addin: CPPCheckPluginPackage did not load correctly: VS2013
The following error occurs while trying to load the plugin following installation:
In the activity log is:
<entry>
<record>853</record>
<time>2015/07/01 05:36:11.686</time>
<type>Error</type>
<source>VisualStudio</source>
<description>End package load [CPPCheckPluginPackage]</description>
<guid>{127D8BD3-8CD7-491A-9A63-9B4E89118DA9}</guid>
<hr>80004005 - E_FAIL</hr>
<errorinfo>Could not load file or assembly 'Microsoft.VisualStudio.Shell.11.0, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.</errorinfo>
</entry>
Where I noted the use of *.Shell.11.0
Going into the extension folder and changing the following entry in “extension.vsixmanifest”
<Dependency Id="Microsoft.VisualStudio.MPF.11.0" DisplayName="Visual Studio MPF 11.0" Version="11.0" />
manually to replace 11.0 with 12.0 causes the plugin to work fine.
After downloading and poking around the project, and around the internet, I’ve discovered what I believe to be related to the issue: Using CTRL+SHIFT+F, and searching for “11.0” yields
Find all "11.0", Subfolders, Find Results 1, "Entire Solution ( Including External Items )", "*.cs;*.resx;*.resw;*.xsd;*.wsdl;*.xaml;*.xml;*.htm;*.html;*.css"
~\cppcheck-vs-addin-master\CPPCheckPlugin\CPPCheckPluginPackage.cs(17): [DefaultRegistryRoot(@"Software\Microsoft\VisualStudio\11.0")]
~\cppcheck-vs-addin-master\CPPCheckPlugin\Properties\Settings.Designer.cs(16): [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
Matching lines: 2 Matching files: 2 Total files searched: 29
Replacing those instances of 11.0 with 12.0, building, and installing the build also resolves the issue for me.
I don’t know nearly enough about C# or the VS SDK, but I also found: github.com and stackoverflow.com which may be relevant to fixing the issue in a robust fashion.
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 74 (25 by maintainers)
Commits related to this issue
- Merge pull request #143 from nicolastagliani/master Fix to #142: Plugin did not load correctly in VS2013 — committed to VioletGiraffe/cppcheck-vs-addin by VioletGiraffe 9 years ago
On Visual Studio 2012/Windows 7 64bit it is also not working (realease 1.3.3):
@VioletGiraffe Here is my release build. It worked on my win7 64-bit with only VS2013 installed. CppcheckPlugin.zip