Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Consume new Microsoft.AspNet.WebApi.Client.5.2.4 package #5822

Closed
dougbu opened this issue Feb 17, 2017 · 54 comments
Closed

Consume new Microsoft.AspNet.WebApi.Client.5.2.4 package #5822

dougbu opened this issue Feb 17, 2017 · 54 comments
Assignees

Comments

@dougbu
Copy link
Member

dougbu commented Feb 17, 2017

Our Microsoft.AspNetCore.Mvc.WebApiCompatShim package currently has an indirect dependency on the Microsoft.Net.Http package. Building the shim project requires imports when targeting .NET Standard for the same reason. Both issues could be avoided if we moved to the latest Microsoft.AspNet.WebApi.Client package.

See also

@Eilon Eilon added this to the 2.0.0 milestone Feb 17, 2017
@Eilon
Copy link
Member

Eilon commented Feb 17, 2017

This is approved, but let's figure out the plan to actually ship the 5.2.4 wave of packages.

@dougbu
Copy link
Member Author

dougbu commented Feb 17, 2017

Should I go ahead with this in the meantime i.e. with the nightly ASP.NET feed in MVC's NuGet.config?

@Eilon
Copy link
Member

Eilon commented Feb 18, 2017

We should talk about how to do the release and see if we can just do that.

@dougbu
Copy link
Member Author

dougbu commented Feb 25, 2017

Side note: Fix here should include removing the last couple of $(PackageTargetFallback) aka "imports" from the MVC repo.

@Tornhoof
Copy link

Any plans for a public aspnet/AspNetWebStack?
Just asking as aspnet/AspNetKatana ist already public and some issues in aspnet link the private repo

@dougbu
Copy link
Member Author

dougbu commented Feb 25, 2017

The first priority is to publish 3.2.4 / 5.2.4 packages from aspnet/AspNetWebStack or at least the Microsoft.AspNet.WebApi.Client.5.2.4 package on NuGet. But, yes, work to make that repo public is in progress.

@JunTaoLuo
Copy link
Contributor

@Eilon were we going to remove this package? Is there an issue tracking that?

@Eilon
Copy link
Member

Eilon commented Apr 4, 2017

Oops forgot to log an issue. I'll start a thread first. I'll actually go do that now.

@Eilon Eilon modified the milestones: 2.0.0-preview1, 2.0.0-preview2 Apr 19, 2017
@Eilon Eilon modified the milestones: 2.0.0-preview3, 2.0.0-preview2 May 15, 2017
@vanillajonathan
Copy link

@dougbu How is Microsoft.AspNet.WebApi.Client 5.2.4 coming along?

I would really like to see it on NuGet.

@dougbu
Copy link
Member Author

dougbu commented May 16, 2017

@vanillajonathan the 5.2.4 package release is not yet available on NuGet. We've been consumed with 2.0.0-preview1 items and this is slated for 2.0.0-preview3.

@smarts
Copy link

smarts commented May 16, 2017

@dougbu is 2.0.0-preview3 something we can expect in 2017?

@dougbu
Copy link
Member Author

dougbu commented May 16, 2017

@smarts
Copy link

smarts commented May 16, 2017

thanks @dougbu

@vanillajonathan
Copy link

It would be really nice with a small intermediate NuGet release of Microsoft.AspNet.WebApi.Client with just support for netstandard asap so we can write against APIs on .NET Core using PostAsJsonAsync.

@dougbu
Copy link
Member Author

dougbu commented May 26, 2017

@anurse please remind me what additional change needs to happen in aspnet/AspNetWebStack for the Microsoft.AspNet.WebApi.Client.5.2.4 package to work in the new .NET 4.6.1 world. Was it just the one item?

  • add a .NET 4.6.1-specific <FrameworkReference>mscorlib</FrameworkReference>

@analogrelay
Copy link
Contributor

That should do it. The goal is to ensure that there is a Framework Assembly Reference to mscorlib in the .NETFramework, Version=4.6.1 target framework in the final NuSpec, in order to suppress the System.Net.Http one that appears in the 4.5.1 target.

@Eilon Eilon modified the milestones: 2.1.0, 2.0.0 Jun 14, 2017
@aliostad
Copy link

According to this, yes. It will be all fixed in the next few hours, apparently.

@dscarmoz
Copy link

What is the ETA on 5.2.4? Having the same issue Vinhaman stated 8/21 --- I've tried to update my project to .net core 2.0 and i'm having some issues with the 5.2.3 (it builds but fails on execution due to dependencies of System.Net.Http.Primitives ...)

@Vinhaman
Copy link

Hi @dscarmoz
My workaround for this and many other problems was to change the target framework in all my projects to framework 4.6.1 (everything .net core 2 still works just fine).
Took me a few days to change everything we had but now is running smooth

@dscarmoz
Copy link

I don't think that will work for me. I'm running on a linux stack in PCF and the available buildpacks do not support it.

dougbu added a commit that referenced this issue Jan 5, 2018
- #5822
- update `Microsoft.AspNet.WebApi.Client` package version
- remove remaining few `$(PackageTargetFallback)` settings
- remove .NET Standard-specific files
  - they duplicate what Microsoft.AspNet.WebApi.Client now provides
  - necessary only if cross-compiling a PCL version of the WebApiCompatShim
  - add type forwarding for the removed `public` types
- reenable .NET Framework WebApiCompatShim tests
- add breaking change record for `MediaTypeFormatterMatchRanking` value change
  - version of this type in the shim lacked the `MatchOnRequestWithMediaTypeMapping` value
dougbu added a commit to aspnet/Universe that referenced this issue Jan 6, 2018
dougbu added a commit to aspnet/HttpClientFactory that referenced this issue Jan 6, 2018
- aspnet/Mvc#5822
- see also PR aspnet/Mvc#7200 and aspnet/Universe#756
- remove remaining few `$(PackageTargetFallback)` settings
dougbu added a commit to aspnet/Universe that referenced this issue Jan 6, 2018
dougbu added a commit that referenced this issue Jan 6, 2018
- #5822
- update `Microsoft.AspNet.WebApi.Client` package version
- remove remaining few `$(PackageTargetFallback)` settings
- remove .NET Standard-specific files
  - they duplicate what Microsoft.AspNet.WebApi.Client now provides
  - necessary only if cross-compiling a PCL version of the WebApiCompatShim
  - add type forwarding for the removed `public` types
- reenable .NET Framework WebApiCompatShim tests
- add breaking change record for `MediaTypeFormatterMatchRanking` value change
  - version of this type in the shim lacked the `MatchOnRequestWithMediaTypeMapping` value
@dougbu
Copy link
Member Author

dougbu commented Jan 6, 2018

@dougbu dougbu closed this as completed Jan 6, 2018
@Eilon
Copy link
Member

Eilon commented Jan 8, 2018

@dougbu should we log another bug to update to 5.2.4 RTM? Though it's not likely we'll forget to do that, it's good to have an item tracking stuff we know we have to do.

@dougbu
Copy link
Member Author

dougbu commented Jan 8, 2018

Well, if you weren't OOF, I would have asked you just that 😺 I'll file one…

The other thing I would have asked an in-person @Eilon: bab520f requires users to remove a previously-required <PackageTargetFallback> element or similar "must use PCL assembly" workaround from their projects. Should we document that as a full-blown breaking change? (I lean toward marking this bug with the label and adding a few words about the lines that should go but going no further.)

@Eilon
Copy link
Member

Eilon commented Jan 8, 2018

Or leave the bug as-is, but post a breaking-change announcement about it. THat'll be especially helpful for release notes, etc.

@dougbu
Copy link
Member Author

dougbu commented Jan 8, 2018

See #7212 for the follow-on work.

@asjafjell
Copy link

@anurse I have upgraded a .NET4.6 library to .NET 4.6.1 and it is complaining about missingSystem.Net.Http.HttpClientFactory.Create in some tests of mine. Is this something that can be fixed by adding a <FrameworkReference>mscorlib</FrameworkReference> to the Nuspec? Seems a bit odd as this will only affect consumers of my library, not making my tests green.

@dougbu
Copy link
Member Author

dougbu commented Jan 9, 2018

@asjafjell please open a new issue for the problem you're seeing. Also, what is necessary to reproduce the problem and what are the details of the "complaining"?

@asjafjell
Copy link

@dougbu it seems to be automatic binding redirects that was my problem. I did not know that this would be an issue between 4.6.0 and 4.6.1, so by adding

<PropertyGroup>
    <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
    <GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
</PropertyGroup>

as indicated in dotnet/standard#481, the problem was fixed. The complaining, was that the method was missing runtime.

@dougbu
Copy link
Member Author

dougbu commented Jan 10, 2018

New announcement (aspnet/Announcements#286) and discussion (#7229) issues are now live. I couldn't find a major break but the recommendation stands.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests