Skip to content

Instantly share code, notes, and snippets.

@phil-scott-78
Created March 3, 2015 19:04
Show Gist options
  • Save phil-scott-78/0465d51685f122c3a7ad to your computer and use it in GitHub Desktop.
Save phil-scott-78/0465d51685f122c3a7ad to your computer and use it in GitHub Desktop.
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