-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProgram.cs
32 lines (22 loc) · 886 Bytes
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using System;
using System.Reflection;
using System.Runtime.Loader;
namespace ControllerActionReporter
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Controller/Action exporter (Net Core 3.1).");
Console.WriteLine("Enter the path to the assembly (DLL) to inspect:");
var assemblyPath = Console.ReadLine();
Console.WriteLine("Enter directory for CSV export:");
var exportDirectory = Console.ReadLine();
Assembly asm = Assembly.LoadFrom(assemblyPath);
var info = ControllerInfoHelper.GetControllerInfoFromAssembly(asm);
var filename = $"{exportDirectory}\\{asm.GetName().Name}_controllerinfo.csv";
ControllerInfoHelper.ExportControllerInfo(info, filename);
Console.WriteLine("Finished.");
}
}
}