Skip to content

Commit 1b955b5

Browse files
committed
Replace dotnet run with dotnet exec to bypass SDK argument parsing regression
dotnet run in SDK 10.0.300 incorrectly forwards its own options (--verbosity, --configuration, --no-build) as application arguments on the CI agent (Ubuntu 22.04). This cannot be reproduced locally with the same SDK version but manifests consistently on hosted agents. Since we build separately anyway (--no-build), switch to dotnet exec which directly invokes the built DLL without any argument parsing ambiguity.
1 parent 98f3575 commit 1b955b5

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

eng/pipelines/stress/stress-tests-job.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,11 @@ jobs:
185185

186186
# Run the stress tests for each .NET runtime.
187187
#
188+
# We use `dotnet exec` instead of `dotnet run` because SDK 10.0.300 has a regression where
189+
# `dotnet run` forwards its own options (--verbosity, --configuration, --no-build) as
190+
# application arguments on hosted Ubuntu agents. Since we build separately above, `dotnet
191+
# exec` is both simpler and immune to argument-parsing changes in the SDK.
192+
#
188193
# The condition and continueOnError work together to achieve the following behavior:
189194
#
190195
# condition: and(succeededOrFailed(), eq(variables['buildSucceeded'], 'true'))

0 commit comments

Comments
 (0)