Public/VS/Update-ProjectSign.ps1
function Update-ProjectSign { [CmdletBinding()] param ( [parameter(Mandatory)] [xml]$CSProj, [parameter(Mandatory)] [string]$CSProjFileName, [parameter(Mandatory)] [string]$SnkFileName ) begin { } process { Update-ProjectProperty $CSProj SignAssembly true $path=Get-RelativePath $CSProjFileName $SnkFileName Update-ProjectProperty $CSProj AssemblyOriginatorKeyFile $path } end { } } |