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;