T4MVC / R4MVC

R4MVC is a Roslyn code generator for ASP.NET Core MVC apps that creates strongly typed helpers that eliminate the use of literal strings in many places
Apache License 2.0
157 stars 48 forks source link

Not Generated Controller Action in New Visual Studeio Version 17.1.6 #170

Open rbsdotnet opened 2 years ago

rbsdotnet commented 2 years ago

Hi,

When Update Visual Studeio To Version 17.1.6 , Not Generated Any Action in Controllers in the Area.

R4Mvc Generator Tool v1.0.0-alpha2-00395 Using: Visual Studio Enterprise 2022 - 17.1.32421.90

Creating Workspace ... Loading project ... Compiling project ... Detected MVC version: 6.0.0.0

Processing controller SamanArya.UHIS.WebApplication.Areas.Panel.Controllers.DashboardController

Unhandled Exception: System.IndexOutOfRangeException: Index was outside the bounds of the array. at R4Mvc.Tools.Services.ControllerGeneratorService.GetControllerArea(INamedTypeSymbol controllerSymbol) at R4Mvc.Tools.Services.ControllerRewriterService.RewriteControllers(CSharpCompilation compiler) in C:\projects\r4mvc\src\R4Mvc.Tools\Services\ControllerRewriterService.cs:line 58 at R4Mvc.Tools.Commands.GenerateCommand.Runner.<Run>d__9.MoveNext() in C:\projects\r4mvc\src\R4Mvc.Tools\Commands\GenerateCommand.cs:line 112 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at R4Mvc.Tools.Program.<Main>d__0.MoveNext() in C:\projects\r4mvc\src\R4Mvc.Tools\Program.cs:line 52 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at R4Mvc.Tools.Program.<Main>(String[] args)