-
-
Notifications
You must be signed in to change notification settings - Fork 276
/
Copy pathDirectory.Build.shared.tools.props
40 lines (32 loc) · 1.66 KB
/
Directory.Build.shared.tools.props
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
32
33
34
35
36
37
38
39
40
<Project>
<!--
This file applies to projects when it gets imported explicitly using the line below:
<Import Project="$(MSBuildProjectDirectory)\..\Directory.Build.shared.tools.props" Condition="Exists('$(MSBuildProjectDirectory)\..\Directory.Build.shared.tools.props')" />
-->
<PropertyGroup>
<PackageSummary>$(Description)</PackageSummary>
<ProjectSourceUrl>$(PackageProjectUrl)</ProjectSourceUrl>
<ExtrasIncludeDefaultProjectBuildOutputInPackTarget>IncludeDefaultProjectBuildOutputInPack</ExtrasIncludeDefaultProjectBuildOutputInPackTarget>
</PropertyGroup>
<ItemGroup>
<ToolLegalFiles Include="$(OutputPath)\**\legal\*.txt" />
<ToolDllFiles Include="$(OutputPath)\$(TargetFrameworks)\**\*.dll" />
<ToolExeFiles Include="$(OutputPath)\$(TargetFrameworks)\**\*.exe" />
</ItemGroup>
<Target Name="IncludeDefaultProjectBuildOutputInPack"
DependsOnTargets="_GetTargetFrameworksOutput">
<Message Text="$(TargetFrameworks)" Importance="high"/>
<ItemGroup>
<None Include="@(ToolLegalFiles)" Pack="true" PackagePath="\" />
<!-- Big assumption that tools only have a single target framework -->
<None Include="@(ToolDllFiles)" Pack="true">
<TargetPath>$([MSBuild]::MakeRelative('$(OutputPath)\$(TargetFrameworks)\', %(ToolDllFiles.FullPath)))</TargetPath>
<PackagePath>tools</PackagePath>
</None>
<None Include="@(ToolExeFiles)" Pack="true">
<TargetPath>$([MSBuild]::MakeRelative('$(OutputPath)\$(TargetFrameworks)\', %(ToolExeFiles.FullPath)))</TargetPath>
<PackagePath>tools</PackagePath>
</None>
</ItemGroup>
</Target>
</Project>