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 473
473
<PropertyGroup Condition =" '$(IsTestProject)' == 'true' or '$(IsTestSupportProject)' == 'true' or '$(IsTrimmingTestProject)' == 'true'" >
474
474
<!-- we need to re-enable BinaryFormatter within test projects since some tests exercise these code paths to ensure compat -->
475
475
<EnableUnsafeBinaryFormatterSerialization >true</EnableUnsafeBinaryFormatterSerialization >
476
+ <!-- For DotNetBuildSourceOnly, only the bundled BinaryFormatter is built which does not support serialization. -->
477
+ <EnableUnsafeBinaryFormatterSerialization Condition =" '$(DotNetBuildSourceOnly)' == 'true'" >false</EnableUnsafeBinaryFormatterSerialization >
476
478
<!-- don't warn on usage of BinaryFormatter or legacy serialization infrastructure from test projects -->
477
479
<NoWarn >$(NoWarn);SYSLIB0011;SYSLIB0050;SYSLIB0051</NoWarn >
478
480
<!-- 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