-
Notifications
You must be signed in to change notification settings - Fork 353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added FormUrlEncodedMediaTypeFormatter to .NetStandard version of System.Net.Http.Formatting #76
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
MediaTypeFormatterCollectionTests
andHttpTestData
to make references toFormUrlEncodedMediaTypeFormatter
unconditional.
I'm on the fence about HttpContentFormDataExtensions
. Please try out adding that and HttpContentFormDataExtensionsTests
), then build. Let us know how it goes
@@ -59,6 +59,9 @@ | |||
<Compile Include="..\System.Net.Http.Formatting\Formatting\FormUrlEncodedJson.cs"> | |||
<Link>Formatting\FormUrlEncodedJson.cs</Link> | |||
</Compile> | |||
<Compile Include="..\System.Net.Http.Formatting\Formatting\FormUrlEncodedMediaTypeFormatter.cs"> | |||
<Link>Formatting\FormUrlEncodedMediaTypeFormatter.cs</Link> | |||
</Compile> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.