From 560f56bc778a0f2eed1873f16e96ed0c822ebfe8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 15 Nov 2025 16:43:59 +0000 Subject: [PATCH] Handle benchmark path without ConfigurationManager - Set ForceDriver directly when ConfigurationManager is not enabled - Ensures benchmarks work correctly with --driver option Co-authored-by: tig <585482+tig@users.noreply.github.com> --- Examples/UICatalog/UICatalog.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Examples/UICatalog/UICatalog.cs b/Examples/UICatalog/UICatalog.cs index ae546c1bc..71260edf2 100644 --- a/Examples/UICatalog/UICatalog.cs +++ b/Examples/UICatalog/UICatalog.cs @@ -468,6 +468,12 @@ public class UICatalog scenario.StartBenchmark (); } + // For benchmarking without ConfigurationManager, set ForceDriver directly + if (!ConfigurationManager.IsEnabled && !string.IsNullOrEmpty (_forceDriver)) + { + Application.ForceDriver = _forceDriver; + } + scenario.Main (); BenchmarkResults? results = null;