-
Notifications
You must be signed in to change notification settings - Fork 0
/
Directory.Build.targets
31 lines (28 loc) · 1019 Bytes
/
Directory.Build.targets
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
26
27
28
29
30
31
<Project>
<!-- Remove .NET MAUI resources from the class library PRI -->
<!--
<Target
Name="_RemoveMauiPriFromPriFiles"
AfterTargets="_ComputeInputPriFiles"
Condition="
$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows' and
'$(OutputType)' != 'WinExe' and '$(OutputType)' != 'Exe'">
<ItemGroup>
<_NuGetPriFile Include="@(_PriFile->HasMetadata('NuGetPackageId'))" />
<_MauiPriFile Include="@(_NuGetPriFile)" Condition="$([System.String]::Copy(%(NuGetPackageId)).StartsWith('Microsoft.Maui.'))" />
<_PriFile Remove="@(_MauiPriFile)" />
</ItemGroup>
</Target>
-->
<!-- Remove all dependencies' PRI files from the class library -->
<Target
Name="_RemoveDependencyPriFiles"
AfterTargets="_ComputeInputPriFiles"
Condition="
$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows' and
'$(OutputType)' != 'WinExe' and '$(OutputType)' != 'Exe'">
<ItemGroup>
<_PriFile Remove="@(_PriFile)" />
</ItemGroup>
</Target>
</Project>