Skip to content

Commit

Permalink
Updated FAKE and Paket, support building with .NET 8 compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
Thorium committed Sep 27, 2024
1 parent 3a9510e commit a5939d4
Show file tree
Hide file tree
Showing 5 changed files with 240 additions and 266 deletions.
62 changes: 33 additions & 29 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,34 @@
{
"version": 1,
"isRoot": true,
"tools": {
"paket": {
"version": "6.1.3",
"commands": [
"paket"
]
},
"fake-cli": {
"version": "5.20.4",
"commands": [
"fake"
]
},
"fsharp.formatting.commandtool": {
"version": "11.4.3",
"commands": [
"fsdocs"
]
},
"dotnet-fsharplint": {
"version": "0.21.3",
"commands": [
"dotnet-fsharplint"
]
}
}
{
"version": 1,
"isRoot": true,
"tools": {
"paket": {
"version": "8.0.3",
"commands": [
"paket"
],
"rollForward": false
},
"fake-cli": {
"version": "6.1.3",
"commands": [
"fake"
],
"rollForward": false
},
"fsharp.formatting.commandtool": {
"version": "11.4.3",
"commands": [
"fsdocs"
],
"rollForward": false
},
"dotnet-fsharplint": {
"version": "0.21.3",
"commands": [
"dotnet-fsharplint"
],
"rollForward": false
}
}
}
4 changes: 2 additions & 2 deletions build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ open Fake.IO.Globbing.Operators
Target.initEnvironment()

let config = DotNet.BuildConfiguration.Release
let setParams (p:DotNet.BuildOptions) = { p with Configuration = config }
let setParams (p:DotNet.BuildOptions) = { p with Configuration = config; MSBuildParams = { p.MSBuildParams with DisableInternalBinLog = true } }

let outputPath = Path.Combine(__SOURCE_DIRECTORY__, "bin")

Expand Down Expand Up @@ -66,7 +66,7 @@ Target.create "RunTests" (fun _ ->

Target.create "Pack" (fun _ ->
let releaseNotes = String.toLines release.Notes
let setParams (p:DotNet.PackOptions) = { p with OutputPath = Some outputPath; Configuration = config}
let setParams (p:DotNet.PackOptions) = { p with OutputPath = Some outputPath; Configuration = config; MSBuildParams = { p.MSBuildParams with DisableInternalBinLog = true }}

DotNet.pack (fun p -> {
setParams p with
Expand Down
Loading

0 comments on commit a5939d4

Please sign in to comment.