Skip to content

Commit

Permalink
Remove .NET standard support - out of support (#18)
Browse files Browse the repository at this point in the history
* Remove .NET standard support - out of support

* Updated proj

* updated ci

* Upgraded csproj files
  • Loading branch information
onionhammer authored Apr 15, 2024
1 parent ef3ceaa commit 362ab93
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 17 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v2
with:
dotnet-version: 7.0.100
dotnet-version: '8.0.x'
- name: Install dependencies
run: dotnet restore
- name: Build
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v2
with:
dotnet-version: 7.0.100
dotnet-version: '8.0.x'
- name: Install dependencies
run: dotnet restore
- name: Build
Expand Down
2 changes: 1 addition & 1 deletion TestNSwag.Models/TestNSwag.Models.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</ItemGroup>

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion TestNSwag/TestNSwag.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</ItemGroup>

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion Tests/Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
</PropertyGroup>

Expand Down
4 changes: 2 additions & 2 deletions Wivuu.JsonPolymorphism.proj
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<Project>

<PropertyGroup>
<VersionPrefix>1.0.18</VersionPrefix>
<VersionPrefix>1.0.20</VersionPrefix>
<Authors>Erik O'Leary</Authors>
<Company>Wivuu</Company>
<Product>Wivuu JsonPolymorphism</Product>
<Description>Adds System.Text.Json serializer support for polymorphism with a discriminator attribute.</Description>
<ReleaseNotes>
- Allow base type to not be abstract
- Remove support for .NET 5.0 and below (.NET Standard 2.0), which are out-of-support.
</ReleaseNotes>
<PackageTags>net6;json;serialize;polymorphism</PackageTags>
<PackageProjectUrl>https://github.com/wivuu/Wivuu.JsonPolymorphism</PackageProjectUrl>
Expand Down
9 changes: 2 additions & 7 deletions Wivuu.JsonPolymorphism/Wivuu.JsonPolymorphism.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,12 @@
<PropertyGroup>
<Nullable>enable</Nullable>
<LangVersion>11</LangVersion>
<TargetFrameworks>netstandard2.0;net6.0</TargetFrameworks>
<TargetFramework>net6.0</TargetFramework>
<BuildOutputTargetFolder>analyzers</BuildOutputTargetFolder>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.4.0" PrivateAssets="all" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.3" PrivateAssets="all" />
<PackageReference Include="System.Text.Json" Version="6.0.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.9.2" PrivateAssets="all" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 362ab93

Please sign in to comment.