-
Notifications
You must be signed in to change notification settings - Fork 1
/
SdkPackage.targets
42 lines (37 loc) · 1.63 KB
/
SdkPackage.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
32
33
34
35
36
37
38
39
40
41
42
<Project>
<ItemGroup>
<PackageReference Include="Microsoft.Build.Utilities.Core" Version="15.3.409" PrivateAssets="all" />
<Content Include="**/*.props" Exclude="obj/**" PackagePath="build;buildMultiTargeting" />
<Content Include="**/*.targets" Exclude="obj/**" PackagePath="build;buildMultiTargeting" />
</ItemGroup>
<ItemGroup>
<PackageReference Update="*">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
<Target Name="PackTaskDependencies" BeforeTargets="GenerateNuspec">
<!--
The include needs to happen after output has been copied to build output folder
but before NuGet generates a nuspec.
-->
<ItemGroup>
<ReferencedAssemblies Include="bin\$(Configuration)\**\*.dll" />
<ReferencedAssemblyPdbs Include="bin\$(Configuration)\**\*.pdb" Condition="'$(Configuration)' == 'Debug'" />
<_PackageFiles Include="@(ReferencedAssemblies);@(ReferencedAssemblyPdbs)" Condition="'%(FileName)' != '$(AssemblyName)'">
<PackagePath>tools\%(RecursiveDir)%(FileName)%(Extension)</PackagePath>
<Visible>false</Visible>
<BuildAction>None</BuildAction>
</_PackageFiles>
</ItemGroup>
</Target>
<Target Name="PackDummyLibFile" BeforeTargets="GenerateNuspec">
<Touch Files="$(BaseIntermediateOutputPath)$(Configuration)/_._" AlwaysCreate="true" />
<ItemGroup>
<_PackageFiles Include="$(BaseIntermediateOutputPath)$(Configuration)/_._">
<PackagePath>lib/netstandard1.1</PackagePath>
<Visible>false</Visible>
<BuildAction>None</BuildAction>
</_PackageFiles>
</ItemGroup>
</Target>
</Project>