File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 473473 <PropertyGroup Condition =" '$(IsTestProject)' == 'true' or '$(IsTestSupportProject)' == 'true' or '$(IsTrimmingTestProject)' == 'true'" >
474474 <!-- we need to re-enable BinaryFormatter within test projects since some tests exercise these code paths to ensure compat -->
475475 <EnableUnsafeBinaryFormatterSerialization >true</EnableUnsafeBinaryFormatterSerialization >
476+ <!-- For DotNetBuildSourceOnly, only the bundled BinaryFormatter is built which does not support serialization. -->
477+ <EnableUnsafeBinaryFormatterSerialization Condition =" '$(DotNetBuildSourceOnly)' == 'true'" >false</EnableUnsafeBinaryFormatterSerialization >
476478 <!-- don't warn on usage of BinaryFormatter or legacy serialization infrastructure from test projects -->
477479 <NoWarn >$(NoWarn);SYSLIB0011;SYSLIB0050;SYSLIB0051</NoWarn >
478480 <!-- don't warn about unnecessary trim warning suppressions. can be removed with preview 6. -->
You can’t perform that action at this time.
0 commit comments