You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add .NET 10 support: fix InvalidProgramException in expression compilation (#1429)
* Add .NET 10 support: fix InvalidProgramException in expression compilation
Pre-compile dynamic expressions outside closures/local functions in
DefinitionLoader to avoid InvalidProgramException on .NET 10's updated
expression tree compiler. The previous pattern of calling
LambdaExpression.Compile() inside closures that capture expression
objects produces invalid IL on .NET 10.
Changes:
- BuildScalarInputAction: compile expression before local function
- BuildObjectInputAction: pre-scan JObject and compile all @-prefixed
expressions at definition load time instead of at each invocation
- AttachDirectlyOutput: pre-compile source expression before lambda
- AttachNestedOutput: pre-compile both target and source expressions
- MemberMapParameter: cache compiled source delegate in constructor
- Add net10.0 to test TFMs (Directory.Build.props, UnitTests, IntegrationTests)
Fixes#1428
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Add regression test for scalar inputs (issue #1428)
Covers the reporter's exact scenario: a scalar variable-binding input
(data.MessageId) plus a scalar string-literal input ("waits-for-batching").
Loads the definition and assigns the inputs the same way
WorkflowExecutor.ExecuteStep does, asserting both values resolve.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
* ci: install .NET 10 SDK in Azure-Tests job
The Azure-Tests job runs a repo-wide 'dotnet restore', which now fails
with NETSDK1045 because the test projects target net10.0 but this job
only installed the .NET 8/9 SDKs. Align it with the other jobs (6/8/9/10).
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments