Files
RobustToolbox/Directory.Build.props
2025-12-17 20:22:58 +01:00

28 lines
1.0 KiB
XML

<Project>
<ItemDefinitionGroup>
<PackageReference>
<!--
Make all packages used by RT default to having everything private except what's needed to run the game (runtime, native)
This is to avoid having them leak to content, as they are primarily an implementation detail.
Where necessary, this can be overriden by doing PrivateAssets="none" on the PackageReference entry.
-->
<PrivateAssets>compile;contentFiles;build;buildMultitargeting;buildTransitive;analyzers</PrivateAssets>
</PackageReference>
</ItemDefinitionGroup>
<PropertyGroup>
<!--
Disable transitive project references.
This is just to avoid venues of leaky implementation details into content.
Being strict is always good.
-->
<DisableTransitiveProjectReferences>True</DisableTransitiveProjectReferences>
<!--
Shut up broken package pruning warnings.
We need these unpruneable packages because of transitive dependency pinning.
-->
<NoWarn>$(NoWarn);NU1510</NoWarn>
</PropertyGroup>
</Project>