None of the code below is working for me to explicitly close a solution while load,
I am trying to do it in IVsSolutionLoadManager implementation.
Also syntax to close entire solution is incorrect. I tried using below and that did not work.
solution.CloseSolutionElement(0, null, 0);I am currently trying both of below and none worked.
string directory, fileName, options; solution.GetSolutionInfo(out directory, out fileName, out options); solution.CloseSolutionElement((uint)__VSSLNCLOSEOPTIONS.SLNCLOSEOPT_SLNSAVEOPT_MASK | (uint)__VSSLNSAVEOPTIONS.SLNSAVEOPT_NoSave, null, 0); ------------------------------------------------------------------ var dte = GetGlobalService(typeof(DTE)) asDTE; if (dte == null) { thrownewNullReferenceException("could not get DTE"); } dte.Solution.Close();
↧
CloseSolutionElement syntax incorrect on MSDN
↧