Skip to content

Commit

Permalink
Disable requiring msbuild.structuredlogger always being up to date (#279
Browse files Browse the repository at this point in the history
)
  • Loading branch information
TheAngryByrd committed Sep 18, 2023
1 parent bd78574 commit a886b79
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Content/Console/build/build.fs
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,9 @@ module FSharpAnalyzers =
// Target Implementations
//-----------------------------------------------------------------------------

/// So we don't require always being on the latest MSBuild.StructuredLogger
let disableBinLog (p: MSBuild.CliArguments) = { p with DisableInternalBinLog = true }

let clean _ =
[
"bin"
Expand Down Expand Up @@ -265,6 +268,7 @@ let dotnetRestore _ =
DotNet.restore
(fun c -> {
c with
MSBuildParams = disableBinLog c.MSBuildParams
Common =
c.Common
|> DotNet.Options.withAdditionalArgs args
Expand Down Expand Up @@ -294,6 +298,7 @@ let dotnetBuild ctx =
DotNet.build
(fun c -> {
c with
MSBuildParams = disableBinLog c.MSBuildParams
Configuration = configuration (ctx.Context.AllExecutingTargets)
Common =
c.Common
Expand Down Expand Up @@ -341,6 +346,7 @@ let dotnetTest ctx =

{
c with
MSBuildParams = disableBinLog c.MSBuildParams
Configuration = configuration (ctx.Context.AllExecutingTargets)
Common =
c.Common
Expand Down
6 changes: 6 additions & 0 deletions Content/Library/build/build.fs
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,8 @@ let allPublishChecks () =
// Target Implementations
//-----------------------------------------------------------------------------

/// So we don't require always being on the latest MSBuild.StructuredLogger
let disableBinLog (p: MSBuild.CliArguments) = { p with DisableInternalBinLog = true }

let clean _ =
[
Expand Down Expand Up @@ -339,6 +341,7 @@ let dotnetRestore _ =
DotNet.restore
(fun c -> {
c with
MSBuildParams = disableBinLog c.MSBuildParams
Common =
c.Common
|> DotNet.Options.withCustomParams (Some(args))
Expand Down Expand Up @@ -369,6 +372,7 @@ let dotnetBuild ctx =
DotNet.build
(fun c -> {
c with
MSBuildParams = disableBinLog c.MSBuildParams
Configuration = configuration (ctx.Context.AllExecutingTargets)
Common =
c.Common
Expand Down Expand Up @@ -428,6 +432,7 @@ let dotnetTest ctx =

{
c with
MSBuildParams = disableBinLog c.MSBuildParams
Configuration = configuration (ctx.Context.AllExecutingTargets)
Common =
c.Common
Expand Down Expand Up @@ -570,6 +575,7 @@ let dotnetPack ctx =
DotNet.pack
(fun c -> {
c with
MSBuildParams = disableBinLog c.MSBuildParams
Configuration = configuration (ctx.Context.AllExecutingTargets)
OutputPath = Some distDir
Common =
Expand Down
6 changes: 6 additions & 0 deletions build/build.fs
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,9 @@ let allPublishChecks () =
//-----------------------------------------------------------------------------


/// So we don't require always being on the latest MSBuild.StructuredLogger
let disableBinLog (p: MSBuild.CliArguments) = { p with DisableInternalBinLog = true }

let clean _ =
[
"bin"
Expand Down Expand Up @@ -305,6 +308,7 @@ let dotnetRestore _ =
DotNet.restore
(fun c -> {
c with
MSBuildParams = disableBinLog c.MSBuildParams
Common =
c.Common
|> DotNet.Options.withCustomParams (Some(args))
Expand Down Expand Up @@ -334,6 +338,7 @@ let dotnetBuild ctx =
DotNet.build
(fun c -> {
c with
MSBuildParams = disableBinLog c.MSBuildParams
Configuration = configuration (ctx.Context.AllExecutingTargets)
Common =
c.Common
Expand Down Expand Up @@ -392,6 +397,7 @@ let dotnetPack ctx =
DotNet.pack
(fun c -> {
c with
MSBuildParams = disableBinLog c.MSBuildParams
Configuration = configuration (ctx.Context.AllExecutingTargets)
OutputPath = Some distDir
Common =
Expand Down

0 comments on commit a886b79

Please sign in to comment.