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.).
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.).