You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a new ASP.NET Core 2.1 MVC project and named the project ASPNETCoreMVC.Features.Web.
I added <PackageReference Include="OdeToCode.AddFeatureFolders" Version="2.0.1" /> to my .csproj.
When I run the app it says
An unhandled exception occurred while processing the request.
InvalidOperationException: The view 'Index' was not found. The following locations were searched:
Features\Web\Features\Home\Index.cshtml
Features\Shared\Index.cshtml
\Features\Index\Home.cshtml
In this case I'd need to change FeatureFolderOptions.FeatureFolderName to something other than Features because
I created a new ASP.NET Core 2.1 MVC project and named the project
ASPNETCoreMVC.Features.Web
.I added
<PackageReference Include="OdeToCode.AddFeatureFolders" Version="2.0.1" />
to my.csproj
.When I run the app it says
In this case I'd need to change
FeatureFolderOptions.FeatureFolderName
to something other thanFeatures
becauseis going to stop too early and create the wrong folder path.
Here is an ugly solution
But maybe the best thing to do is add a disclaimer to the
README.md
that your feature folder name cannot be in the project namespace?The text was updated successfully, but these errors were encountered: