Skip to content

Commit

Permalink
Add dotnet 7 support.
Browse files Browse the repository at this point in the history
  • Loading branch information
twitchax committed Mar 7, 2024
1 parent b3f70af commit 9059b95
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ jobs:
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0'
- name: Setup .NET 7
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0'
- name: Build package for Release.
run: dotnet pack -c Release
if: github.event.action == 'published'
Expand Down
6 changes: 5 additions & 1 deletion src/Core/AspNetCore.Proxy.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<AssemblyName>AspNetCore.Proxy</AssemblyName>
<PackageId>AspNetCore.Proxy</PackageId>
<Version>4.4.0</Version>
<Version>4.5.0</Version>
<PackageProjectUrl>https://github.com/twitchax/aspnetcore.proxy</PackageProjectUrl>

<TargetFrameworks>netstandard2.0;net6.0;net7.0</TargetFrameworks>
Expand All @@ -13,6 +13,10 @@
<IsPackable>true</IsPackable>
<OutputType>Library</OutputType>
</PropertyGroup>

<PropertyGroup>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
</PropertyGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
<PackageReference Include="Microsoft.AspNetCore" Version="2.1.0" />
Expand Down
4 changes: 2 additions & 2 deletions src/Test/Http/HttpHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -153,15 +153,15 @@ public void GetWithCustomReasonPhase(int postId)
public Task GetWithCustomReasonPhase()
{
var options = HttpProxyOptionsBuilder.Instance.WithIntercept(
async (ctx) =>
(ctx) =>
{
var httpResponseFeature = ctx.Features.Get<IHttpResponseFeature>();
if (httpResponseFeature != null)
{
httpResponseFeature.ReasonPhrase = "I am dummy!";
}

return true;
return new ValueTask<bool>(true);

}).Build();

Expand Down

0 comments on commit 9059b95

Please sign in to comment.