Go to file
Ryan Nowak 9ee946073a Add support for best-effort link-generation
This change adds a feature needed for aspnet/Mvc#302

There's a new option in routing that allows link-generation to proceed
when the route values cannot be validated. The key scenario for this is
during development of an MVC site. Routing will refuse to generate a link
to actions which don't exists, this is a breaking change from the MVC5
behavior. Setting UseBestEffortLinkGeneration will allow routing to return
a value even when we can't match the action.

This option will remain off by default - setting this to on will impact
link-generation in a bunch of scenarios involving areas where we've
improved the logic for MVC6. If you're considering leaving this on outside
of development scenarios, then make sure to be as explicit with route values
as possible (don't rely on ambient values).

Functional tests to follow up in the MVC repo.
2015-02-11 14:38:30 -08:00
samples/RoutingSample.Web Quick cleanup 2015-01-30 10:02:58 -08:00
src/Microsoft.AspNet.Routing Add support for best-effort link-generation 2015-02-11 14:38:30 -08:00
test/Microsoft.AspNet.Routing.Tests Add support for best-effort link-generation 2015-02-11 14:38:30 -08:00
.gitattributes
.gitignore Quick cleanup 2015-01-30 10:02:58 -08:00
CONTRIBUTING.md
LICENSE.txt
NuGet.Config
README.md
Routing.sln
Settings.StyleCop
build.cmd
build.sh
global.json
makefile.shade

README.md

ASP.NET Routing

Contains routing middleware for routing requests to application logic.

This project is part of ASP.NET vNext. You can find samples, documentation and getting started instructions for ASP.NET vNext at the Home repo.