Skip to content

Commit

Permalink
Add runtimeconfig option for DataSet XML serialization (#43556)
Browse files Browse the repository at this point in the history
SDK change corresponding to dotnet/runtime#107713.
  • Loading branch information
sbomer committed Sep 19, 2024
1 parent a4c23bf commit 7a9fa06
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,11 @@ Copyright (c) .NET Foundation. All rights reserved.
Value="$(_ComObjectDescriptorSupport)"
Trim="true" />

<RuntimeHostConfigurationOption Include="System.Data.DataSet.XmlSerializationIsSupported"
Condition="'$(_DataSetXmlSerializationSupport)' != ''"
Value="$(_DataSetXmlSerializationSupport)"
Trim="true" />

<RuntimeHostConfigurationOption Include="System.Diagnostics.Debugger.IsSupported"
Condition="'$(DebuggerSupport)' != ''"
Value="$(DebuggerSupport)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ public void It_publishes_the_project_correctly(string targetFramework, string[]
""System.ComponentModel.DefaultValueAttribute.IsSupported"": true,
""System.ComponentModel.Design.IDesignerHost.IsSupported"": true,
""System.ComponentModel.TypeConverter.EnableUnsafeBinaryFormatterInDesigntimeLicenseContextSerialization"": false,
""System.Data.DataSet.XmlSerializationIsSupported"": true,
""System.ComponentModel.TypeDescriptor.IsComObjectDescriptorSupported"": false,
""System.Diagnostics.Debugger.IsSupported"": true,
""System.Diagnostics.Metrics.Meter.IsSupported"": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<_DefaultValueAttributeSupport>true</_DefaultValueAttributeSupport>
<_DesignerHostSupport>true</_DesignerHostSupport>
<EnableUnsafeBinaryFormatterInDesigntimeLicenseContextSerialization>false</EnableUnsafeBinaryFormatterInDesigntimeLicenseContextSerialization>
<_DataSetXmlSerializationSupport>true</_DataSetXmlSerializationSupport>
<_ComObjectDescriptorSupport>false</_ComObjectDescriptorSupport>
<DebuggerSupport>true</DebuggerSupport>
<MetricsSupport>false</MetricsSupport>
Expand Down

0 comments on commit 7a9fa06

Please sign in to comment.