Skip to content

Commit 703fe12

Browse files
committed
Merge pull request #1040 from shahaya/SearchLatestGacUtil
Replace hard reference on gacutil path with automatic search for late…
2 parents a1cdc1d + 1e88b78 commit 703fe12

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/app/FakeLib/GACHelper.fs

+5-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ module Fake.GACHelper
33

44
open System
55

6+
/// Path to newest `gacutil.exe`
7+
let gacutilToolPath = !! (sdkBasePath + "/**/gacutil.exe")
8+
|> getNewestTool
9+
610
/// GAC parameters
711
type GACParams =
812
{ /// (Required) Path to the gacutil
@@ -13,8 +17,7 @@ type GACParams =
1317
WorkingDir : string }
1418

1519
let mutable GACUtil =
16-
if isMono then "gacutil" else
17-
ProgramFilesX86 @@ "Microsoft SDKs/Windows/v8.0A/bin/NETFX 4.0 Tools/gacutil.exe"
20+
if isMono then "gacutil" else gacutilToolPath
1821

1922
/// GACutil default parameters
2023
let GACDefaults =

0 commit comments

Comments
 (0)