提交 e731a541 编写于 作者: A Andy Gocke

Use different TPA list delimiter on Unix.

上级 06a168bd
...@@ -139,11 +139,11 @@ internal string DumpAssemblyData() ...@@ -139,11 +139,11 @@ internal string DumpAssemblyData()
{ {
var assemblyNames = ImmutableDictionary.CreateBuilder<string, string>(StringComparer.OrdinalIgnoreCase); var assemblyNames = ImmutableDictionary.CreateBuilder<string, string>(StringComparer.OrdinalIgnoreCase);
// AppContext.GetData returns a string containing a semicolon-delimited list // AppContext.GetData returns a string containing a separated list
// of paths to the Trusted Platform Assemblies for this program. The TPA is the // of paths to the Trusted Platform Assemblies for this program. The TPA is the
// set of assemblies which will always be loaded from this location, regardless // set of assemblies we will always load from this location, regardless
// of whether or not a load from another location is requested. // of whether or not a load from another location is requested.
var platformAssemblies = ((string)AppContext.GetData("TRUSTED_PLATFORM_ASSEMBLIES")).Split(';'); var platformAssemblies = ((string)AppContext.GetData("TRUSTED_PLATFORM_ASSEMBLIES")).Split(Path.PathSeparator);
foreach (var assemblyPath in platformAssemblies) foreach (var assemblyPath in platformAssemblies)
{ {
if (TryGetAssemblyName(assemblyPath, out string assemblyName)) if (TryGetAssemblyName(assemblyPath, out string assemblyName))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册