public void BuildConsoleProject ()
{
Solution sol = TestProjectsChecks.CreateConsoleSolution ("console-project-msbuild");
sol.Save (Util.GetMonitor ());
// Ensure the project is buildable
var result = sol.Build (Util.GetMonitor (), "Debug");
Assert.AreEqual (0, result.ErrorCount, "#1");
// Ensure the project is still buildable with xbuild after a rename
ProjectOptionsDialog.RenameItem (sol.GetAllProjects () [0], "Test");
result = sol.Build (Util.GetMonitor (), "Release");
Assert.AreEqual (0, result.ErrorCount, "#2");
}