Demonstrates how you can:
- Use MVC6 with View Components defined in a separate assembly.
- Use MVC6 with Controllers and Views defined in a separate assembly
To run this project:
- Clone this repo.
- Open
Demo.sln. - The
Webproject referencesCompositeFileProviderandEmbeddedFileProvider, which are both new. To load these packages, add theaspnetvnextNuget feed. Description on how to do this is here: http://stackoverflow.com/a/34360726/188740 - Run the
Webproject. - The default home page will render a view component in the
Webproject andBookStore.Componentsassembly. - The
/bookspage will render the controller and view in theBookStore.Portalassembly.
Related StackOverflow answers: