elsa-core/src/modules/Elsa.Workflows.Core
Sipke Schoorstra 5862bb84e3
fix(build): make ConfigureAwait.Fody weaving actually take effect (#7983)
* fix(build): make ConfigureAwait.Fody weaving actually take effect

ConfigureAwait.Fody only rewrites awaits when it is handed an explicit
ContinueOnCapturedContext value. A bare <ConfigureAwait /> element parses
cleanly, emits no warning, and weaves nothing.

Of the 98 FodyWeavers.xml files under src/, only 22 set the attribute. The
other 76 carried a bare element, so those projects compiled with no weaving
at all while looking correctly configured. Verified on Debug net10.0 builds:
Elsa.Secrets (attribute set) referenced ConfiguredTaskAwaitable, while
Elsa.Alterations (bare element) did not.

Elsa ships as a library and can be hosted where a SynchronizationContext
exists, so weave everywhere rather than dropping the packages.

Fody reads the WeaverConfiguration MSBuild property in preference to any
FodyWeavers.xml, so the directive now lives in a single file, src/Fody.props,
alongside the package references it belongs with. All 98 per-project XML files
are deleted; they would otherwise be dead and misleading.

src/apps has its own props root that does not chain up to
src/Directory.Build.props, so it imports src/Fody.props directly instead of
redeclaring the Fody package references. This second gap was found by the
guard below, not by inspection.

Guard: Directory.Build.targets fails the build for any project that references
ConfigureAwait.Fody without an effective directive (ELSA0001) or that
reintroduces a FodyWeavers.xml alongside it (ELSA0002). Both were verified to
fire, including on the exact original bug shape.

The 22 already-weaving projects are unaffected: their effective directive is
identical before and after, and that set is disjoint from the four projects
holding explicit .ConfigureAwait( calls. All 25 such calls pass false, matching
what the weaver now applies, so they become redundant rather than contradictory
and are left in place.

Also repoints two security-assessment claims that cited the presence of
FodyWeavers.xml as evidence of weaving — the inference that masked this bug.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* fix(build): drop FodyWeavers.xml from the new UserTasks modules

Merging main brought in eight new projects. Elsa.UserTasks carried a bare
<ConfigureAwait /> — the same latent no-op this branch removes elsewhere, added
while the fix was in review. Its seven persistence siblings set the attribute.

The guard caught it: ELSA0002 failed CI on the PR merge commit for all three
TFMs, on a file that never existed in the branch's own worktree.

All eight are redundant now that src/Fody.props supplies the directive.
Verified Elsa.UserTasks resolves it and its net10.0 build references
ConfiguredTaskAwaitable.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-25 01:37:23 +02:00
..
Abstractions Improving behaviour of Run Asynchronously property for the TaskActivityAttribute 2025-08-05 13:50:35 +02:00
ActivationValidators
Activities feat(core): let a container withdraw work it scheduled but must not run (#7967) 2026-08-20 23:29:46 +02:00
Attributes Adds activity host registration support (#7172) 2025-12-27 20:52:52 +01:00
Behaviors [codex] Fix ForEach completion from nested flowchart (#7702) 2026-06-08 12:04:55 +02:00
Builders Add named WithVariable overload (#7701) 2026-06-08 10:42:59 +02:00
CommitStates Clarify commit strategy fallback behavior in documentation; update test method signature for consistency 2025-12-16 08:01:49 -05:00
Constants [codex] Harden C# expression host-code execution (#7519) 2026-05-21 00:50:25 +02:00
Contexts feat(core): let a container withdraw work it scheduled but must not run (#7967) 2026-08-20 23:29:46 +02:00
Contracts feat(core): let a container withdraw work it scheduled but must not run (#7967) 2026-08-20 23:29:46 +02:00
Enums Add output converter support at binding boundaries 2026-07-31 04:10:48 +02:00
Exceptions Add output converter support at binding boundaries 2026-07-31 04:10:48 +02:00
Expressions Retranslating comment in english (#6910) 2025-09-15 18:49:11 +02:00
Extensions feat(core): let a container withdraw work it scheduled but must not run (#7967) 2026-08-20 23:29:46 +02:00
Features Add output converter support at binding boundaries 2026-07-31 04:10:48 +02:00
Handlers
Helpers
IncidentStrategies
LogPersistence
Memory
Middleware fix(core): a throwing FaultSignal handler must not escape the middleware (#7924) 2026-08-12 05:34:19 +02:00
Models fix(runtime): let a trigger index payloads under per-payload stimulus names (#7950) 2026-08-17 23:43:59 +02:00
Notifications Graceful shutdown for the workflow runtime (drain, pause, recover) (#7424) 2026-05-02 19:27:08 +02:00
Options Adds activity execution call stack support (#7271) 2026-02-24 15:23:59 +01:00
Pipelines Refactors extension methods to instance methods (#7089) 2025-11-25 14:53:18 +01:00
PortResolvers
Serialization fix: stop two silent serialization and test-isolation traps (#7969) 2026-08-21 00:36:11 +02:00
Services feat(core): let a container withdraw work it scheduled but must not run (#7967) 2026-08-20 23:29:46 +02:00
ShellFeatures Merge release/3.8.0 into main 2026-08-14 11:59:35 +02:00
Signals fix(core): a throwing FaultSignal handler must not escape the middleware (#7924) 2026-08-12 05:34:19 +02:00
State Harden output converter contracts 2026-07-31 13:29:01 +02:00
Telemetry Add OpenTelemetry workflow instrumentation (#7514) 2026-05-22 01:17:05 +02:00
UIHints Addresses warnings and enforces null safety (#7050) 2025-11-12 15:53:23 +01:00
VariableStorageDrivers Update multitenancy logic and improve Result handling: (#7281) 2026-02-11 10:11:12 +01:00
Elsa.Workflows.Core.csproj Add output converter support at binding boundaries 2026-07-31 04:10:48 +02:00
Elsa.Workflows.Core.csproj.DotSettings