Remove the runtime property AppDomainCompatSwitch as it's not used by CoreCLR anymore...
authorVitek Karas <vitek.karas@microsoft.com>
Wed, 18 Sep 2019 22:30:58 +0000 (15:30 -0700)
committerGitHub <noreply@github.com>
Wed, 18 Sep 2019 22:30:58 +0000 (15:30 -0700)
The usage of this has been removed several years ago in https://github.com/dotnet/coreclr/pull/5708. The new runtime behavior is always the one we were explicitly selecting with the property value anyway.

Commit migrated from https://github.com/dotnet/core-setup/commit/30c4a25a9a675d632b6e7180e53a87e6fcacb909

src/installer/corehost/cli/hostpolicy/coreclr.cpp
src/installer/corehost/cli/hostpolicy/coreclr.h
src/installer/corehost/cli/hostpolicy/hostpolicy_context.cpp

index b287e51..234353a 100644 (file)
@@ -195,7 +195,6 @@ namespace
         _X("TRUSTED_PLATFORM_ASSEMBLIES"),
         _X("NATIVE_DLL_SEARCH_DIRECTORIES"),
         _X("PLATFORM_RESOURCE_ROOTS"),
-        _X("AppDomainCompatSwitch"),
         _X("APP_CONTEXT_BASE_DIRECTORY"),
         _X("APP_CONTEXT_DEPS_FILES"),
         _X("FX_DEPS_FILE"),
index 9d4711f..d2ccd5d 100644 (file)
@@ -58,7 +58,6 @@ enum class common_property
     TrustedPlatformAssemblies,
     NativeDllSearchDirectories,
     PlatformResourceRoots,
-    AppDomainCompatSwitch,
     AppContextBaseDirectory,
     AppContextDepsFiles,
     FxDepsFile,
index 2bb320f..17bfe5d 100644 (file)
@@ -140,7 +140,6 @@ int hostpolicy_context_t::initialize(hostpolicy_init_t &hostpolicy_init, const a
     coreclr_properties.add(common_property::TrustedPlatformAssemblies, probe_paths.tpa.c_str());
     coreclr_properties.add(common_property::NativeDllSearchDirectories, probe_paths.native.c_str());
     coreclr_properties.add(common_property::PlatformResourceRoots, probe_paths.resources.c_str());
-    coreclr_properties.add(common_property::AppDomainCompatSwitch, _X("UseLatestBehaviorWhenTFMNotSpecified"));
     coreclr_properties.add(common_property::AppContextBaseDirectory, app_base.c_str());
     coreclr_properties.add(common_property::AppContextDepsFiles, app_context_deps_str.c_str());
     coreclr_properties.add(common_property::FxDepsFile, fx_deps_str.c_str());