-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDirectory.Build.targets
More file actions
26 lines (22 loc) · 1.29 KB
/
Copy pathDirectory.Build.targets
File metadata and controls
26 lines (22 loc) · 1.29 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
<Project>
<!-- Repository-wide targets for FunctionFoundry packages. -->
<PropertyGroup Condition="'$(IsPackable)' == 'true'">
<PackageReadmeFile Condition="'$(PackageReadmeFile)' == ''">PACKAGE.md</PackageReadmeFile>
<EnablePackageValidation Condition="'$(EnablePackageValidation)' == ''">true</EnablePackageValidation>
</PropertyGroup>
<ItemGroup Condition="'$(IsPackable)' == 'true' and Exists('$(MSBuildProjectDirectory)/PACKAGE.md')">
<None Include="PACKAGE.md" Pack="true" PackagePath="\" />
</ItemGroup>
<ItemGroup Condition="'$(IsPackable)' == 'true' and Exists('$(MSBuildThisFileDirectory)NOTICE')">
<None Include="$(MSBuildThisFileDirectory)NOTICE" Pack="true" PackagePath="\" />
</ItemGroup>
<ItemGroup Condition="'$(IsPackable)' == 'true' and Exists('$(MSBuildThisFileDirectory)LICENSE')">
<None Include="$(MSBuildThisFileDirectory)LICENSE" Pack="true" PackagePath="\" />
</ItemGroup>
<Target Name="ValidateNoForbiddenPackageNames" BeforeTargets="Build"
Condition="'$(IsPackable)' == 'true'">
<Error
Condition="$(PackageId.EndsWith('.All')) or $(PackageId.EndsWith('.Common')) or $(PackageId.EndsWith('.Utils')) or $(PackageId.EndsWith('.Helpers'))"
Text="Forbidden aggregate/utility package id: $(PackageId)" />
</Target>
</Project>