Skip to content

NhatTanVu/RazorCodeSearcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Razor Code Searcher

List out all inline code in all Razor views within C# solution.

How to use

  1. Go to Program.cs and change these lines:
private const string SEARCH_PATH = @"C:\search\path";
private const string OUTPUT_FOLDER_PATH = @"C:\output\path";
...
private const string REMAINING_OUTPUT_FILE = "remaining_code_in_views.txt";
...
OutputSolutions = new List<Solution>()
{
   new Solution {
      Name ="Solution 1", SolutionFilePath=@"C:\path\to\solution1.sln", 
      OutputFilePath = "solution1_code_in_views.txt", IncludedFolderPaths = new List<string>{}
   },
   new Solution {
      Name ="Solution 2", SolutionFilePath=@"C:\path\to\solution2.sln", 
      OutputFilePath = "solution2_code_in_views.txt", IncludedFolderPaths = new List<string>{}
   }
};
  1. Run it.

About

Search inline code in Razor views

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages