Skip to content

Commit

Permalink
detect framework path
Browse files Browse the repository at this point in the history
  • Loading branch information
nosami committed May 22, 2013
1 parent ce3f391 commit 88f559a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions OmniSharp/Build/BuildHandler.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics;
using System.IO;
using OmniSharp.Common;
using OmniSharp.Solution;

Expand Down Expand Up @@ -34,7 +35,7 @@ public BuildResponse Build()
{
var build = IsUnix
? "xbuild"
: @"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Msbuild.exe";
: Path.Combine(System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory(), "Msbuild.exe");

var startInfo = new ProcessStartInfo
{
Expand Down

0 comments on commit 88f559a

Please sign in to comment.