Skip to content

Commit 62642f8

Browse files
committed
Preparation for 2024
1 parent c7e5fb1 commit 62642f8

37 files changed

+1816
-68
lines changed

.vscode/launch.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,22 @@
1111
"processId": "${command:pickProcess}"
1212
},
1313
{
14-
"name": "2023 (console)",
14+
"name": "2024 (console)",
1515
"type": "coreclr",
1616
"request": "launch",
17-
"program": "${workspaceFolder}/2023/bin/Debug/net8.0/2023.dll",
17+
"program": "${workspaceFolder}/2024/bin/Debug/net9.0/2024.dll",
1818
"args": [
19-
"24"
19+
"01"
2020
],
21-
"cwd": "${workspaceFolder}/2023",
21+
"cwd": "${workspaceFolder}/2024",
2222
"stopAtEntry": false,
2323
"console": "internalConsole"
2424
},
2525
{
2626
"name": "2022 (console)",
2727
"type": "coreclr",
2828
"request": "launch",
29-
"program": "${workspaceFolder}/2022/bin/Debug/net8.0/2022.dll",
29+
"program": "${workspaceFolder}/2022/bin/Debug/net9.0/2022.dll",
3030
"args": [
3131
"22"
3232
],
@@ -38,7 +38,7 @@
3838
"name": "2015 (console)",
3939
"type": "coreclr",
4040
"request": "launch",
41-
"program": "${workspaceFolder}/2015/bin/Debug/net8.0/2015.dll",
41+
"program": "${workspaceFolder}/2015/bin/Debug/net9.0/2015.dll",
4242
"args": [
4343
"10"
4444
],

2015/2015.fsproj

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

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net8.0</TargetFramework>
5+
<TargetFramework>net9.0</TargetFramework>
66
<RootNamespace>_2015</RootNamespace>
77
<GenerateProgramFile>false</GenerateProgramFile>
88
</PropertyGroup>
@@ -38,19 +38,19 @@
3838

3939
<ItemGroup>
4040
<PackageReference Include="FParsec" Version="1.1.1" />
41-
<PackageReference Include="FSharpPlus" Version="1.2.5" />
42-
<PackageReference Include="FsUnit" Version="4.1.0" />
43-
<PackageReference Include="FsUnit.xUnit" Version="4.1.0" />
41+
<PackageReference Include="FSharpPlus" Version="1.6.1" />
42+
<PackageReference Include="FsUnit" Version="6.0.1" />
43+
<PackageReference Include="FsUnit.xUnit" Version="6.0.1" />
4444
</ItemGroup>
4545

4646
<ItemGroup>
47-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.4" />
48-
<PackageReference Include="xunit" Version="2.4.1" />
49-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
47+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
48+
<PackageReference Include="xunit" Version="2.9.2" />
49+
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
5050
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
5151
<PrivateAssets>all</PrivateAssets>
5252
</PackageReference>
53-
<PackageReference Include="coverlet.collector" Version="3.0.2">
53+
<PackageReference Include="coverlet.collector" Version="6.0.2">
5454
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
5555
<PrivateAssets>all</PrivateAssets>
5656
</PackageReference>

2019/2019.fsproj

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

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net8.0</TargetFramework>
5+
<TargetFramework>net9.0</TargetFramework>
66
<RootNamespace>_2019</RootNamespace>
77
<GenerateProgramFile>false</GenerateProgramFile>
88
</PropertyGroup>
@@ -38,19 +38,19 @@
3838

3939
<ItemGroup>
4040
<PackageReference Include="FParsec" Version="1.1.1" />
41-
<PackageReference Include="FSharpPlus" Version="1.3.2" />
42-
<PackageReference Include="FsUnit" Version="4.1.0" />
43-
<PackageReference Include="FsUnit.xUnit" Version="4.1.0" />
41+
<PackageReference Include="FSharpPlus" Version="1.6.1" />
42+
<PackageReference Include="FsUnit" Version="6.0.1" />
43+
<PackageReference Include="FsUnit.xUnit" Version="6.0.1" />
4444
</ItemGroup>
4545

4646
<ItemGroup>
47-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.4" />
48-
<PackageReference Include="xunit" Version="2.4.1" />
49-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
47+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
48+
<PackageReference Include="xunit" Version="2.9.2" />
49+
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
5050
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
5151
<PrivateAssets>all</PrivateAssets>
5252
</PackageReference>
53-
<PackageReference Include="coverlet.collector" Version="3.0.2">
53+
<PackageReference Include="coverlet.collector" Version="6.0.2">
5454
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
5555
<PrivateAssets>all</PrivateAssets>
5656
</PackageReference>

2020/2020.fsproj

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<OutputType>Exe</OutputType>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<RootNamespace>_2020</RootNamespace>
66
<GenerateProgramFile>false</GenerateProgramFile>
77
</PropertyGroup>
@@ -35,18 +35,18 @@
3535
</ItemGroup>
3636
<ItemGroup>
3737
<PackageReference Include="FParsec" Version="1.1.1" />
38-
<PackageReference Include="FSharpPlus" Version="1.2.5" />
39-
<PackageReference Include="FsUnit" Version="4.1.0" />
40-
<PackageReference Include="FsUnit.xUnit" Version="4.1.0" />
38+
<PackageReference Include="FSharpPlus" Version="1.6.1" />
39+
<PackageReference Include="FsUnit" Version="6.0.1" />
40+
<PackageReference Include="FsUnit.xUnit" Version="6.0.1" />
4141
</ItemGroup>
4242
<ItemGroup>
43-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.4" />
44-
<PackageReference Include="xunit" Version="2.4.1" />
45-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
43+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
44+
<PackageReference Include="xunit" Version="2.9.2" />
45+
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
4646
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
4747
<PrivateAssets>all</PrivateAssets>
4848
</PackageReference>
49-
<PackageReference Include="coverlet.collector" Version="3.0.2">
49+
<PackageReference Include="coverlet.collector" Version="6.0.2">
5050
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
5151
<PrivateAssets>all</PrivateAssets>
5252
</PackageReference>

2021/2021.fsproj

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

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net8.0</TargetFramework>
5+
<TargetFramework>net9.0</TargetFramework>
66
<RootNamespace>_2021</RootNamespace>
77
<GenerateProgramFile>false</GenerateProgramFile>
88
</PropertyGroup>
@@ -38,19 +38,19 @@
3838

3939
<ItemGroup>
4040
<PackageReference Include="FParsec" Version="1.1.1" />
41-
<PackageReference Include="FSharpPlus" Version="1.2.5" />
42-
<PackageReference Include="FsUnit" Version="4.1.0" />
43-
<PackageReference Include="FsUnit.xUnit" Version="4.1.0" />
41+
<PackageReference Include="FSharpPlus" Version="1.6.1" />
42+
<PackageReference Include="FsUnit" Version="6.0.1" />
43+
<PackageReference Include="FsUnit.xUnit" Version="6.0.1" />
4444
</ItemGroup>
4545

4646
<ItemGroup>
47-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.4" />
48-
<PackageReference Include="xunit" Version="2.4.1" />
49-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
47+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
48+
<PackageReference Include="xunit" Version="2.9.2" />
49+
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
5050
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
5151
<PrivateAssets>all</PrivateAssets>
5252
</PackageReference>
53-
<PackageReference Include="coverlet.collector" Version="3.0.2">
53+
<PackageReference Include="coverlet.collector" Version="6.0.2">
5454
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
5555
<PrivateAssets>all</PrivateAssets>
5656
</PackageReference>

2022/2022.fsproj

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

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net8.0</TargetFramework>
5+
<TargetFramework>net9.0</TargetFramework>
66
<RootNamespace>_2022</RootNamespace>
77
<GenerateProgramFile>false</GenerateProgramFile>
88
</PropertyGroup>
@@ -38,19 +38,19 @@
3838

3939
<ItemGroup>
4040
<PackageReference Include="FParsec" Version="1.1.1" />
41-
<PackageReference Include="FSharpPlus" Version="1.3.2" />
42-
<PackageReference Include="FsUnit" Version="4.1.0" />
43-
<PackageReference Include="FsUnit.xUnit" Version="4.1.0" />
41+
<PackageReference Include="FSharpPlus" Version="1.6.1" />
42+
<PackageReference Include="FsUnit" Version="6.0.1" />
43+
<PackageReference Include="FsUnit.xUnit" Version="6.0.1" />
4444
</ItemGroup>
4545

4646
<ItemGroup>
47-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.4" />
48-
<PackageReference Include="xunit" Version="2.4.1" />
49-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
47+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
48+
<PackageReference Include="xunit" Version="2.9.2" />
49+
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
5050
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
5151
<PrivateAssets>all</PrivateAssets>
5252
</PackageReference>
53-
<PackageReference Include="coverlet.collector" Version="3.0.2">
53+
<PackageReference Include="coverlet.collector" Version="6.0.2">
5454
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
5555
<PrivateAssets>all</PrivateAssets>
5656
</PackageReference>

2023/2023.fsproj

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

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net8.0</TargetFramework>
5+
<TargetFramework>net9.0</TargetFramework>
66
<RootNamespace>_2023</RootNamespace>
77
<GenerateProgramFile>false</GenerateProgramFile>
88
</PropertyGroup>
@@ -38,19 +38,19 @@
3838

3939
<ItemGroup>
4040
<PackageReference Include="FParsec" Version="1.1.1" />
41-
<PackageReference Include="FSharpPlus" Version="1.3.2" />
42-
<PackageReference Include="FsUnit" Version="4.1.0" />
43-
<PackageReference Include="FsUnit.xUnit" Version="4.1.0" />
41+
<PackageReference Include="FSharpPlus" Version="1.6.1" />
42+
<PackageReference Include="FsUnit" Version="6.0.1" />
43+
<PackageReference Include="FsUnit.xUnit" Version="6.0.1" />
4444
</ItemGroup>
4545

4646
<ItemGroup>
47-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.4" />
48-
<PackageReference Include="xunit" Version="2.4.1" />
49-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
47+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
48+
<PackageReference Include="xunit" Version="2.9.2" />
49+
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
5050
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
5151
<PrivateAssets>all</PrivateAssets>
5252
</PackageReference>
53-
<PackageReference Include="coverlet.collector" Version="3.0.2">
53+
<PackageReference Include="coverlet.collector" Version="6.0.2">
5454
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
5555
<PrivateAssets>all</PrivateAssets>
5656
</PackageReference>

2024/01.fs

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
module AoC202401
2+
3+
open AdventOfCode
4+
open FSharpPlus
5+
open FParsec
6+
7+
let parser = spaces
8+
9+
let solve1 input = 0
10+
11+
let solve2 input = 0
12+
13+
let solution = makeSolution () parser solve1 solve2
14+
15+
module Tests =
16+
open Xunit
17+
open FsUnit.Xunit
18+
19+
let input = [| "" |]
20+
21+
[<Fact>]
22+
let ``Example part 1`` () =
23+
testPart1 solution input |> should equal 0
24+
25+
// [<Fact>]
26+
// let ``Example part 2`` () =
27+
// testPart2 solution input |> should equal 0

2024/02.fs

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
module AoC202402
2+
3+
open AdventOfCode
4+
open FSharpPlus
5+
open FParsec
6+
7+
let parser = spaces
8+
9+
let solve1 input = 0
10+
11+
let solve2 input = 0
12+
13+
let solution = makeSolution () parser solve1 solve2
14+
15+
module Tests =
16+
open Xunit
17+
open FsUnit.Xunit
18+
19+
let input = [| "" |]
20+
21+
[<Fact>]
22+
let ``Example part 1`` () =
23+
testPart1 solution input |> should equal 0
24+
25+
// [<Fact>]
26+
// let ``Example part 2`` () =
27+
// testPart2 solution input |> should equal 0

2024/03.fs

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
module AoC202403
2+
3+
open AdventOfCode
4+
open FSharpPlus
5+
open FParsec
6+
7+
let parser = spaces
8+
9+
let solve1 input = 0
10+
11+
let solve2 input = 0
12+
13+
let solution = makeSolution () parser solve1 solve2
14+
15+
module Tests =
16+
open Xunit
17+
open FsUnit.Xunit
18+
19+
let input = [| "" |]
20+
21+
[<Fact>]
22+
let ``Example part 1`` () =
23+
testPart1 solution input |> should equal 0
24+
25+
// [<Fact>]
26+
// let ``Example part 2`` () =
27+
// testPart2 solution input |> should equal 0

0 commit comments

Comments
 (0)