Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,21 @@ class RuntimePropertiesParser
JsonElement properties = runtimeOptions.GetProperty ("configProperties");
var ret = new Dictionary<string, string> (StringComparer.OrdinalIgnoreCase);
foreach (JsonProperty prop in properties.EnumerateObject ()) {
ret[prop.Name] = prop.Value.GetRawText ();
string? value = GetJsonValueAsString (prop.Value);
if (value is not null) {
ret[prop.Name] = value;
}
}

return ret;
}

static string? GetJsonValueAsString (JsonElement element) =>
element.ValueKind switch {
JsonValueKind.String => element.GetString (),
JsonValueKind.True => "true",
JsonValueKind.False => "false",
JsonValueKind.Number or JsonValueKind.Object or JsonValueKind.Array => element.GetRawText (),
_ => null, // Null or Undefined
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
NetworkInterfaces excluded: https://github.com/dotnet/runtime/issues/75155
-->
<!-- TODO: https://github.com/dotnet/android/issues/10069 -->
<ExcludeCategories Condition=" '$(UseMonoRuntime)' != 'true' ">$(ExcludeCategories):CoreCLRIgnore:NTLM:RuntimeConfig</ExcludeCategories>
<ExcludeCategories Condition=" '$(UseMonoRuntime)' != 'true' ">$(ExcludeCategories):CoreCLRIgnore:NTLM</ExcludeCategories>
<!-- TODO: https://github.com/dotnet/android/issues/10079 -->
<ExcludeCategories Condition=" '$(PublishAot)' == 'true' ">$(ExcludeCategories):NativeAOTIgnore:SSL:NTLM:AndroidClientHandler:Export:NativeTypeMap</ExcludeCategories>
<!-- FIXME: LLVMIgnore https://github.com/dotnet/runtime/issues/89190 -->
Expand Down
Loading