-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDirectory.Build.targets
More file actions
20 lines (15 loc) · 1023 Bytes
/
Copy pathDirectory.Build.targets
File metadata and controls
20 lines (15 loc) · 1023 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<Project>
<Import Project="$(MSBuildThisFileDirectory).toolkit/msbuild/init.targets" />
<!-- Every project but the library itself gets the package's implicit `using DragoAnt.Observer`, as a consumer does. -->
<Import Project="$(MSBuildThisFileDirectory)DragoAnt.System.Text.Json.Observer/buildTransitive/DragoAnt.System.Text.Json.Observer.props"
Condition="'$(MSBuildProjectName)' != 'DragoAnt.System.Text.Json.Observer'" />
<!-- DynamicallyAccessedMemberTypes.None collides with the statically imported JsonTokenType.None. -->
<ItemGroup>
<Using Remove="System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes" />
</ItemGroup>
<!-- A library that sets EnforcePublicApiDocs fails its build on a public member without an XML doc comment. -->
<PropertyGroup Condition="'$(EnforcePublicApiDocs)'=='true'">
<NoWarn>$([System.String]::Copy('$(NoWarn)').Replace('CS1591',''))</NoWarn>
<WarningsAsErrors>$(WarningsAsErrors);CS1591</WarningsAsErrors>
</PropertyGroup>
</Project>