Skip to content

Commit

Permalink
Enable package signing
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenBonikowsky committed Apr 11, 2018
1 parent 6cf72d1 commit f913db1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/publish.proj
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
<Import Project="..\dir.targets" />
<Import Project="$(ToolsDir)PublishContent.targets" />
<Import Project="$(ToolsDir)versioning.targets" />
<Import Project="$(PackagesDir)/$(FeedTasksPackage.ToLower())/$(FeedTasksPackageVersion)/build/$(FeedTasksPackage).targets" />
Expand Down Expand Up @@ -33,6 +34,20 @@
<FinalSymbolsPackagesPattern>$(PackageDownloadDirectory)\**\*.symbols.nupkg</FinalSymbolsPackagesPattern>
</PropertyGroup>

<Target Name="GetPackagesToSign">
<ItemGroup>
<FilesToSign Include="$(FinalPublishPattern)" Exclude="$(FinalPublishPrivatePattern);$(FinalSymbolsPackagesPattern)">
<Authenticode>NuGet</Authenticode>
</FilesToSign>
</ItemGroup>
<Message Importance="High" Text="Attempting to sign package '%(FilesToSign.Identity)'" />
</Target>

<Target Name="SignPackages"
Condition="'$(SkipSigning)' != 'true' and '$(SignType)' != 'public'"
DependsOnTargets="GetPackagesToSign;SignFiles">
</Target>

<Target Name="PublishToAzureBlobFeed">
<ItemGroup>
<ItemsToPush Include="$(FinalPublishPrivatePattern)" Exclude="$(FinalSymbolsPackagesPattern)">
Expand Down

0 comments on commit f913db1

Please sign in to comment.