Skip to content

Commit 2ed2664

Browse files
authored
Revert "Explicitly enable BF for WinForms and WPF in Microsoft.NET.Sdk.targets" (#49562)
Reverts #33004. This was a workaround for #32969 which was fixed in 8.0 (at least the BinaryFormatter portion). The workaround was intended to be removed once that underlying issue was fixed.
1 parent d699b23 commit 2ed2664

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.targets

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ Copyright (c) .NET Foundation. All rights reserved.
194194
<!-- controls warn as error -->
195195
<_BinaryFormatterObsoleteAsError>true</_BinaryFormatterObsoleteAsError>
196196
<!-- controls runtime behavior (AppContext & trimming) -->
197-
<EnableUnsafeBinaryFormatterSerialization Condition="'$(EnableUnsafeBinaryFormatterSerialization)' == '' AND '$(_ProjectTypeRequiresBinaryFormatter)' == 'true'">true</EnableUnsafeBinaryFormatterSerialization>
198197
<EnableUnsafeBinaryFormatterSerialization Condition="$([MSBuild]::VersionGreaterThanOrEquals($(TargetFrameworkVersion), '8.0')) AND '$(_ProjectTypeRequiresBinaryFormatter)' != 'true'">false</EnableUnsafeBinaryFormatterSerialization>
199198
</PropertyGroup>
200199

0 commit comments

Comments
 (0)