1
1
namespace Scripts
2
2
3
3
open System
4
- open System.IO
5
- open System.Net
6
4
open ProcNet
7
5
open Fake.IO .Globbing .Operators
8
6
open ProcNet.Std
@@ -47,38 +45,8 @@ module Tooling =
47
45
member this.ExecIn workingDirectory arguments = this.ExecInWithTimeout workingDirectory arguments timeout
48
46
member this.Exec arguments = this.ExecWithTimeout arguments timeout
49
47
50
- let nugetFile =
51
- let targetLocation = " build/tools/nuget/nuget.exe"
52
- if ( not ( File.Exists targetLocation))
53
- then
54
- printfn " Nuget not found at %s . Downloading now" targetLocation
55
- let url = " http://dist.nuget.org/win-x86-commandline/latest/nuget.exe"
56
- Directory.CreateDirectory( " build/tools/nuget" ) |> ignore
57
- use webClient = new WebClient()
58
- webClient.DownloadFile( url, targetLocation)
59
- printfn " nuget downloaded"
60
- targetLocation
61
-
62
- let Nuget = BuildTooling( None, nugetFile)
48
+ let Nuget = BuildTooling( None, " build/scripts/bin/Release/netcoreapp2.2/nuget.exe" )
63
49
let ILRepack = BuildTooling( None, " build/scripts/bin/Release/netcoreapp2.2/ILRepack.exe" )
64
50
let DotNet = BuildTooling( Some <| TimeSpan.FromMinutes( 5. ), " dotnet" )
65
51
66
- type DotTraceTool = {
67
- Name: string ;
68
- Download: string ;
69
- TargetDir: string ;
70
- }
71
-
72
- type DiffTooling ( exe ) =
73
- let installPath = @" C:\Program Files (x86)\Progress\JustAssembly\Libraries"
74
- let downloadPage = " https://www.telerik.com/download-trial-file/v2/justassembly"
75
- let toolPath = Path.Combine( installPath, exe)
76
-
77
- member this.Exec arguments =
78
- if ( Directory.Exists installPath |> not ) then
79
- failwith ( sprintf " JustAssembly is not installed in the default location %s . Download and install from %s " installPath downloadPage)
80
-
81
- execInWithTimeout defaultTimeout ( Some " ." ) toolPath arguments
82
-
83
- let JustAssembly = DiffTooling( " JustAssembly.CommandLineTool.exe" )
84
52
0 commit comments