Пример #1
0
        public int OnAfterOpenSolution(object pUnkReserved, int fNewSolution)
        {
            Microsoft.VisualStudio.Shell.ThreadHelper.ThrowIfNotOnUIThread();

            Debug.WriteLine("Start with solution");

            try
            {
                // Release all GUI
                //->> ToDo !

                // Reload data
                string solutionDir = System.IO.Path.GetDirectoryName(dte.Solution.FullName);

                // Configure settings
                CoverageEnvironment.configureSolution(dte, solutionDir);
            }
            catch (Exception exp)
            {
                Debug.WriteLine("Error on loading solution: " + exp.ToString());
            }
            return(VSConstants.S_OK);
        }
Пример #2
0
 public int OnAfterCloseSolution(object pUnkReserved)
 {
     CoverageEnvironment.configureSolution(dte, string.Empty);
     return(VSConstants.S_OK);
 }