W("APP_PATHS"),
W("APP_NI_PATHS"),
W("NATIVE_DLL_SEARCH_DIRECTORIES"),
- W("AppDomainCompatSwitch")
};
const wchar_t *property_values[] = {
// TRUSTED_PLATFORM_ASSEMBLIES
appNiPath,
// NATIVE_DLL_SEARCH_DIRECTORIES
nativeDllSearchDirs,
- // AppDomainCompatSwitch
- W("UseLatestBehaviorWhenTFMNotSpecified")
};
W("APP_PATHS"),
W("APP_NI_PATHS"),
W("NATIVE_DLL_SEARCH_DIRECTORIES"),
- W("AppDomainCompatSwitch"),
W("APP_LOCAL_WINMETADATA")
};
const wchar_t *property_values[] = {
appNiPath,
// NATIVE_DLL_SEARCH_DIRECTORIES
nativeDllSearchDirs,
- // AppDomainCompatSwitch
- W("UseLatestBehaviorWhenTFMNotSpecified"),
// APP_LOCAL_WINMETADATA
appLocalWinmetadata
};
"APP_PATHS",
"APP_NI_PATHS",
"NATIVE_DLL_SEARCH_DIRECTORIES",
- "AppDomainCompatSwitch",
"System.GC.Server",
};
const char *propertyValues[] = {
appPath.c_str(),
// NATIVE_DLL_SEARCH_DIRECTORIES
nativeDllSearchDirs.c_str(),
- // AppDomainCompatSwitch
- "UseLatestBehaviorWhenTFMNotSpecified",
// System.GC.Server
useServerGc,
};
internal static void InitializeSwitches()
{
-#if FEATURE_CORECLR
- s_useLatestBehaviorWhenTFMNotSpecified = IsCompatibilitySwitchSet("UseLatestBehaviorWhenTFMNotSpecified");
-#endif //FEATURE_CORECLR
-
#if !FEATURE_CORECLR
s_isNetFx40TimeSpanLegacyFormatMode = IsCompatibilitySwitchSet("NetFx40_TimeSpanLegacyFormatMode");
s_isNetFx40LegacySecurityPolicy = IsCompatibilitySwitchSet("NetFx40_LegacySecurityPolicy");
s_AreSwitchesSet = true;
}
-#if FEATURE_CORECLR
- /// <summary>
- /// This property returns whether to give the latest behavior when the TFM is missing
- /// </summary>
- internal static bool UseLatestBehaviorWhenTFMNotSpecified
- {
- get
- {
- return s_useLatestBehaviorWhenTFMNotSpecified;
- }
- }
-#else //FEATURE_CORECLR
-
+#if !FEATURE_CORECLR
public static bool IsAppEarlierThanSilverlight4
{
get
}
}
-#endif //FEATURE_CORECLR
+#endif //!FEATURE_CORECLR
public static bool IsNetFx40TimeSpanLegacyFormatMode
{
int fxVersion = 0;
if (targetFrameworkName == null)
{
-#if FEATURE_CORECLR
- // if we don't have a value for targetFrameworkName we need to figure out if we should give the newest behavior or not.
- if (CompatibilitySwitches.UseLatestBehaviorWhenTFMNotSpecified)
- {
- fxId = TargetFrameworkId.NetFramework;
- fxVersion = 50000; // We are going to default to the latest value for version that we have in our code.
- }
- else
-#endif
- fxId = TargetFrameworkId.Unspecified;
+ fxId = TargetFrameworkId.Unspecified;
}
else if (!ParseTargetFrameworkMonikerIntoEnum(targetFrameworkName, out fxId, out fxVersion))
fxId = TargetFrameworkId.Unrecognized;