Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

CloseSolutionElement syntax incorrect on MSDN

$
0
0

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();

    

Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>