Permalink
Browse files

Update README.md

  • Loading branch information...
OdeToCode committed Jul 30, 2018
1 parent 8d82525 commit f11aa2ff962ab8a9b2da35ceb1a76252cc263f31
Showing with 3 additions and 14 deletions.
  1. +3 −14 README.md
View
@@ -38,20 +38,9 @@ See the sample folder for more examples.
\HomeIndexQuery.cs
\Index.cshtml
### For project.json
If you are using a version of .NET Core with project.json, add your feature folder to the list of assets to publish. In project.json:
```
"publishOptions": {
"include": [
"wwwroot",
"web.config",
"Features/**/*.cshtml"
]
}
```
### Just one more thing!
AddFeatureFolders uses the namespace of the controller to figure out where the views are.
### Important!
AddFeatureFolders **uses the namespace of the controller to figure out where the views are**.
For example:
```
/Features
@@ -119,4 +108,4 @@ above the Startup class between the using statements and the namespace.
[assembly: AspMvcAreaViewLocationFormat(@"~\Areas\{2}\{0}.cshtml")]
[assembly: AspMvcAreaViewLocationFormat(@"~\Areas\{2}\Shared\{0}.cshtml")]
```
Replace 'Features' and 'Areas' part if you set a custom folder name.
Replace 'Features' and 'Areas' part if you set a custom folder name.

0 comments on commit f11aa2f

Please sign in to comment.