Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Views folder within the Individual Feature folder #18

Closed
flatproject opened this issue Jul 21, 2017 · 3 comments
Closed

Comments

@flatproject
Copy link

I tried to add a Views folder within my Feature folder but the view cannot be located.

Looking at the source code i understand that it is not currently possible.

What i'm looking for is this setup:

Features -> FeatureFoo -> Views

I'm only asking for it because moving the Account and Manage Views of the default VS MVC template with Individual Auth looks messy.

Please consider it. Thank you.

@OdeToCode
Copy link
Owner

I've done this a few times and you can just drag and drop the views, controllers, and models into feature folders. The harder part is adjusting the namespaces for controllers and models. A tool like Resharper can help there.

@mxmissile
Copy link

I think you can do this with the new Areas update:

var options = new AreaFeatureFolderOptions 
{
   DefaultAreaViewLocation = @"\Features\{1}\Views\{0}.cshtml";
}

@OdeToCode
Copy link
Owner

Good solution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants