Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8918639
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:48:27+00:00 2026-06-15T05:48:27+00:00

I am learning .NET MVC and an app I’m building has become rather spaghetti-like.

  • 0

I am learning .NET MVC and an app I’m building has become rather spaghetti-like. In my code I have many actions in different controllers which naturally all produce various views and partialviews. To make matters worse, I have @Html.Action commands which add another layer of confusion. Some of this is left over from the default scaffolding action.

Is there any tool that produces a list of all the possible routes in my site and the views they return?

I’d also like to find all the unused views and actions without views and generally refactor everything properly. Something like this (please don’t comment on this specific example):

Route               Views returned
------------------------------------------
/User/Edit          /User/Edit.cshtml
/Admin/User/Edit    /User/Edit.cshtml
...

Does such a thing exist? Can it be done with a .tt template?

Or perhaps my whole approach is wrong..!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T05:48:29+00:00Added an answer on June 15, 2026 at 5:48 am

    These maybe can help you on your way:

    • Mvc Route Visualizer (Visual Studio Extension)
    • Route Debugger (Also comes as a nuget package)
    • Glimpse

    I haven’t tested the Mvc Route Visualizer, but it seems like it could do what you ask.

    Edit:

    Maybe this works better for you. It won’t show you the views returned, though, it will at least display all controllers and actions:

    1. Add the MvcCodeRouting nuget package to your project.
    2. Go to the method where you register the routes.
    3. After routes.IgnoreRoute("{resource}.axd/{*pathInfo}");, add these lines of code:

      routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
      
      // If you don't have "HomeController", choose another controller you have.
      // MvcCodeRouting will look for all controllers in the same namespace and sub-namespaces as the one specified here.
      routes.MapCodeRoutes(typeof(HomeController), new CodeRoutingSettings
      {
          UseImplicitIdToken = true
      });
      
      // Other, existing, routes here...
      
    4. Build and run the application.

    5. Go to http://yoururl.com/routes.axd to see all created routes, they will contain all actions.
    6. If you have installed Route Debugger, you can see them there to:

      Route Debugger screenshot

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I really like the MVC way and have actually enjoyed learning ASP.NET MVC (I
I have a simple ASP.NET MVC 3 dummy app (just learning MVC coming from
I am learning ASP.NET MVC and many concepts of ASP.NET like authentication, authorization, session
Im learning asp.net mvc and have been investigating jquery and the like. As yet
I am learning ASP.NET MVC now a days and I have found that most
I am learning ASP.NET and would like to know what are the must have
To learn ASP.net I started building a todo web app(web forms not MVC), this
I have an ASP.NET MVC web app whose controllers use WCF to call into
I have been learning ASP.NET MVC in the last few months and I think
I'm learning ASP.NET MVC 3 with Entity Framework Code First. I'm following a tutorial

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.