DSInternals/Scripts/Sign-ReferencedPackages.ps1

19 lines
759 B
PowerShell
Raw Normal View History

2015-12-26 22:44:43 +00:00
<#
2015-12-27 17:18:31 +00:00
.SYNOPSIS
Signs the referenced NuGet packages that do not have a strong name.
.DESCRIPTION
2015-12-26 22:44:43 +00:00
A few of the referenced NuGet packages do not have a strong name.
As we want our assemblies to be signed, we have to sign these NuGet packages first.
This has to be done every time a referenced package gets updated.
#>
2016-02-22 22:19:34 +00:00
#Requires -Version 3
2015-12-26 22:44:43 +00:00
$solutionDir = Join-Path $PSScriptRoot '..\Src'
$packagesDir = Join-Path $solutionDir '.\packages'
$signer = Join-Path $packagesDir '.\Brutal.Dev.StrongNameSigner*\tools\StrongNameSigner.Console.exe'
2016-02-22 22:19:34 +00:00
# All referenced packages are currently strong-name signed, so there is no need for this script.
2015-12-26 22:44:43 +00:00
2016-02-22 22:19:34 +00:00
#$assembly1 = Join-Path $packagesDir '.\CryptSharpOfficial*\lib\CryptSharp.dll' -Resolve
#& $signer -AssemblyFile $assembly1