Skip to content

Remove lightup approach for newer [InterceptorAttribute] feature; need to know compiler version #104693

@steveharter

Description

@steveharter

Support for the newer [InterceptorAttribute] feature was added to the runtime in #101079. However, that does a "lightup" approach for v9 which means reflection is used to call into the new Roslyn APIs. This will be ported to v8 and remain that way, but for v9 we should remove the older approach and possibly the lightup code altogether and use a direct reference to the new APIs. In order to do that, we need the minimum version of the compiler, SDK and Visual Studio that supports this feature -- what are those? We also have to communicate that to any down-level consumers including the source-build approach and build machine environment.

Currently the runtime repo requires 4.8.0 for source generators but as mentioned there, we should never be greater than the latest public version in VS or SDK. That 4.8.0 compiler version does not include the new feature, but it appears the currently referenced SDK from the runtime repo does (I believe it references 4.11.0.* of the compiler) so that's why the lightup approach in v9 is pulling in the new feature.

cc @jaredpar @marcpopMSFT @ericstj

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions