Repository navigation
RouteCheck 0.3.0
dotnet tool update --global RouteCheck --version 0.3.0Enhancements
- RouteCheck now reports ambiguous routes: routes with the same method that match the same requests, e.g.
GET /pets/{id}andGET /pets/{name}, which fail at runtime with anAmbiguousMatchException. They are listed below the routes, and asproblemsin--output json/markdown. - New
--strictoption to exit with code2if there are problems with the routes, e.g. in CI jobs. - New Auth column (and
authin--output json/markdown): who may request the route, e.g.Anonymous,Authenticated,Policy: AdminorRoles: admin, editor. It includes the fallback policy and global MVCAuthorizeFilters, and is left out if anyone may request every route. - New
--anonymousoption to show only the routes anyone may request. - New
--verboseoption to show more about each route: its name, tags, accepted content types and responses. - New
-e|--environmentoption to run the web app in another environment thanDevelopment, e.g.-e Staging. It wins over the launch profile. - New
-c|--configurationoption to build and run another configuration thanDebug, e.g.-c Release. - New
--launch-profileoption to run the web app with a launch profile oflaunchSettings.json. - New
--no-buildoption to skip the build, e.g. in CI jobs that built the app already. - New
--handleroption to show only routes whose handler contains the given text or matches a wildcard pattern, e.g.--handler "OrdersController.*". - New
-x|--excludeoption to leave out routes whose path contains the given text or matches a wildcard pattern, e.g.-x "/_framework/*". - New
--baselineoption to compare the routes with a document written earlier with--output json, showing the added, removed and changed routes. With--strict, removed routes exit with code2. - F# (
*.fsproj) and Visual Basic (*.vbproj) projects are supported. Lambdas in F# are shown asProgram (lambda)too. - RouteCheck can be run from a directory with a solution (
*.slnor*.slnx), e.g. the root of a repository, and--pathcan be a solution. It uses the solution's web project. - Unexpected errors, e.g. when
dotnetis not on the PATH, are reported like other errors, so--output json/markdownalways print a document.
Bug fixes
- Hosted services of the web app, e.g. a
BackgroundServiceconsuming a queue or sending emails, are no longer started. Before, they ran and did their work while RouteCheck read the routes.
Commits: v0.2.2...v0.3.0