Created
March 3, 2015 19:04
-
-
Save phil-scott-78/0465d51685f122c3a7ad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using EnvDTE; | |
using EnvDTE80; | |
public class C : VisualCommanderExt.ICommand | |
{ | |
public void Run(EnvDTE80.DTE2 DTE, Microsoft.VisualStudio.Shell.Package package) | |
{ | |
try | |
{ | |
DTE.ExecuteCommand("ReSharper_Suspend"); | |
} | |
catch(System.Exception) | |
{} | |
try | |
{ | |
System.IO.Directory.Delete(System.IO.Path.Combine(System.Environment.GetFolderPath(System.Environment.SpecialFolder.LocalApplicationData), "JetBrains\\Transient\\ReSharperPlatformVs12\\v01\\SolutionCaches"), true); | |
} | |
catch(System.Exception) | |
{} | |
DTE.ExecuteCommand("ReSharper_Resume"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment