Skip to content

Commit 6c731f9

Browse files
committed
fix: BinaryFormatterSerialization warning
1 parent a94c0c1 commit 6c731f9

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

source/Directory.Build.props

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33
<PropertyGroup>
44
<LangVersion>preview</LangVersion>
55
<ProduceReferenceAssembly>true</ProduceReferenceAssembly>
6-
<NoWarn>CS1591;NU5129;NU5118</NoWarn>
6+
<NoWarn>CS1591;NU5129;NU5118;SYSLIB0050;SYSLIB0051</NoWarn>
77
<DefineConstants>$(DefineConstants);JETBRAINS_ANNOTATIONS</DefineConstants>
88
<DebugType>embedded</DebugType>
99
<PublishRepositoryUrl>true</PublishRepositoryUrl>
1010
<EmbedUntrackedSources>true</EmbedUntrackedSources>
11+
<EnableUnsafeBinaryFormatterSerialization>true</EnableUnsafeBinaryFormatterSerialization>
1112
</PropertyGroup>
1213

1314
<PropertyGroup>

source/Nuke.Common/Nuke.Common.props

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
<PropertyGroup>
55
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
66
<MSBuildWarningsAsErrors>$(MSBuildWarningsAsErrors);CS8785</MSBuildWarningsAsErrors>
7+
<NoWarn>$(NoWarn);SYSLIB0050;SYSLIB0051</NoWarn>
8+
<EnableUnsafeBinaryFormatterSerialization>true</EnableUnsafeBinaryFormatterSerialization>
79
</PropertyGroup>
810

911
</Project>

0 commit comments

Comments
 (0)