From 61761dac36fa9f89dfee108b4889e047dd70f267 Mon Sep 17 00:00:00 2001 From: Gabriel Weyer Date: Sat, 14 Oct 2023 11:47:29 +1100 Subject: [PATCH] Upgrade to net462 net461 hasn't been supported for over a year, this wasn't a realistic example anymore. --- Directory.Packages.props | 3 +-- README.md | 6 +++--- src/ExtraLogic/ExtraLogic.csproj | 2 +- src/Logic/Logic.csproj | 2 +- src/SuperLogic/SuperLogic.csproj | 2 +- tests/HelloTests/HelloTests.csproj | 2 +- 6 files changed, 8 insertions(+), 9 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 68d359e..c855b0f 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -8,8 +8,7 @@ - - + diff --git a/README.md b/README.md index 9af6817..f0fd77f 100644 --- a/README.md +++ b/README.md @@ -7,10 +7,10 @@ | CI | Status | Platform(s) | Framework(s) | Test Framework(s) | | --- | --- | --- | --- | --- | -| [AppVeyor](#appveyor) | [![Build Status][app-veyor-shield]][app-veyor] | `Windows` | `netstandard2.0`, `net461` | `net6.0`, `net461` | +| [AppVeyor](#appveyor) | [![Build Status][app-veyor-shield]][app-veyor] | `Windows` | `netstandard2.0`, `net462` | `net6.0`, `net462` | | [Azure DevOps](#azure-devops) | [![Build Status][azure-devops-shield]][azure-devops] | `Linux` | `netstandard2.0` | `net6.0` | | [CircleCI](#circleci) | [![Build Status][circle-ci-shield]][circle-ci] | `Docker`: `mcr.microsoft.com/dotnet/sdk:6.0-focal` | `netstandard2.0` | `net6.0` | -| [GitHub](#github) | [![Build Status][github-actions-shield]][github-actions] | `Windows` | `netstandard2.0`, `net461` | `net6.0`, `net461` | +| [GitHub](#github) | [![Build Status][github-actions-shield]][github-actions] | `Windows` | `netstandard2.0`, `net462` | `net6.0`, `net462` | Demonstrates a basic build of a `.NET` `NuGet` package using [Cake][cake]. @@ -19,7 +19,7 @@ I tried to create a *somewhat* realistic scenario without writing too much code: - The solution contains two projects which will be packed as `NuGet` packages. - The `SuperLogic` project depends from `Logic` and when packing this project reference will be turned into a `NuGet` package reference (handled out of the box by `dotnet pack`). - The `Logic` project references a `NuGet` package from [nuget.org][nuget-org] via a `PackageReference`, `dotnet pack` will turn this into a package reference. -- The projects target both `netstandard2.0` and `net461` so they can be used with the `.NET Framework` (`net461` and above). +- The projects target both `netstandard2.0` and `net462` so they can be used with the `.NET Framework` (`net462` and above). - The solution contains a test project. - Use [`SemVer`][semver] to version the `DLLs` and the `NuGet` packages. - **Note**: `SemVer` is implemented via [`GitVersion`][git-version]. diff --git a/src/ExtraLogic/ExtraLogic.csproj b/src/ExtraLogic/ExtraLogic.csproj index 45f7ffd..81d19e9 100644 --- a/src/ExtraLogic/ExtraLogic.csproj +++ b/src/ExtraLogic/ExtraLogic.csproj @@ -1,6 +1,6 @@ - netstandard2.0;net461 + netstandard2.0;net462 latest enable Contoso.Hello.ExtraLogic diff --git a/src/Logic/Logic.csproj b/src/Logic/Logic.csproj index 140b485..f344c7f 100644 --- a/src/Logic/Logic.csproj +++ b/src/Logic/Logic.csproj @@ -1,6 +1,6 @@  - netstandard2.0;net461 + netstandard2.0;net462 latest enable Contoso.Hello.Logic diff --git a/src/SuperLogic/SuperLogic.csproj b/src/SuperLogic/SuperLogic.csproj index 427d8b0..b188ec4 100644 --- a/src/SuperLogic/SuperLogic.csproj +++ b/src/SuperLogic/SuperLogic.csproj @@ -1,6 +1,6 @@  - netstandard2.0;net461 + netstandard2.0;net462 latest enable Contoso.Hello.SuperLogic diff --git a/tests/HelloTests/HelloTests.csproj b/tests/HelloTests/HelloTests.csproj index 9f79c74..83ac992 100644 --- a/tests/HelloTests/HelloTests.csproj +++ b/tests/HelloTests/HelloTests.csproj @@ -1,6 +1,6 @@  - net6.0;net461 + net6.0;net462 latest enable false