You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: build.fsx
+11-10Lines changed: 11 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,6 @@ let perfOutput = FullName "PerfResults"
53
53
54
54
letnugetDir= binDir @@"nuget"
55
55
letworkingDir= binDir @@"build"
56
-
letlibDir= workingDir @@@"lib\net45\"
57
56
letnugetExe= FullName @"src\.nuget\NuGet.exe"
58
57
letdocDir="bin"@@"doc"
59
58
@@ -163,17 +162,18 @@ let createNugetPackages _ =
163
162
not(directoryExists dir)
164
163
runWithRetries del 3|> ignore
165
164
166
-
letcleanupDir dir =
167
-
letcdr _ =
168
-
CleanDir dir
169
-
runWithRetries cdr 3|> ignore
165
+
let mutabledirId=1
170
166
171
167
ensureDirectory nugetDir
172
168
for nuspec in!!"src/**/*.nuspec"do
173
169
printfn "Creating nuget packages for %s" nuspec
174
170
175
-
cleanupDir workingDir
176
-
171
+
lettempBuildDir= workingDir + dirId.ToString()
172
+
ensureDirectory tempBuildDir
173
+
//clean it in case this target gets run multiple times. Which if it does is a bug. But hey since TC throws an exception when the dir is actually not empty. Its a nice circuitbreaker
0 commit comments