Repository navigation
Expand file tree
/
Copy pathDirectory.Build.targets
More file actions
26 lines (22 loc) · 1.99 KB
/
Copy pathDirectory.Build.targets
File metadata and controls
26 lines (22 loc) · 1.99 KB
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
<!-- Copyright (c) Files Community. SPDX-License-Identifier: MPL-2.0 -->
<Project>
<!-- StyleCop needs compiler XML comment processing to analyze documentation. Suppress only its configuration notice
when XML output is disabled; naming and layout checks continue to run. Core generates XML documentation. -->
<PropertyGroup Condition="'$(GenerateDocumentationFile)' != 'true'">
<NoWarn>$(NoWarn);SA0001</NoWarn>
</PropertyGroup>
<Target Name="ValidateConsumerAssemblyReferences" BeforeTargets="CoreCompile" Condition="'$(EnforceConsumerReferenceBoundary)' == 'true'">
<ItemGroup>
<_ForbiddenConsumerReference Include="@(ReferencePath)" Condition="'%(Filename)' == 'Files.Core' Or '%(Filename)' == 'Files.Providers' Or '%(Filename)' == 'Files.Core.ProviderContracts' Or '%(Filename)' == 'FluentFTP' Or '%(Filename)' == 'SevenZipSharp' Or '%(Filename)' == 'System.Management'" />
</ItemGroup>
<Error Condition="'@(_ForbiddenConsumerReference)' != ''" Text="Consumer compiler references must not include implementation assemblies: @(_ForbiddenConsumerReference->'%(Filename)', ', ')." />
</Target>
<Target Name="ValidateProviderAssemblyReferences" BeforeTargets="CoreCompile"
Condition="'$(MSBuildProjectName)' == 'Files.Core' Or '$(MSBuildProjectName)' == 'Files.Providers' Or '$(MSBuildProjectName)' == 'Files.Core.ProviderContracts'">
<ItemGroup>
<_InvalidProviderReference Include="@(ReferencePath)" Condition="'$(MSBuildProjectName)' != 'Files.Providers' And ('%(Filename)' == 'Files.Providers' Or '%(Filename)' == 'FluentFTP' Or '%(Filename)' == 'SevenZipSharp' Or '%(Filename)' == 'System.Management')" />
<_InvalidProviderReference Include="@(ReferencePath)" Condition="'$(MSBuildProjectName)' != 'Files.Core' And '%(Filename)' == 'Files.Core'" />
</ItemGroup>
<Error Condition="'@(_InvalidProviderReference)' != ''" Text="Provider/runtime isolation forbids these compiler references in $(MSBuildProjectName): @(_InvalidProviderReference->'%(Filename)', ', ')." />
</Target>
</Project>