Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 33 additions & 15 deletions AspNetCore.sln
Original file line number Diff line number Diff line change
Expand Up @@ -605,8 +605,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Http.A
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Http.Extensions.Tests", "src\Http\Http.Extensions\test\Microsoft.AspNetCore.Http.Extensions.Tests.csproj", "{402C3AC9-1B1D-4523-AB80-A992CEA85F57}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Http.Features.Tests", "src\Http\Http.Features\test\Microsoft.AspNetCore.Http.Features.Tests.csproj", "{C86D97EF-301F-464B-A6B8-DA75BB0DBECE}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Owin.Tests", "src\Http\Owin\test\Microsoft.AspNetCore.Owin.Tests.csproj", "{66ADF274-B5C4-4D0A-91D9-F7FB76ADBF85}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{EB5E294B-9ED5-43BF-AFA9-1CD2327F3DC1}"
Expand Down Expand Up @@ -1628,6 +1626,12 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MinimalSample", "src\Http\s
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests", "src\Servers\Kestrel\Transport.Quic\test\Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests.csproj", "{E3DAEBD3-CD36-493F-877F-460E8FFEAC52}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Features", "Features", "{17F28812-983E-4415-A55D-842DD7EC6887}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Extensions.Features", "src\Http\Features\src\Microsoft.Extensions.Features.csproj", "{A07D3B13-388B-444F-9E37-DDC0787C4690}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Extensions.Features.Tests", "src\Http\Features\test\Microsoft.Extensions.Features.Tests.csproj", "{09FFBC53-3EFF-45C4-9822-5D66089CD6AD}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -3462,18 +3466,6 @@ Global
{402C3AC9-1B1D-4523-AB80-A992CEA85F57}.Release|x64.Build.0 = Release|Any CPU
{402C3AC9-1B1D-4523-AB80-A992CEA85F57}.Release|x86.ActiveCfg = Release|Any CPU
{402C3AC9-1B1D-4523-AB80-A992CEA85F57}.Release|x86.Build.0 = Release|Any CPU
{C86D97EF-301F-464B-A6B8-DA75BB0DBECE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C86D97EF-301F-464B-A6B8-DA75BB0DBECE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C86D97EF-301F-464B-A6B8-DA75BB0DBECE}.Debug|x64.ActiveCfg = Debug|Any CPU
{C86D97EF-301F-464B-A6B8-DA75BB0DBECE}.Debug|x64.Build.0 = Debug|Any CPU
{C86D97EF-301F-464B-A6B8-DA75BB0DBECE}.Debug|x86.ActiveCfg = Debug|Any CPU
{C86D97EF-301F-464B-A6B8-DA75BB0DBECE}.Debug|x86.Build.0 = Debug|Any CPU
{C86D97EF-301F-464B-A6B8-DA75BB0DBECE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C86D97EF-301F-464B-A6B8-DA75BB0DBECE}.Release|Any CPU.Build.0 = Release|Any CPU
{C86D97EF-301F-464B-A6B8-DA75BB0DBECE}.Release|x64.ActiveCfg = Release|Any CPU
{C86D97EF-301F-464B-A6B8-DA75BB0DBECE}.Release|x64.Build.0 = Release|Any CPU
{C86D97EF-301F-464B-A6B8-DA75BB0DBECE}.Release|x86.ActiveCfg = Release|Any CPU
{C86D97EF-301F-464B-A6B8-DA75BB0DBECE}.Release|x86.Build.0 = Release|Any CPU
{66ADF274-B5C4-4D0A-91D9-F7FB76ADBF85}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{66ADF274-B5C4-4D0A-91D9-F7FB76ADBF85}.Debug|Any CPU.Build.0 = Debug|Any CPU
{66ADF274-B5C4-4D0A-91D9-F7FB76ADBF85}.Debug|x64.ActiveCfg = Debug|Any CPU
Expand Down Expand Up @@ -7723,6 +7715,30 @@ Global
{E3DAEBD3-CD36-493F-877F-460E8FFEAC52}.Release|x64.Build.0 = Release|Any CPU
{E3DAEBD3-CD36-493F-877F-460E8FFEAC52}.Release|x86.ActiveCfg = Release|Any CPU
{E3DAEBD3-CD36-493F-877F-460E8FFEAC52}.Release|x86.Build.0 = Release|Any CPU
{A07D3B13-388B-444F-9E37-DDC0787C4690}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A07D3B13-388B-444F-9E37-DDC0787C4690}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A07D3B13-388B-444F-9E37-DDC0787C4690}.Debug|x64.ActiveCfg = Debug|Any CPU
{A07D3B13-388B-444F-9E37-DDC0787C4690}.Debug|x64.Build.0 = Debug|Any CPU
{A07D3B13-388B-444F-9E37-DDC0787C4690}.Debug|x86.ActiveCfg = Debug|Any CPU
{A07D3B13-388B-444F-9E37-DDC0787C4690}.Debug|x86.Build.0 = Debug|Any CPU
{A07D3B13-388B-444F-9E37-DDC0787C4690}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A07D3B13-388B-444F-9E37-DDC0787C4690}.Release|Any CPU.Build.0 = Release|Any CPU
{A07D3B13-388B-444F-9E37-DDC0787C4690}.Release|x64.ActiveCfg = Release|Any CPU
{A07D3B13-388B-444F-9E37-DDC0787C4690}.Release|x64.Build.0 = Release|Any CPU
{A07D3B13-388B-444F-9E37-DDC0787C4690}.Release|x86.ActiveCfg = Release|Any CPU
{A07D3B13-388B-444F-9E37-DDC0787C4690}.Release|x86.Build.0 = Release|Any CPU
{09FFBC53-3EFF-45C4-9822-5D66089CD6AD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{09FFBC53-3EFF-45C4-9822-5D66089CD6AD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{09FFBC53-3EFF-45C4-9822-5D66089CD6AD}.Debug|x64.ActiveCfg = Debug|Any CPU
{09FFBC53-3EFF-45C4-9822-5D66089CD6AD}.Debug|x64.Build.0 = Debug|Any CPU
{09FFBC53-3EFF-45C4-9822-5D66089CD6AD}.Debug|x86.ActiveCfg = Debug|Any CPU
{09FFBC53-3EFF-45C4-9822-5D66089CD6AD}.Debug|x86.Build.0 = Debug|Any CPU
{09FFBC53-3EFF-45C4-9822-5D66089CD6AD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{09FFBC53-3EFF-45C4-9822-5D66089CD6AD}.Release|Any CPU.Build.0 = Release|Any CPU
{09FFBC53-3EFF-45C4-9822-5D66089CD6AD}.Release|x64.ActiveCfg = Release|Any CPU
{09FFBC53-3EFF-45C4-9822-5D66089CD6AD}.Release|x64.Build.0 = Release|Any CPU
{09FFBC53-3EFF-45C4-9822-5D66089CD6AD}.Release|x86.ActiveCfg = Release|Any CPU
{09FFBC53-3EFF-45C4-9822-5D66089CD6AD}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down Expand Up @@ -8019,7 +8035,6 @@ Global
{3957A90B-1DB9-4AA0-A8B8-E7B0B42B0101} = {3D330C1E-D773-4BA8-9E91-123544B0D672}
{529AB96D-853D-41B4-ABE6-D0DED4A50DFD} = {DCBBDB52-4A49-4141-8F4D-81C0FFFB7BD5}
{402C3AC9-1B1D-4523-AB80-A992CEA85F57} = {225AEDCF-7162-4A86-AC74-06B84660B379}
{C86D97EF-301F-464B-A6B8-DA75BB0DBECE} = {BFDD5ACE-A1F0-4C33-8DA1-06CB5CA53177}
{66ADF274-B5C4-4D0A-91D9-F7FB76ADBF85} = {AA465A56-D9D0-4684-95B0-192F4436C582}
{EB5E294B-9ED5-43BF-AFA9-1CD2327F3DC1} = {627BE8B3-59E6-4F1D-8C9C-76B804D41724}
{4DDE5F1F-B014-4096-9F8B-E5F2C96DF997} = {EB5E294B-9ED5-43BF-AFA9-1CD2327F3DC1}
Expand Down Expand Up @@ -8529,6 +8544,9 @@ Global
{AAB50C64-39AA-4AED-8E9C-50D68E7751AD} = {7F99E967-3DC1-4198-9D55-47CD9471D0B6}
{9647D8B7-4616-4E05-B258-BAD5CAEEDD38} = {EB5E294B-9ED5-43BF-AFA9-1CD2327F3DC1}
{E3DAEBD3-CD36-493F-877F-460E8FFEAC52} = {EE9D0952-6060-4723-B329-94A2950A6762}
{17F28812-983E-4415-A55D-842DD7EC6887} = {627BE8B3-59E6-4F1D-8C9C-76B804D41724}
{A07D3B13-388B-444F-9E37-DDC0787C4690} = {17F28812-983E-4415-A55D-842DD7EC6887}
{09FFBC53-3EFF-45C4-9822-5D66089CD6AD} = {17F28812-983E-4415-A55D-842DD7EC6887}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {3E8720B3-DBDD-498C-B383-2CC32A054E8F}
Expand Down
1 change: 1 addition & 0 deletions eng/ProjectReferences.props
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<ProjectReferenceProvider Include="Microsoft.AspNetCore.Hosting.WindowsServices" ProjectPath="$(RepoRoot)src\Hosting\WindowsServices\src\Microsoft.AspNetCore.Hosting.WindowsServices.csproj" />
<ProjectReferenceProvider Include="Microsoft.AspNetCore.Authentication.Abstractions" ProjectPath="$(RepoRoot)src\Http\Authentication.Abstractions\src\Microsoft.AspNetCore.Authentication.Abstractions.csproj" />
<ProjectReferenceProvider Include="Microsoft.AspNetCore.Authentication.Core" ProjectPath="$(RepoRoot)src\Http\Authentication.Core\src\Microsoft.AspNetCore.Authentication.Core.csproj" />
<ProjectReferenceProvider Include="Microsoft.Extensions.Features" ProjectPath="$(RepoRoot)src\Http\Features\src\Microsoft.Extensions.Features.csproj" />
<ProjectReferenceProvider Include="Microsoft.Net.Http.Headers" ProjectPath="$(RepoRoot)src\Http\Headers\src\Microsoft.Net.Http.Headers.csproj" />
<ProjectReferenceProvider Include="Microsoft.AspNetCore.Http.Abstractions" ProjectPath="$(RepoRoot)src\Http\Http.Abstractions\src\Microsoft.AspNetCore.Http.Abstractions.csproj" />
<ProjectReferenceProvider Include="Microsoft.AspNetCore.Http.Extensions" ProjectPath="$(RepoRoot)src\Http\Http.Extensions\src\Microsoft.AspNetCore.Http.Extensions.csproj" />
Expand Down
3 changes: 2 additions & 1 deletion eng/SharedFramework.Local.props
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<AspNetCoreAppReferenceAndPackage Include="Microsoft.AspNetCore.Cryptography.KeyDerivation" />
<AspNetCoreAppReferenceAndPackage Include="Microsoft.AspNetCore.DataProtection" />
<AspNetCoreAppReferenceAndPackage Include="Microsoft.AspNetCore.DataProtection.Extensions" />
<AspNetCoreAppReferenceAndPackage Include="Microsoft.AspNetCore.Http.Features" />
<AspNetCoreAppReferenceAndPackage Include="Microsoft.Extensions.Features" />
<AspNetCoreAppReferenceAndPackage Include="Microsoft.AspNetCore.Metadata" />
<AspNetCoreAppReferenceAndPackage Include="Microsoft.Extensions.Identity.Core" />
<AspNetCoreAppReferenceAndPackage Include="Microsoft.Extensions.Identity.Stores" />
Expand Down Expand Up @@ -47,6 +47,7 @@
<AspNetCoreAppReference Include="Microsoft.Net.Http.Headers" />
<AspNetCoreAppReference Include="Microsoft.AspNetCore.Http.Abstractions" />
<AspNetCoreAppReference Include="Microsoft.AspNetCore.Http.Extensions" />
<AspNetCoreAppReference Include="Microsoft.AspNetCore.Http.Features" />
<AspNetCoreAppReference Include="Microsoft.AspNetCore.Http" />
<AspNetCoreAppReference Include="Microsoft.AspNetCore.Routing.Abstractions" />
<AspNetCoreAppReference Include="Microsoft.AspNetCore.Routing" />
Expand Down
2 changes: 2 additions & 0 deletions src/Framework/test/TestData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ static TestData()
"Microsoft.Extensions.FileProviders.Embedded",
"Microsoft.Extensions.FileProviders.Physical",
"Microsoft.Extensions.FileSystemGlobbing",
"Microsoft.Extensions.Features",
"Microsoft.Extensions.Hosting",
"Microsoft.Extensions.Hosting.Abstractions",
"Microsoft.Extensions.Http",
Expand Down Expand Up @@ -249,6 +250,7 @@ static TestData()
{ "Microsoft.Extensions.FileProviders.Embedded", "6.0.0.0" },
{ "Microsoft.Extensions.FileProviders.Physical", "6.0.0.0" },
{ "Microsoft.Extensions.FileSystemGlobbing", "6.0.0.0" },
{ "Microsoft.Extensions.Features", "6.0.0.0" },
{ "Microsoft.Extensions.Hosting", "6.0.0.0" },
{ "Microsoft.Extensions.Hosting.Abstractions", "6.0.0.0" },
{ "Microsoft.Extensions.Http", "6.0.0.0" },
Expand Down
18 changes: 18 additions & 0 deletions src/Http/Features/src/Microsoft.Extensions.Features.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Description>Provides abstractions for a loosly coupled collection of features.

Commonly Used Types:
Microsoft.AspNetCore.Http.Features.IFeatureCollection
Microsoft.AspNetCore.Http.Features.FeatureCollection
</Description>
<TargetFrameworks>$(DefaultNetFxTargetFramework);netstandard2.0;$(DefaultNetCoreTargetFramework)</TargetFrameworks>
<TargetFrameworks Condition="'$(DotNetBuildFromSource)' == 'true'">$(DefaultNetCoreTargetFramework)</TargetFrameworks>
<IsAspNetCoreApp>true</IsAspNetCoreApp>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<PackageTags>aspnetcore</PackageTags>
<Nullable>enable</Nullable>
</PropertyGroup>

</Project>
2 changes: 2 additions & 0 deletions src/Http/Features/src/PublicAPI.Shipped.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#nullable enable
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should PublicAPI.Shipped.txt be changing?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why? Nothing has shipped yet in this assembly. Did you think this was src/Http/Http.Features/? I wonder if we should rename the folders. That tripped me up earlier in the review too.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well CodeCheck agrees with you. I guess it doesn't like the file at all even if empty. Still think the folder names are confusing.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JunTaoLuo? This is a new assembly and the tools failed if it didn't have this file.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why? Nothing has shipped yet in this assembly.

That's why I was asking why it was changing

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note Code Check is complaining about different files because they were deleted:

error : Modified API baseline files:
error : src/Http/Http.Features/src/PublicAPI/net6.0/PublicAPI.Shipped.txt
error : src/Http/Http.Features/src/PublicAPI/netstandard2.0/PublicAPI.Shipped.txt

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once you get the CI to green ignoring the Code Check job, let @dotnet/aspnet-build know and we'll override the required checks to squishy-merge your change.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From build perspective, the changes here make sense and simplify our PublicAPI files.


32 changes: 32 additions & 0 deletions src/Http/Features/src/PublicAPI.Unshipped.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#nullable enable
Microsoft.AspNetCore.Http.Features.FeatureCollection
Microsoft.AspNetCore.Http.Features.FeatureCollection.FeatureCollection() -> void
Microsoft.AspNetCore.Http.Features.FeatureCollection.FeatureCollection(Microsoft.AspNetCore.Http.Features.IFeatureCollection! defaults) -> void
Microsoft.AspNetCore.Http.Features.FeatureCollection.Get<TFeature>() -> TFeature?
Microsoft.AspNetCore.Http.Features.FeatureCollection.GetEnumerator() -> System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<System.Type!, object!>>!
Microsoft.AspNetCore.Http.Features.FeatureCollection.IsReadOnly.get -> bool
Microsoft.AspNetCore.Http.Features.FeatureCollection.Set<TFeature>(TFeature? instance) -> void
Microsoft.AspNetCore.Http.Features.FeatureCollection.this[System.Type! key].get -> object?
Microsoft.AspNetCore.Http.Features.FeatureCollection.this[System.Type! key].set -> void
Microsoft.AspNetCore.Http.Features.FeatureReference<T>
Microsoft.AspNetCore.Http.Features.FeatureReference<T>.Fetch(Microsoft.AspNetCore.Http.Features.IFeatureCollection! features) -> T?
Microsoft.AspNetCore.Http.Features.FeatureReference<T>.Update(Microsoft.AspNetCore.Http.Features.IFeatureCollection! features, T feature) -> T
Microsoft.AspNetCore.Http.Features.FeatureReferences<TCache>
Microsoft.AspNetCore.Http.Features.FeatureReferences<TCache>.Cache -> TCache?
Microsoft.AspNetCore.Http.Features.FeatureReferences<TCache>.Collection.get -> Microsoft.AspNetCore.Http.Features.IFeatureCollection!
Microsoft.AspNetCore.Http.Features.FeatureReferences<TCache>.FeatureReferences(Microsoft.AspNetCore.Http.Features.IFeatureCollection! collection) -> void
Microsoft.AspNetCore.Http.Features.FeatureReferences<TCache>.Fetch<TFeature, TState>(ref TFeature? cached, TState state, System.Func<TState, TFeature?>! factory) -> TFeature?
Microsoft.AspNetCore.Http.Features.FeatureReferences<TCache>.Fetch<TFeature>(ref TFeature? cached, System.Func<Microsoft.AspNetCore.Http.Features.IFeatureCollection!, TFeature?>! factory) -> TFeature?
Microsoft.AspNetCore.Http.Features.FeatureReferences<TCache>.Initalize(Microsoft.AspNetCore.Http.Features.IFeatureCollection! collection) -> void
Microsoft.AspNetCore.Http.Features.FeatureReferences<TCache>.Initalize(Microsoft.AspNetCore.Http.Features.IFeatureCollection! collection, int revision) -> void
Microsoft.AspNetCore.Http.Features.FeatureReferences<TCache>.Revision.get -> int
Microsoft.AspNetCore.Http.Features.IFeatureCollection
Microsoft.AspNetCore.Http.Features.IFeatureCollection.Get<TFeature>() -> TFeature?
Microsoft.AspNetCore.Http.Features.IFeatureCollection.IsReadOnly.get -> bool
Microsoft.AspNetCore.Http.Features.IFeatureCollection.Revision.get -> int
Microsoft.AspNetCore.Http.Features.IFeatureCollection.Set<TFeature>(TFeature? instance) -> void
Microsoft.AspNetCore.Http.Features.IFeatureCollection.this[System.Type! key].get -> object?
Microsoft.AspNetCore.Http.Features.IFeatureCollection.this[System.Type! key].set -> void
Microsoft.AspNetCore.Http.Features.FeatureCollection.FeatureCollection(int initialCapacity) -> void
static readonly Microsoft.AspNetCore.Http.Features.FeatureReference<T>.Default -> Microsoft.AspNetCore.Http.Features.FeatureReference<T>
virtual Microsoft.AspNetCore.Http.Features.FeatureCollection.Revision.get -> int
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</PropertyGroup>

<ItemGroup>
<Reference Include="Microsoft.AspNetCore.Http.Features" />
<Reference Include="Microsoft.Extensions.Features" />
</ItemGroup>

</Project>
4 changes: 0 additions & 4 deletions src/Http/Http.Features/src/IResponseCookies.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

#if NET6_0_OR_GREATER
using System;
using System.Collections.Generic;
#endif

namespace Microsoft.AspNetCore.Http
{
Expand All @@ -28,7 +26,6 @@ public interface IResponseCookies
/// <param name="options"><see cref="CookieOptions"/> included in the new cookie setting.</param>
void Append(string key, string value, CookieOptions options);

#if NET6_0_OR_GREATER
/// <summary>
/// Add elements of specified collection as cookies.
/// </summary>
Expand All @@ -41,7 +38,6 @@ void Append(ReadOnlySpan<KeyValuePair<string, string>> keyValuePairs, CookieOpti
Append(keyValuePair.Key, keyValuePair.Value, options);
}
}
#endif

/// <summary>
/// Sets an expired cookie.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Description>ASP.NET Core HTTP feature interface definitions.</Description>
<TargetFrameworks>$(DefaultNetFxTargetFramework);netstandard2.0;$(DefaultNetCoreTargetFramework)</TargetFrameworks>
<TargetFrameworks Condition="'$(DotNetBuildFromSource)' == 'true'">$(DefaultNetCoreTargetFramework)</TargetFrameworks>
<TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
<IsAspNetCoreApp>true</IsAspNetCoreApp>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<PackageTags>aspnetcore</PackageTags>
<IsPackable>false</IsPackable>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<Reference Include="Microsoft.Extensions.Features" />
<Reference Include="Microsoft.Extensions.Primitives" />
<Reference Include="System.IO.Pipelines" />
</ItemGroup>

<ItemGroup>
<AdditionalFiles Include="PublicAPI/$(TargetFramework)/PublicAPI.Shipped.txt" />
<AdditionalFiles Include="PublicAPI/$(TargetFramework)/PublicAPI.Unshipped.txt" />
</ItemGroup>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍


</Project>
10 changes: 10 additions & 0 deletions src/Http/Http.Features/src/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

using System.Runtime.CompilerServices;
using Microsoft.AspNetCore.Http.Features;

[assembly: TypeForwardedTo(typeof(IFeatureCollection))]
[assembly: TypeForwardedTo(typeof(FeatureCollection))]
[assembly: TypeForwardedTo(typeof(FeatureReference<>))]
[assembly: TypeForwardedTo(typeof(FeatureReferences<>))]
Loading