Skip to content

Commit

Permalink
Merge pull request #20 from skuill/feature/19_net8_support
Browse files Browse the repository at this point in the history
#19 Added .NET 8 support
  • Loading branch information
skuill authored Jan 27, 2024
2 parents 4d643f4 + c17b817 commit d29a532
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:
- uses: actions/setup-dotnet@v3
with:
dotnet-version: "7.0.x"
- uses: actions/setup-dotnet@v3
with:
dotnet-version: "8.0.x"
- name: Set RELEASE_VERSION
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Restore Packages
Expand Down Expand Up @@ -60,11 +63,13 @@ jobs:
zip -j LyricsScraperNET-net5.0.zip LyricsScraperNET/bin/Release/net5.0/*
zip -j LyricsScraperNET-net6.0.zip LyricsScraperNET/bin/Release/net6.0/*
zip -j LyricsScraperNET-net7.0.zip LyricsScraperNET/bin/Release/net7.0/*
zip -j LyricsScraperNET-net8.0.zip LyricsScraperNET/bin/Release/net8.0/*
gh release upload "$RELEASE_VERSION" \
"LyricsScraperNET-netstandard2.0.zip" \
"LyricsScraperNET-netstandard2.1.zip" \
"LyricsScraperNET-net5.0.zip" \
"LyricsScraperNET-net6.0.zip" \
"LyricsScraperNET-net7.0.zip" \
"LyricsScraperNET-net8.0.zip" \
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions LyricsScraperNET.Client/LyricsScraperNET.Client.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>net7.0;net6.0;net5.0;netcoreapp3.1</TargetFrameworks>
<TargetFrameworks>net8.0;net7.0;net6.0;net5.0;netcoreapp3.1</TargetFrameworks>
<Nullable>enable</Nullable>
</PropertyGroup>

Expand Down
3 changes: 3 additions & 0 deletions LyricsScraperNET.Client/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ static async Task Main()
Console.WriteLine($"\r\nThis lyric was found by [{result.ExternalProviderType}]\r\n");
Console.ResetColor();

Console.ForegroundColor = ConsoleColor.DarkGray;
Console.WriteLine("Press any key to exit..");
Console.ResetColor();
Console.ReadLine();
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net7.0;net6.0;net5.0;netstandard2.1;netstandard2.0</TargetFrameworks>
<TargetFrameworks>net8.0;net7.0;net6.0;net5.0;netstandard2.1;netstandard2.0</TargetFrameworks>
</PropertyGroup>

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

<PropertyGroup>
<TargetFrameworks>net7.0;net6.0;net5.0;netstandard2.1;netstandard2.0</TargetFrameworks>
<TargetFrameworks>net8.0;net7.0;net6.0;net5.0;netstandard2.1;netstandard2.0</TargetFrameworks>
<LangVersion>9.0</LangVersion>
<Nullable>enable</Nullable>
<PackageId>LyricsScraperNET</PackageId>
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ LyricsScraperNET is a library for .NET that provides an API to search for lyrics

## Features

* ✅ Supports multiple frameworks `.NET Standard 2.X`, `.NET 5`, `.NET 6`, `.NET 7`
* ✅ Supports multiple frameworks `.NET Standard 2.X`, `.NET 5`, `.NET 6`, `.NET 7`, `.NET 8`
* ✅ Logging supported.
* ✅ Modular structure, for easy testing.
* ✅ Multiple ways how to configure.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net7.0</TargetFrameworks>
<TargetFrameworks>net8.0</TargetFrameworks>
<LangVersion>9.0</LangVersion>
<IsPackable>false</IsPackable>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net7.0;net6.0;net5.0;netcoreapp3.1</TargetFrameworks>
<TargetFrameworks>net8.0;net7.0;net6.0;net5.0;netcoreapp3.1</TargetFrameworks>
<LangVersion>9.0</LangVersion>
<IsPackable>false</IsPackable>
</PropertyGroup>
Expand Down

0 comments on commit d29a532

Please sign in to comment.