Skip to content

Commit

Permalink
Merge pull request #37 from ChuchoCoder/feature/target-net-standard-2.0
Browse files Browse the repository at this point in the history
Target .Net Standard 2.0
  • Loading branch information
naicigam authored Dec 26, 2023
2 parents f85fef1 + 579e840 commit e3b0fa4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion Primary/Api.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,14 @@ public class Api
public Api(Uri baseUri, HttpClient httpClient = null)
{
BaseUri = baseUri;
HttpClient = httpClient ?? new HttpClient() { DefaultRequestVersion = new(2, 0) };
HttpClient = httpClient ?? new HttpClient()
{
#if NET6
DefaultRequestVersion = new(2, 0)
#else
#warning Not using HTTP/2.

Check warning on line 38 in Primary/Api.cs

View workflow job for this annotation

GitHub Actions / CI Build

#warning: 'Not using HTTP/2.'
#endif
};
}

public Uri BaseUri { get; private set; }
Expand Down
2 changes: 1 addition & 1 deletion Primary/Primary.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFrameworks>netstandard2.0;net6.0</TargetFrameworks>
<LangVersion>latest</LangVersion>
<Version>0.10.0-beta</Version>
<PackageId>Primary.Net</PackageId>
Expand Down

0 comments on commit e3b0fa4

Please sign in to comment.