Skip to content

johnnyoshika/mvc6-view-components

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ASP.NET MVC6 and View Components in a separate assembly

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 Web project references CompositeFileProvider and EmbeddedFileProvider, which are both new. To load these packages, add the aspnetvnext Nuget feed. Description on how to do this is here: http://stackoverflow.com/a/34360726/188740
  • Run the Web project.
  • The default home page will render a view component in the Web project and BookStore.Components assembly.
  • The /books page will render the controller and view in the BookStore.Portal assembly.

Related StackOverflow answers:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published