Skip to content

Make Stunts.DynamicProxy an explicit opt-in package - #218

Merged
kzu merged 1 commit into
mainfrom
dev/dynamicproxy-opt-in
Sep 25, 2026
Merged

kzu merged 1 commit into
mainfrom
dev/dynamicproxy-opt-in

Conversation

@kzu

@kzu kzu commented Sep 25, 2026 •

Copy link
Copy Markdown
Member

The Stunts package no longer embeds Stunts.DynamicProxy. Compile-time stunts are the default. Projects that can't use them (Visual Basic, C# before 9.0), or don't want them, now install the Stunts.DynamicProxy package explicitly.

  • Stunts drops the DynamicProxy assembly, targets, and Stunt.DynamicFactory sources, as well as its Castle.Core dependency.
  • Stunts.DynamicProxy is now a standalone package that depends on Stunts. It ships build/buildTransitive assets: a props file setting EnableCompileTimeStunts=false, plus targets that add Stunt.DynamicFactory.cs/.vb.
  • New warning ST011 when compile-time stunts are off and Stunts.DynamicProxy isn't referenced, since Stunt.Of would otherwise only fail at runtime. The ST010 message now points to the package too.
  • The dynamic acceptance projects (C# and VB) reference Stunts.DynamicProxy instead of setting the property. Readmes are updated.

@kzu kzu added the enhancement New feature or request label Sep 25, 2026
@kzu
kzu enabled auto-merge (rebase) September 25, 2026 19:26
@kzu
kzu disabled auto-merge September 25, 2026 19:29
The Stunts package no longer embeds Stunts.DynamicProxy. Compile-time stunts are the default. Projects that can't use them (Visual Basic, C# before 9.0), or don't want them, now install the Stunts.DynamicProxy package explicitly.
@kzu
kzu force-pushed the dev/dynamicproxy-opt-in branch from 1658396 to b42042e Compare September 25, 2026 19:48
@kzu
kzu merged commit 8ef3abc into main Sep 25, 2026
6 checks passed
@kzu
kzu deleted the dev/dynamicproxy-opt-in branch September 25, 2026 19:55
@devlooped devlooped locked and limited conversation to collaborators Nov 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant