From 70ef00a41e1fa6e0f93f46c867455778483f5d1e Mon Sep 17 00:00:00 2001 From: Jonas Dellinger Date: Sat, 10 Feb 2024 12:02:50 +0100 Subject: [PATCH] fix .net8 format --- SpotifyAPI.Web/Clients/SimplePaginator.cs | 2 ++ SpotifyAPI.Web/Clients/SpotifyClient.cs | 2 ++ SpotifyAPI.Web/Util/Base64Util.cs | 3 ++- SpotifyAPI.Web/Util/StringAttribute.cs | 2 ++ 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/SpotifyAPI.Web/Clients/SimplePaginator.cs b/SpotifyAPI.Web/Clients/SimplePaginator.cs index 4c7fe968..264c07f7 100644 --- a/SpotifyAPI.Web/Clients/SimplePaginator.cs +++ b/SpotifyAPI.Web/Clients/SimplePaginator.cs @@ -1,6 +1,8 @@ using System; using System.Collections.Generic; +#if NET8_0_OR_GREATER using System.Runtime.CompilerServices; +#endif using System.Threading; using System.Threading.Tasks; using SpotifyAPI.Web.Http; diff --git a/SpotifyAPI.Web/Clients/SpotifyClient.cs b/SpotifyAPI.Web/Clients/SpotifyClient.cs index 25ad10f7..b137d286 100644 --- a/SpotifyAPI.Web/Clients/SpotifyClient.cs +++ b/SpotifyAPI.Web/Clients/SpotifyClient.cs @@ -1,6 +1,8 @@ using System; using System.Collections.Generic; +#if NET8_0_OR_GREATER using System.Runtime.CompilerServices; +#endif using System.Threading; using System.Threading.Tasks; using SpotifyAPI.Web.Http; diff --git a/SpotifyAPI.Web/Util/Base64Util.cs b/SpotifyAPI.Web/Util/Base64Util.cs index b27974a3..fc1036b2 100644 --- a/SpotifyAPI.Web/Util/Base64Util.cs +++ b/SpotifyAPI.Web/Util/Base64Util.cs @@ -1,7 +1,8 @@ - using System; using System.Globalization; +#if NET8_0_OR_GREATER using System.Text; +#endif namespace SpotifyAPI.Web { diff --git a/SpotifyAPI.Web/Util/StringAttribute.cs b/SpotifyAPI.Web/Util/StringAttribute.cs index e63bf0f5..fd95ee57 100644 --- a/SpotifyAPI.Web/Util/StringAttribute.cs +++ b/SpotifyAPI.Web/Util/StringAttribute.cs @@ -1,5 +1,7 @@ using System; +#if NET8_0_OR_GREATER using System.Diagnostics.CodeAnalysis; +#endif using System.Linq; using System.Reflection;