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

Have more than one operatingAssembly ... or included assemblies #539

Open
kevingy opened this issue Nov 25, 2023 · 1 comment
Open

Have more than one operatingAssembly ... or included assemblies #539

kevingy opened this issue Nov 25, 2023 · 1 comment

Comments

@kevingy
Copy link

kevingy commented Nov 25, 2023

Is your feature request related to a problem? Please describe.
Yes, I am creating an application (console app, assembly 1) that pulls data from another project (class library, assembly 2) then renders it using a project (class library, assembly 3) that wraps RazorLight. I'm doing this for loose coupling and separation of concerns. I want to be able to support several renderers - RazorLight being the first. All of the references are needed to have the assembly 2 data objects in the RazorLight wrapper (assembly 3) and it compiles fine, but throws an exception when I try to render. The current version allows SetOperatingAssembly(Assembly assembly), but I need to pull classes from more than one assembly. RazorLight is in the rendering library. The data to be rendered is in a different library. When I SetOperatingAssembly to the library with the data, I can't find RazorLight. When I SetOperatingAssembly to RazorLight, I can't find my data projecct classes.

Describe the solution you'd like
Ideally, rather than SetOperatingAssembly(), it should be AddOperatingAssembly(), where each call adds an assembly up to N assemblies that can be used for class definitions.

@jzabroski
Copy link
Collaborator

Can you weave your classes into one master assembly.

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

2 participants