Skip to content

Commit

Permalink
Update to .NET 8 and C# 12
Browse files Browse the repository at this point in the history
  • Loading branch information
sudokoko committed Dec 7, 2023
1 parent d3df7b0 commit 7976f6f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Starnet.Tests/Starnet.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<RootNamespace>LBPUnion.Starnet.Tests</RootNamespace>
<AssemblyName>LBPUnion.Starnet.Tests</AssemblyName>

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

Expand Down
2 changes: 1 addition & 1 deletion Starnet/LighthouseClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public LighthouseClient([Optional] string? authenticationToken, string host = "h
// Set the authentication key of the HTTP Client, if provided.
if (authenticationToken == null) return;

this.httpClient.DefaultRequestHeaders.Authorization = authenticationToken.StartsWith("$")
this.httpClient.DefaultRequestHeaders.Authorization = authenticationToken.StartsWith('$')
? new AuthenticationHeaderValue(authenticationToken)
: throw new ApiKeyException("The format of the API key is invalid.");
}
Expand Down
2 changes: 1 addition & 1 deletion Starnet/Starnet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</PropertyGroup>

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPackable>true</IsPackable>
Expand Down

0 comments on commit 7976f6f

Please sign in to comment.