Skip to content

Commit 50cfad7

Browse files
authored
feat: upgrade to .NET 5 (#5)
2 parents a15297b + fa53142 commit 50cfad7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

AdventOfCode/AdventOfCode.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp3.1</TargetFramework>
5+
<TargetFramework>net5.0</TargetFramework>
66
</PropertyGroup>
77

88
<ItemGroup>

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# AdventOfCodeBase
2-
Template project for solving Advent of Code in C#, running on [.NET Core 3.1](https://dotnet.microsoft.com/download/dotnet-core/3.1). If you wish to use .NET 5, [you can](#changing-from-net-core-to-net-5).
2+
Template project for solving Advent of Code in C#, running on [.NET 5.0](https://dotnet.microsoft.com/download/dotnet/5.0).
33

44
- [Features](#features)
55
- [Getting started](#getting-started)
@@ -10,7 +10,7 @@ Template project for solving Advent of Code in C#, running on [.NET Core 3.1](ht
1010
- [Notes](#notes)
1111
- [Generating Previous Year's Solution Files](#generating-previous-years-solution-files)
1212
- [Using a Solution's Constructor](#using-a-solutions-constructor)
13-
- [Changing From .NET Core To .NET 5](#changing-from-net-core-to-net-5)
13+
- [Using .NET Core](#using-net-core)
1414
- [Contributing](#contributing)
1515
- [License](#license)
1616

@@ -100,11 +100,11 @@ protected override string SolvePartTwo()
100100
* If stuck you can set the `DebugInput` variable at the top of the constructor, and it will overwrite `Input` variable, so you won't need to change all your references.
101101
* The extension method `SplitByNewLine()` will do exactly that, example: `string[] lines = Input.SplitByNewLine()` will split your input into lines for enumeration.
102102

103-
### Changing from .NET Core to .NET 5
103+
### Using .NET Core
104104
Simply swap out the target framework in `AdventOfCode.csproj`.
105105
```diff
106-
- <TargetFramework>netcoreapp3.1</TargetFramework>
107-
+ <TargetFramework>net5.0</TargetFramework>
106+
- <TargetFramework>net5.0</TargetFramework>
107+
+ <TargetFramework>netcoreapp3.1</TargetFramework>
108108
```
109109

110110

0 commit comments

Comments
 (0)