Re-load Unloaded Projects in EnvDTE <p>I have listed all the projects in my solution, using EnvDTE, but I found a bug in my code: I can't get the projects that are Unloaded.</p> <p>I found a way to skip the Unloaded projects:</p> <pre><code>if (string.Compare(EnvDTE.Constants.vsProjectKindUnmodeled, project.Kind, System.StringComparison.OrdinalIgnoreCase) == 0) continue; </code></pre> <p>This way, my code doesn't crash - but I am unable to load the missing projects through code, since they exist already.</p> <p>How can I Load the Unloaded projects into the solution ?</p> <p>I have tried: </p> <pre><code>project.DTE.ExecuteCommand("Project.ReloadProject"); </code></pre> <p>And got error:</p> <p>System.Runtime.InteropServices.COMException (...): Command "Project.ReloadProject" is not available.</p> <p>So I tried to somehow get </p> <pre><code>application.DTE.ExecuteCommand("Project.ReloadProject"); </code></pre> <p>But before that, from every place I searched on the NET, I must pre-select the project in the solution - and for that, I need <code>project.Name</code> (which I have), and the path, which I don't (every example I have found assumes that the solution path is the same as the project path, which is highly unlikely in a generic situation).</p>