Skip to content

Commit b5044b4

Browse files
jkotasRon Petrusha
authored andcommitted
Update host.cpp (#477)
1 parent 7e2af98 commit b5044b4

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

core/hosting/host.cpp

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -290,17 +290,6 @@ int wmain(int argc, wchar_t* argv[])
290290
// Platform resource roots are paths to probe in for resource assemblies (in culture-specific sub-directories)
291291
wchar_t platformResourceRoots[MAX_PATH * 50];
292292
wcscpy_s(platformResourceRoots, appPaths);
293-
294-
295-
// AppDomainCompatSwitch
296-
// Specifies compatibility behavior for the app domain. This indicates which compatibility
297-
// quirks to apply if an assembly doesn't have an explicit Target Framework Moniker. If a TFM is
298-
// present on an assembly, the runtime will always attempt to use quirks appropriate to the version
299-
// of the TFM.
300-
//
301-
// Typically the latest behavior is desired, but some hosts may want to default to older Silverlight
302-
// or Windows Phone behaviors for compatibility reasons.
303-
wchar_t* appDomainCompatSwitch = L"UseLatestBehaviorWhenTFMNotSpecified";
304293
// </Snippet6>
305294

306295

@@ -317,8 +306,7 @@ int wmain(int argc, wchar_t* argv[])
317306
L"APP_PATHS",
318307
L"APP_NI_PATHS",
319308
L"NATIVE_DLL_SEARCH_DIRECTORIES",
320-
L"PLATFORM_RESOURCE_ROOTS",
321-
L"AppDomainCompatSwitch"
309+
L"PLATFORM_RESOURCE_ROOTS"
322310
};
323311

324312
// Property values which were constructed in step 5
@@ -327,8 +315,7 @@ int wmain(int argc, wchar_t* argv[])
327315
appPaths,
328316
appNiPaths,
329317
nativeDllSearchDirectories,
330-
platformResourceRoots,
331-
appDomainCompatSwitch
318+
platformResourceRoots
332319
};
333320

334321
// Create the AppDomain

0 commit comments

Comments
 (0)