-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDirectory.Build.targets
More file actions
25 lines (21 loc) · 940 Bytes
/
Copy pathDirectory.Build.targets
File metadata and controls
25 lines (21 loc) · 940 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<Project>
<!--
UnityRift ships 64-bit only. Some NuGet packages (Kyaru.Texture2DDecoder.*) carry
32-bit native assets under runtimes/<rid>-x86/, which would otherwise be copied into the
build and publish output even though nothing can load them. Drop them from both.
-->
<Target Name="StripX86RuntimeAssetsFromBuild" AfterTargets="ResolveReferences">
<ItemGroup>
<ReferenceCopyLocalPaths
Remove="@(ReferenceCopyLocalPaths)"
Condition="$([System.String]::Copy('%(ReferenceCopyLocalPaths.DestinationSubPath)').Contains('-x86'))" />
</ItemGroup>
</Target>
<Target Name="StripX86RuntimeAssetsFromPublish" AfterTargets="ComputeResolvedFilesToPublishList">
<ItemGroup>
<ResolvedFileToPublish
Remove="@(ResolvedFileToPublish)"
Condition="$([System.String]::Copy('%(ResolvedFileToPublish.RelativePath)').Contains('-x86'))" />
</ItemGroup>
</Target>
</Project>