Skip to content

Integrate precompiled query generation into the build process #33103

@roji

Description

@roji

The precompiled query feature (#25009) statically analyzes user code, and generates interceptors for static LINQ queries; this is necessary for NativeAOT. This cannot happen in a Roslyn source generator (as is usual), since query processing requires the EF model, which cannot be built/accessed in the Roslyn context.

As a result, we are planning to perform this process via msbuild integration, most likely as part of publishing (this is already where the very lengthy NativeAOT compilation takes place, etc.).

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions