From ae338a001e606ed8695026311fbb63e14e63bcc2 Mon Sep 17 00:00:00 2001 From: Christoph Wille Date: Thu, 11 Jul 2024 17:55:51 +0200 Subject: [PATCH] Early return if DecompilerTests.config.json doesn't exist (saves time with ConfigurationBuilder) --- ICSharpCode.Decompiler.Tests/Helpers/TestsAssemblyOutput.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ICSharpCode.Decompiler.Tests/Helpers/TestsAssemblyOutput.cs b/ICSharpCode.Decompiler.Tests/Helpers/TestsAssemblyOutput.cs index 4e83cda9f..492ccf7fb 100644 --- a/ICSharpCode.Decompiler.Tests/Helpers/TestsAssemblyOutput.cs +++ b/ICSharpCode.Decompiler.Tests/Helpers/TestsAssemblyOutput.cs @@ -40,6 +40,9 @@ namespace ICSharpCode.Decompiler.Tests.Helpers static TestsAssemblyOutput() { + if (!File.Exists("DecompilerTests.config.json")) + return; + var builder = new ConfigurationBuilder() .AddJsonFile("DecompilerTests.config.json", optional: true, reloadOnChange: false);