@@ -174,6 +174,12 @@ let clean _ =
174174 |> Seq.iter Shell.rm
175175
176176
177+ module BuildParameters =
178+ let common ( defaults : MSBuild.CliArguments ) = {
179+ defaults with
180+ DisableInternalBinLog = true
181+ }
182+
177183let build ctx =
178184
179185 let args = [ maxCpuMsBuild.Value ]
@@ -182,6 +188,7 @@ let build ctx =
182188 c with
183189 NoRestore = true
184190 Configuration = ( configuration ctx.Context.AllExecutingTargets)
191+ MSBuildParams = BuildParameters.common c.MSBuildParams
185192 Common =
186193 c.Common
187194 |> DotNet.Options.withAdditionalArgs args
@@ -196,7 +203,12 @@ let restore _ =
196203 ToolType = ToolType.CreateLocalTool()
197204 })
198205
199- DotNet.restore id solutionFile
206+ let setParams ( c : DotNet.RestoreOptions ) = {
207+ c with
208+ MSBuildParams = BuildParameters.common c.MSBuildParams
209+ }
210+
211+ DotNet.restore setParams solutionFile
200212
201213let npmRestore _ = Npm.install id
202214
@@ -217,6 +229,7 @@ let dotnetTest ctx =
217229 Common =
218230 c.Common
219231 |> DotNet.Options.withAdditionalArgs args
232+ MSBuildParams = BuildParameters.common c.MSBuildParams
220233 })
221234 solutionFile
222235
@@ -333,14 +346,16 @@ let dotnetPack ctx =
333346 // ./bin from the solution root matching the "PublishNuget" target WorkingDir
334347 OutputPath = Some distDir
335348 Configuration = configuration ctx.Context.AllExecutingTargets
336- MSBuildParams = {
337- MSBuild.CliArguments.Create() with
338- // "/p" (property) arguments to MSBuild.exe
339- Properties = [
340- ( " Version" , release.NugetVersion)
341- ( " PackageReleaseNotes" , releaseNotes)
342- ]
343- }
349+ MSBuildParams =
350+ {
351+ MSBuild.CliArguments.Create() with
352+ // "/p" (property) arguments to MSBuild.exe
353+ Properties = [
354+ ( " Version" , release.NugetVersion)
355+ ( " PackageReleaseNotes" , releaseNotes)
356+ ]
357+ }
358+ |> BuildParameters.common
344359 })
345360 )
346361
0 commit comments