Skip to content

Source generation when models are in a separate project #1511

Closed
@wayne-o

Description

@wayne-o

We have the following structure:

  • CompanyName.Models (only has reference to JADNC.Annotations)
    • Model.cs
    • DbContext.cs
    • Migrations
    • etc etc
  • CompanyName.Web (has reference to full JADNC package)
    • Program.cs

I was hoping that the source gen would happen in CompanyName.Web since it has a reference to CompanyName.Models but that doesn't seem to be the case?

We don't want to have to add a reference to the full package in the Models project and we would prefer to not pulute that project with controllers. Is there any way around this?

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