Added FormUrlEncodedMediaTypeFormatter to .NetStandard version of System.Net.Http.Formatting#76
Added FormUrlEncodedMediaTypeFormatter to .NetStandard version of System.Net.Http.Formatting#76YakhontovYaroslav wants to merge 2 commits intoaspnet:masterfrom
Conversation
…tem.Net.Http.Formatting
|
@YakhontovYaroslav, |
|
@dougbu it seems reasonable to have the same set of types across all the different TFMs of this one package. Are there any other types that don't appear in all the TFMs of this package? |
However, the client assemblies contain a strict subset of what's in the .NET Framework assembly. I believe the original intent was to support only what we call output formatters in ASP.NET Core MVC. In any case, the
The
The client assemblies don't provide either |
dougbu
left a comment
There was a problem hiding this comment.
Also, remove the #if !NETFX_CORE that's here and move typeof(FormDataCollection).IsAssignableFrom(type) || out of the conditional block here.
- make similar changes to
MediaTypeFormatterCollectionTestsandHttpTestDatato make references toFormUrlEncodedMediaTypeFormatterunconditional.
I'm on the fence about HttpContentFormDataExtensions. Please try out adding that and HttpContentFormDataExtensionsTests), then build. Let us know how it goes
| </Compile> | ||
| <Compile Include="..\System.Net.Http.Formatting\Formatting\FormUrlEncodedMediaTypeFormatter.cs"> | ||
| <Link>Formatting\FormUrlEncodedMediaTypeFormatter.cs</Link> | ||
| </Compile> |
There was a problem hiding this comment.
@YakhontovYaroslav please edit the System.Net.Http.Formatting.NetCore.csproj file and add the same link. Then, confirm everything builds from the command line. (I suspect problems building in VS 2017 will go away as I complete work on the infrastructure.)
There was a problem hiding this comment.
Add similar links for FormUrlEncodedMediaTypeFormatterTests in the test projects. That may require building DerivedFormUrlEncodedMediaTypeFormatter too.
|
I have managed to build both projects locally. It seems that msbuild \t:restore is not working with .NetCore(PCL) projects, but NuGet 4.3.0 restore is ok. But i still have issues running tests: xUnit.NET runner reports 0 tests found for some reason. Thanks for your guidelines, i have added all stuff related to FormData back with last commit, but now we have 1 failing test: ReadAsFormDataAsync_HandlesFormData. |
|
@YakhontovYaroslav thanks for the update! @dougbu do you think you could take it from here? |
👍 |
|
Thanks guys, looking forward for 5.2.4 release. |
No description provided.