-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDirectory.Build.targets
More file actions
28 lines (23 loc) · 1.29 KB
/
Copy pathDirectory.Build.targets
File metadata and controls
28 lines (23 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
27
28
<Project>
<!--
Imported after the project body, so $(IsPackable) is known here.
Everything below applies only to the shipping packages under src/.
-->
<ItemGroup Condition="'$(IsPackable)' == 'true'">
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All"/>
</ItemGroup>
<!-- README/LICENSE/icon live at the repo root; reference them by absolute path so every package picks them up. -->
<ItemGroup Condition="'$(IsPackable)' == 'true'">
<None Include="$(MSBuildThisFileDirectory)README.md" Pack="true" PackagePath="" Visible="false"/>
<None Include="$(MSBuildThisFileDirectory)LICENSE.txt" Pack="true" PackagePath="" Visible="false"/>
<None Include="$(MSBuildThisFileDirectory)assets/icon.png" Pack="true" PackagePath="" Visible="false"/>
</ItemGroup>
<!--
Symbol packages only make sense for projects that actually ship a lib/ assembly.
The analyzer and source-only packages set IncludeBuildOutput=false and would emit an empty .snupkg.
-->
<PropertyGroup Condition="'$(IsPackable)' == 'true' And '$(IncludeBuildOutput)' != 'false'">
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
</Project>