Closed ivadim closed 4 years ago
for netstandard2.1 compilation replace IHttpResponseFeature.Body, IHttpBufferingFeature and IHttpSendFileFeature with IHttpResponseBodyFeature
What does that mean?
Does the build produce two distinct targets/packages? #Resolved
Does the build produce two distinct targets/packages?
Yes, it produces 2 dlls: one targeting .netstandard2.0 and another .netstandard2.1. Inside nuget they will be separated into 2 different folders. Nuget structure:
nuget\
|-lib\
-netstandard2.0\
-Microsoft.Azure.Relay.AspNetCore.dll
-netstandard2.1\
-Microsoft.Azure.Relay.AspNetCore.dll
and generated nuspec
<dependencies>
<group targetFramework=".NETStandard2.0">
<dependency id="Microsoft.AspNetCore.Authentication.Core" version="2.1.1" exclude="Build,Analyzers" />
<dependency id="Microsoft.AspNetCore.Hosting" version="2.1.1" exclude="Build,Analyzers" />
<dependency id="Microsoft.Azure.Relay" version="2.0.1" exclude="Build,Analyzers" />
<dependency id="Microsoft.Net.Http.Headers" version="2.1.1" exclude="Build,Analyzers" />
<dependency id="System.Threading.Tasks.Dataflow" version="4.10.0" exclude="Build,Analyzers" />
</group>
<group targetFramework=".NETStandard2.1">
<dependency id="Microsoft.AspNetCore.Authentication.Core" version="2.2.0" exclude="Build,Analyzers" />
<dependency id="Microsoft.AspNetCore.Hosting" version="2.2.7" exclude="Build,Analyzers" />
<dependency id="Microsoft.AspNetCore.Http.Features" version="3.0.0" exclude="Build,Analyzers" />
<dependency id="Microsoft.Azure.Relay" version="2.0.1" exclude="Build,Analyzers" />
<dependency id="Microsoft.Net.Http.Headers" version="2.2.0" exclude="Build,Analyzers" />
<dependency id="System.Threading.Tasks.Dataflow" version="4.10.0" exclude="Build,Analyzers" />
</group>
</dependencies>
User of the lib will get one of them automatically based on the targeted framework
Great. We're chasing a service-side issue that we just stumbled into as we were verifying the PR and will likely just merge it once we're done w/ that investigation. Thank you! #Closed
@clemensv would it be possible to produce an official nuget package to nuget.org after merge?
This PR adds netstandard2.1 and netcoreapp3.0 target frameworks support. Changes:
IHttpResponseFeature.Body
,IHttpBufferingFeature
andIHttpSendFileFeature
withIHttpResponseBodyFeature
RemovedCopyHeaders()
execution because response already wrote content into streamValidation: