I'd like to handle my web application references using NuGet. Which NuGet package contains System.Web.Routing?
Asked
Active
Viewed 1.3k times
1 Answers
11
It's not in a NuGet package. It's in System.Web
assembly, part of the .NET Framework. You can tell by looking at the assembly of the Route Class on MSDN.

mason
- 31,774
- 10
- 77
- 121
-
So, is there any way to add the reference using NuGet? That is, I can use References > Right Click > Add Reference, but I'd like to use NuGet for all the references. Is this possible? Is it even a good idea? – Shaun Luttin Apr 09 '15 at 17:01
-
@ShaunLuttin No, not in the current version of ASP.NET it's not possible. However, in ASP.NET 5 (vNext) and .NET Core (it's already in preview and you're free to play with it, full release is supposed to happen in the summer) there will be no `System.Web` assembly, and you can add just about everything via NuGet packages, and view [the source](https://github.com/aspnet/Routing) (and contribute via pull requests!). – mason Apr 09 '15 at 17:03
-
Good to know. I like that, because they we can make sure our web applications are very portable. NuGet can add the references, so that we keep the path's of the references consistently in the `MyApp\packages` directory. – Shaun Luttin Apr 09 '15 at 17:06
-
Interestingly, in my whole project, `System.Web` is the only assembly that I cannot add with NuGet. – Shaun Luttin Apr 09 '15 at 17:07
-
@ShaunLuttin I'm not too surprised. It's a giant monolithic assembly. With the new changes coming, it's been split out into separate assemblies which can be referenced and updated separately. You are free to start playing with ASP.NET 5, but keep in mind that it's still in development and not everything has been implemented yet. – mason Apr 09 '15 at 17:09
-
2Can anyone shed light on where to find the reference these days? I can't find it in NuGet or in the "Add References" search panel anywhere. Thanks – Yafim Simanovsky Nov 14 '20 at 07:05