Skip to content
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

Source code for Microsoft.AspNet.WebApi.Client #7460

Closed
poke opened this issue Feb 11, 2019 · 10 comments
Closed

Source code for Microsoft.AspNet.WebApi.Client #7460

poke opened this issue Feb 11, 2019 · 10 comments

Comments

@poke
Copy link
Contributor

poke commented Feb 11, 2019

Microsoft.AspNet.WebApi.Client is a dependency of ASP.NET Core and also included in the meta package. But I haven’t been able to find any source for this.

The NuGet package information lists the AspNetWebStack repo as its source repository but the WebApi.Client does not appear to be in there.

Is there any source available for this package?

@poke
Copy link
Contributor Author

poke commented Feb 11, 2019

Okay, do I get this right that Microsoft.AspNet.WebApi.Client is just a terrible package name for System.Net.Http.Formatting?

@muratg
Copy link
Contributor

muratg commented Feb 11, 2019

cc @danroth27 @Eilon

@danroth27
Copy link
Member

Yup, that's correct. The code is in the https://github.com/aspnet/aspnetwebstack repo under System.Net.Http.Formatting.

@davidfowl
Copy link
Member

@poke
Copy link
Contributor Author

poke commented Feb 11, 2019

Thanks for the clarification everyone!

Is there a reason why this cannot be properly delivered through the System.Net.Http.Formatting NuGet package? That package is unlisted and says that’s it’s just legacy and the WebApi.Client package should be used instead now—but to me, it actually seems like the WebApi.Client package is the legacy one now.

@danroth27
Copy link
Member

The https://www.nuget.org/packages/Microsoft.AspNet.WebApi.Client/ package is not legacy. The naming of the package was deliberate so that it would be easier to find for folks looking for something to help with client scenarios.

@poke
Copy link
Contributor Author

poke commented Feb 13, 2019

@danroth27 Thanks for the response, however I do think that the name is particularly confusing. A common practice is to name NuGet packages the same way as the contained assembly, or at least very similar. This has the benefit that you immediately know what namespaces you need to look for when consuming the package.

Since this package only contains System.Net.Http.Formatting.dll and everything is inside of the System.Net.Http namespace, the usage of the package is very unclear. I also think that people looking for client libraries are likely to be put off by the “AspNet“ name instead of an “AspNetCore”, even though the library contains nothing even remotely related to ASP.NET.

I think it would help if the NuGet package description at least made this very clear, explaining what is actually contained.

@IanKemp
Copy link

IanKemp commented Aug 8, 2019

Apart from the weirdness that @poke has already mentioned, why does the source for this package (which is required by ASP.NET Core) live in the AspNetStack repo (which is ostensibly only for non-Core stuff)?

The fact that this stuff isn't part of ASP.NET core also makes for some gaps around documentation. For example, if you go to https://docs.microsoft.com/en-us/dotnet/api/system.net.http on either Framework or Core, classes that are shipped in Microsoft.AspNet.WebApi.Client - e.g. PushStreamContent - aren't listed, and indeed searching docs.microsoft.com for PushStreamContent yields nothing. But if you F1 on that class name in Visual Studio, you're taken to https://docs.microsoft.com/en-us/previous-versions/aspnet/hh995250(v=vs.118) which was last updated in 2015 ...

@danroth27
Copy link
Member

why does the source for this package (which is required by ASP.NET Core) live in the AspNetStack repo (which is ostensibly only for non-Core stuff)?

Because it depends on pieces of ASP.NET Web API.

The fact that this stuff isn't part of ASP.NET core also makes for some gaps around documentation

We should be able to get those addressed regardless of where the source code lives. Please file an issue on https://github.com/dotnet/docs/issues and we'll see about filling the doc gaps.

@IanKemp
Copy link

IanKemp commented Aug 15, 2019

why does the source for this package (which is required by ASP.NET Core) live in the AspNetStack repo (which is ostensibly only for non-Core stuff)?

Because it depends on pieces of ASP.NET Web API.

My mistake, I was going on @poke's comment:

Microsoft.AspNet.WebApi.Client is a dependency of ASP.NET Core and also included in the meta package.

which is incorrect (as of this writing) - only the Microsoft.AspNetCore.App metapackage depends on Microsoft.AspNet.WebApi.Client as well as ASP.NET core itself, and indeed Microsoft.AspNet.WebApi.Client is versioned in line with AspNetStack (MVC 5).

I also see that 3.0 will drop this library (announcement), which likely means that documentation updates aren't necessary.

@dotnet dotnet locked as resolved and limited conversation to collaborators Dec 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants
@davidfowl @poke @IanKemp @muratg @danroth27 and others