Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

Loading strongly typed views from external assemblies which are loaded runtime #4423

@DavidEmanuelsen

Description

@DavidEmanuelsen

Hi,

We are currently working on an application which needs to load external asssemblies containing strongly typed views and models which are to be used in a generic controller. We've gotten as far as loading the assemblies using a custom AssemblyProvider, and we're able to load the views using either a custom file provider loading the views from the database or using the new EmbeddedFileProvider, but we are having issues when the views are compiled runtime - the model classes isn't being resolved.

It is a requirement that new class libraries / models should be made available without having to restart the application.

What are we missing? After adding the AssemblyProvider for loading assemblies from a custom directory we are able to resolve the type when creating an instance of the dynamically loaded model, but the type is still not resolved during runtime compilation of the razor views.

Any input is very much appreciated

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions