public static void CleanVsExperimentalInstance()
{
_mainWindow?.Dispose();
_application?.Dispose();
_testExplorer = null;
_mainWindow = null;
_application = null;
if (!_keepDirtyVsInstance)
{
// wait for removal of locks on some files we want to delete
// TODO: find more reliable method than using Sleep()
Thread.Sleep(TimeSpan.FromSeconds(1));
_visualStudioInstance.Clean();
}
_visualStudioInstance = null;
}