/
TraceEventPackageSigning.csproj
38 lines (33 loc) · 1.74 KB
/
TraceEventPackageSigning.csproj
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
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<!-- This project is here only to support MicroBuild Signing of the Microsoft.Diagnostics.Tracing.TraceEvent package.
In theory this could be rold into the TraceEvent.csproj project, but after several attempts (the last
of which were that the fact that we build for several frameworks, makes it so that it can't seem to load
the microbuild package from the PackageReference element propertly. If we care we can make another
attempt, but this should get us unblocked. See issue https://github.com/Microsoft/perfview/issues/673 for more.
-->
<PropertyGroup>
<OutputType>library</OutputType>
<TargetFramework>net462</TargetFramework>
</PropertyGroup>
<ItemGroup>
<!-- To support Signing new SupportFile packages, look for any packages in the NugetSupportFiles directory -->
<None Include="..\NugetSupportFiles\*.SupportFiles.*.nupkg">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<!-- Get the Microsoft.Diagnostics.TraceEvent.*.nuget package we just built -->
<None Include="..\TraceEvent\bin\$(Configuration)\Microsoft.Diagnostics.Tracing.TraceEvent.*nupkg">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<PackageReference Include="MicroBuild.Core" Version="0.2.0" />
</ItemGroup>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<ItemGroup>
<!-- Sign any nuget packages that made it to our output directory -->
<FilesToSign Include="$(OutDir)*.nupkg">
<Authenticode>Nuget</Authenticode>
</FilesToSign>
</ItemGroup>
<Message Importance="High" Text="Package Sign '%(FilesToSign.Identity)'" />
</Target>
</Project>