Skip to content

Commit ebf5eae

Browse files
committed
Fix up broken fake build, and upgrade projects to LTS netcoreapp3.1
1 parent aa04b29 commit ebf5eae

File tree

12 files changed

+272
-661
lines changed

12 files changed

+272
-661
lines changed

.config/dotnet-tools.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
"isRoot": true,
44
"tools": {
55
"fake-cli": {
6-
"version": "5.20.3",
6+
"version": "5.22.0",
77
"commands": [
88
"fake"
99
]
1010
},
1111
"paket": {
12-
"version": "5.257.0",
12+
"version": "7.1.5",
1313
"commands": [
1414
"paket"
1515
]

Examples/Examples.WinForms.Chromium/Examples.WinForms.Chromium.fsproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
33
<PropertyGroup>
44
<OutputType>WinExe</OutputType>
5-
<TargetFrameworks>netcoreapp3.0;net48</TargetFrameworks>
5+
<TargetFrameworks>net5.0-Windows;net48</TargetFrameworks>
66
<UseWindowsForms>true</UseWindowsForms>
77
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
88
<ApplicationIcon />

Examples/Examples.Wpf.Chromium/Examples.Wpf.Chromium.fsproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
33
<PropertyGroup>
44
<OutputType>WinExe</OutputType>
5-
<TargetFrameworks>netcoreapp3.0;net48</TargetFrameworks>
5+
<TargetFrameworks>net5.0-Windows;net48</TargetFrameworks>
66
<UseWPF>true</UseWPF>
77
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
88
<ApplicationIcon />

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,27 @@ dotnet fake build -t BuildDocs
4848
dotnet fake biuld -t ReleaseDocs
4949
```
5050

51+
## FAKE build error: "Unsupported log file format"
52+
53+
Sometimes, `dotnet fake build` will start failing with messages similar to:
54+
55+
`NotSupportedException: Unsupported log file format. Latest supported version is 9, the log file has version 14.`
56+
57+
Fix this by running:
58+
59+
``bash
60+
git clean -xdf
61+
rm build.fsx.lock``
62+
63+
You may also have to run:
64+
65+
``bash
66+
dotnet tool uninstall fake-cli
67+
dotnet tool install fake-cli
68+
``
69+
70+
The build should succeed again now. You can commit the changes.
71+
5172
## Maintainer(s)
5273

5374
* [@jwosty](https://github.com/jwosty)

build.fsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
// F# 4.7 due to https://github.com/fsharp/FAKE/issues/2001
66
#r "paket:
7-
nuget FSharp.Core 4.7.0
7+
nuget FSharp.Core 6.0.4
88
nuget Fake.Core.Target
99
nuget Fake.DotNet.Cli
1010
nuget Fake.DotNet.MSBuild
@@ -129,7 +129,7 @@ Target.create "PackageDescription" (fun _ ->
129129

130130
let doRestore msbParams = { msbParams with DoRestore = true }
131131

132-
let getNupkgPath version projPath =
132+
let getNupkgPath version (projPath: string) =
133133
let vstr = match version with Some v -> sprintf ".%s" v | None -> ""
134134
let projDir = Path.GetDirectoryName projPath
135135
Path.Combine ([|projDir; "bin"; "Release";

0 commit comments

Comments
 (0)