Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to (completely) uninstall Code Contracts Tool extension?

I'm trying to get rid of Code Contracts Tools extension on my system. I've uninstalled it from "programs and functionalities" yet it still appears as an installed extension inside Visual Studio.

Any help would be appreciated.

like image 216
Crono Avatar asked Nov 19 '14 19:11

Crono


People also ask

How do I uninstall all or code extensions?

To uninstall an extension, select the Manage gear button at the right of an extension entry and then choose Uninstall from the dropdown menu. This will uninstall the extension and prompt you to reload VS Code.

How do I completely remove Visual Studio code from MAC?

Just drag VS Code from the Applications folder into App Cleaner, then it will find all the related files for you, and then you just have to click on the Remove button.


1 Answers

The uninstaller does not remove all files that are no longer needed. In particular, the actual VSIX files are never deleted:

  • codecontracts_project.png
  • codecontracts_SM.png
  • extension.vsixmanifest
  • license.rtf

These files seem to be a source of trouble when upgrading the tools to a newer version.

To completely uninstall the tools:

  1. Close all instances of Visual Studio to prevent file locks
  2. Remove the tools using the uninstaller listed under "Programs and Features"
  3. Delete the extension folder: <Visual Studio installation folder>\Common7\IDE\Extensions\Microsoft\CodeContracts
like image 84
Steven Liekens Avatar answered Oct 13 '22 07:10

Steven Liekens