title: Building a .sln in C# executable
body: <p>I'm trying to build a .sln in C#. I have the following code.</p>
  
  <pre><code>try
  {
    Console.WriteLine("Building Solution...\n");
    string projectFileName = Directory.GetCurrentDirectory() + "\\build\\Solution.sln";
    ProjectCollection pc = new ProjectCollection();
    Dictionary&lt;string, string&gt; GlobalProperty = new Dictionary&lt;string, string&gt;();
    GlobalProperty.Add("Configuration", "Release");
    GlobalProperty.Add("Platform", "x86");
  
    BuildRequestData BuidlRequest = new BuildRequestData(projectFileName, GlobalProperty, null, new string[] { "Build" }, null);
  
    BuildResult buildResult = BuildManager.DefaultBuildManager.Build(new BuildParameters(pc), BuidlRequest);
  
  catch (Exception e)
  {
    Console.Write("Error:" + e.Message);
    Console.ReadLine();
  }
  Console.WriteLine("Completed Solution build...\nPress any key to continue...");
  </code></pre>
  
  <p>It doesn't thow a error, it does show <code>Completed Solution build...</code> but I can't find the executable in <code>\bin\Release</code>. Am I forgetting something or how can I check it?</p>