From b5b5b9c641f2400eafc79ef760bfb45cd71e991b Mon Sep 17 00:00:00 2001 From: Vincent van Proosdij Date: Wed, 29 May 2019 12:17:13 +0200 Subject: [PATCH] AbstractAcceptanceTest integrationtest fix for vs2019 the new vs2019 (16.2.0) test explorer has an issue with GetAssemblies when it tries to load internal test assemblies https://github.com/microsoft/vstest/issues/2008 with this fix the Microsoft assemblies are not loaded when an integration test runs (FunctionMonkey.Testing.AbstractAcceptanceTest) --- Source/FunctionMonkey/ConfigurationLocator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/FunctionMonkey/ConfigurationLocator.cs b/Source/FunctionMonkey/ConfigurationLocator.cs index 0c4f45b9..9906ceb3 100644 --- a/Source/FunctionMonkey/ConfigurationLocator.cs +++ b/Source/FunctionMonkey/ConfigurationLocator.cs @@ -40,7 +40,7 @@ public static IFunctionAppConfiguration FindConfiguration() private static bool Scan(out MethodInfo linkBackInfo, out IFunctionAppConfiguration findConfiguration) { - Assembly[] assemblies = AppDomain.CurrentDomain.GetAssemblies(); + Assembly[] assemblies = AppDomain.CurrentDomain.GetAssemblies().Where(a => !a.GetName().Name.StartsWith("Microsoft.")).ToArray(); linkBackInfo = null; findConfiguration = null;