Skip to content

Commit d00ce63

Browse files
Update to .NET 6 preview 1
Update to preview 1 of .NET 6.
1 parent 119678d commit d00ce63

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"type": "coreclr",
77
"request": "launch",
88
"preLaunchTask": "build",
9-
"program": "${workspaceRoot}/src/AdventOfCode/bin/Debug/net5.0/AdventOfCode.dll",
9+
"program": "${workspaceRoot}/src/AdventOfCode/bin/Debug/net6.0/AdventOfCode.dll",
1010
"args": [],
1111
"cwd": "${workspaceRoot}/src/AdventOfCode",
1212
"stopAtEntry": false,

Directory.Packages.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<ItemGroup>
33
<PackageVersion Include="BenchmarkDotNet" Version="0.12.1" />
44
<PackageVersion Include="MartinCostello.Logging.XUnit" Version="0.1.0" />
5-
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Testing" Version="5.0.3" />
5+
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Testing" Version="6.0.0-preview.1.21103.6" />
66
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="16.8.3" />
77
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="1.0.0" />
88
<PackageVersion Include="Shouldly" Version="4.0.3" />

benchmark.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#! /usr/bin/pwsh
22
param(
33
[Parameter(Mandatory = $false)][string] $Configuration = "Release",
4-
[Parameter(Mandatory = $false)][string] $Framework = "net5.0"
4+
[Parameter(Mandatory = $false)][string] $Framework = "net6.0"
55
)
66

77
$ErrorActionPreference = "Stop"

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "5.0.103",
3+
"version": "6.0.100-preview.1.21103.13",
44
"allowPrerelease": false,
55
"rollForward": "latestMajor"
66
}

src/AdventOfCode/AdventOfCode.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<OutputType>Exe</OutputType>
77
<PreserveCompilationContext>true</PreserveCompilationContext>
88
<RootNamespace>MartinCostello.AdventOfCode</RootNamespace>
9-
<TargetFramework>net5.0</TargetFramework>
9+
<TargetFramework>net6.0</TargetFramework>
1010
</PropertyGroup>
1111
<ItemGroup>
1212
<EmbeddedResource Include="Input\**\input.txt" />

src/AdventOfCode/Puzzles/Y2020/Day04.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ static bool IsValidYear(string? value, int minimum, int maximum)
182182
"hcl" => IsValidHairColor(value),
183183
"hgt" => IsValidHeight(value),
184184
"iyr" => IsValidYear(value, 2010, 2020),
185-
"pid" => TryParseInt32(value, out _) && value.Length == 9,
185+
"pid" => TryParseInt32(value, out _) && value!.Length == 9,
186186
_ => true,
187187
};
188188

tests/AdventOfCode.Benchmarks/AdventOfCode.Benchmarks.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<OutputType>Exe</OutputType>
77
<RootNamespace>MartinCostello.AdventOfCode.Benchmarks</RootNamespace>
88
<Summary>$(Description)</Summary>
9-
<TargetFrameworks>net5.0</TargetFrameworks>
9+
<TargetFrameworks>net6.0</TargetFrameworks>
1010
<!-- Workaround for https://github.com/dotnet/BenchmarkDotNet/pull/1420 -->
1111
<LangVersion>8.0</LangVersion>
1212
</PropertyGroup>

tests/AdventOfCode.Tests/AdventOfCode.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<GenerateDocumentationFile>false</GenerateDocumentationFile>
55
<NoWarn>$(NoWarn);CA1707;CA1711;CA1812;CA2007;CA2234;SA1600</NoWarn>
66
<RootNamespace>MartinCostello.AdventOfCode</RootNamespace>
7-
<TargetFramework>net5.0</TargetFramework>
7+
<TargetFramework>net6.0</TargetFramework>
88
</PropertyGroup>
99
<ItemGroup>
1010
<None Update="localhost-dev.pfx;xunit.runner.json" CopyToOutputDirectory="PreserveNewest" />

0 commit comments

Comments
 (0)