Skip to content

Commit

Permalink
fix windows build for vs2017/msbuild15 install
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudRoutine committed Mar 22, 2017
1 parent 6bb556c commit 381216e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ misc/literate/output/content/
*.sln.DotSettings.user
*.userprefs
*.bak
.paket/paket.exe
release.cmd
*.orig
*.aux
Expand Down
Binary file added .paket/paket.exe
Binary file not shown.
23 changes: 19 additions & 4 deletions build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,29 @@ Target "UpdateFsxVersions" (fun _ ->
// --------------------------------------------------------------------------------------
// Build library

//Target "Build" (fun _ ->
// { BaseDirectory = __SOURCE_DIRECTORY__
// Includes = ["FSharp.Formatting.sln"]
// Excludes = [] }
// |> MSBuildRelease "" "Build"
// |> ignore
//)

let solutionFile = "FSharp.Formatting.sln"


let msbuild14 = ProgramFilesX86</>"MSBuild"</>"14.0"</>"Bin"</>"MSBuild.exe"

if isWindows && fileExists msbuild14 then
setEnvironVar "MSBUILD" msbuild14

Target "Build" (fun _ ->
{ BaseDirectory = __SOURCE_DIRECTORY__
Includes = ["FSharp.Formatting.sln"]
Excludes = [] }
|> MSBuildRelease "" "Build"
!! solutionFile
|> MSBuildRelease "" "Rebuild"
|> ignore
)


Target "MergeVSPowerTools" (fun _ ->
() (*
let binDir = __SOURCE_DIRECTORY__ @@ "bin"
Expand Down

0 comments on commit 381216e

Please sign in to comment.