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

Can't install the VSIX anymore #109

Closed
VioletGiraffe opened this issue Jan 30, 2015 · 9 comments
Closed

Can't install the VSIX anymore #109

VioletGiraffe opened this issue Jan 30, 2015 · 9 comments
Assignees
Labels

Comments

@VioletGiraffe
Copy link
Owner

When I run the VSIX on my main working computer, I get an error:

Install Error : Microsoft.VisualStudio.ExtensionManager.MissingTargetFrameworkException: The extension 'cppcheck add-in' requires a version of the .NET Framework that is not installed.

This is a VSIX built with VS 2013. At the same time, if I open the solution in VS 2013 and launch debug, debugging works fine.

Thoughts?

@VioletGiraffe
Copy link
Owner Author

Same thing with VSIX built in VS 2012.

@Dmitry-Me
Copy link
Collaborator

Where do I get the VSIX?

@VioletGiraffe
Copy link
Owner Author

{SolutionDir}/CPPCheckPlugin/bin/Debug/CppcheckPlugin.vsix

Isn't VSIX the only way to install the plugin into VS, short of running debug which creates a sandbox instance? I mean, how do you even use the plugin without running its VSIX?

@Dmitry-Me
Copy link
Collaborator

I cannot reproduce the problem. Do you have an idea of when it appeared for the first time? Maybe there's a specific commit such that it doesn't occur before that commit?

@VioletGiraffe
Copy link
Owner Author

It happened between the last time I committed and today, and the problem is not with the source code - I've reverted back to where it certainly worked, and still got the same error. It's something in my environment. I just thought you might know what could cause it.

@Dmitry-Me
Copy link
Collaborator

Not a slightest idea.

@halex2005
Copy link

Today I decide to install VSIX v1.2.1 and I have similar problem.
I tryed to install v1.2.1, v1.2.0, v1.1.0 but every time error was same - The extension 'cppcheck add-in' requires a version of the .NET Framework that is not installed.

I think it is not source code bug, but Visual Studio. I installed Visual Studio CTP5 two weeks ago and found some problems with my OS since then like hangs on creating System Restore Point.

@VioletGiraffe
Copy link
Owner Author

It's definitely not a source code bug or VSIX file bug. It's a bug in our local environment.
I also have VS 2015 CTP. It's been installed for some time and worked fine, and then, at some point, I started having this trouble.

@mkurdej
Copy link
Contributor

mkurdej commented Jun 26, 2015

Actually the problem comes from the fact that VS 2015 CTP / RC comes with .NET 4.6 RC and so .NET 4.5 is no more seen by VSIX.
The solution is to:

  1. handle both 4.5 and 4.6 [as it will be soon necessary anyway if targeting VS 2015/Win10], or
  2. uninstall .NET 4.6 if possible (or uninstall Windows Update KB3033094/KB3033095).

mkurdej added a commit to mkurdej/cppcheck-vs-addin that referenced this issue Jun 26, 2015
VioletGiraffe added a commit that referenced this issue Jun 26, 2015
Fix issue #109: allow .NET versions > 4.5.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants