title: Run a solution from Visual Studio console without opening the IDE
body: <p>I am using <a href="http://en.wikipedia.org/wiki/Microsoft_Visual_Studio#Visual_Studio_2010" rel="noreferrer">Visual Studio 2010</a> SP1.</p>
  
  <p>What I first tried was this:</p>
  
  <ol>
  <li>Open the Visual Studio console tool from start menu</li>
  <li>Navigate to project folder (which already contains an executable)</li>
  <li>Run: <code>msbuild myproject.sln or msbuild myproject.sln /p:Configuration=Release</code></li>
  <li>This builds successfully, but I can't find an executable to run</li>
  </ol>
  
  <p>&nbsp;</p>
  
  <ol>
  <li>The second thing I tried was steps 1 and 2 from above</li>
  <li>Running: <code>devenv myproject.sln /Build and devenv myproject.sln /Run</code></li>
  <li>This somewhat works but it seems to open the IDE to run the build</li>
  <li>The whole point was to avoid using the ide at all.</li>
  </ol>
  
  <p>Now, how do I build and run a solution without opening the IDE?</p>
  
  <p><strong>--------------------------FIXED------------------------------</strong></p>
  
  <p>The problem was that I was looking in the wrong place for the executable (noob mistake). I ended up using this batch file:</p>
  
  <pre><code>msbuild myproj.sln /p:configuration=Release
  cd (("Path to executable" usually in the Debug/Release Folder))
  myExecutableName
  cd (("Path to original folder"))
  </code></pre>