mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
It apparently broke clean builds, as the dependencies aren't in the project asset list or something anymore. I tried to fix this, but it seems impossible to do without relying on .NET SDK internals, as there's no point in the NuGet graph walk process that seems cleanly extensible. Instead let's just do the much dumber thing: a bunch of .props files for content to import. Hooray! This also means that I have to go through and *explicitly* disable transitive dependencies everywhere in RT. This thankfully isn't too hard.
22 lines
876 B
XML
22 lines
876 B
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>
|
|
</PropertyGroup>
|
|
</Project>
|