diff --git a/CodeSign.targets b/CodeSign.targets new file mode 100644 index 000000000000..c9f7d0c187b6 --- /dev/null +++ b/CodeSign.targets @@ -0,0 +1,99 @@ + + + + + + + + $(CISignRepo) + + + + + + + + + 31bf3856ad364e35 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 31bf3856ad364e35 + + + + + + + + + + + + + + + + + + diff --git a/build.proj b/build.proj index 395144c5936e..b7e83f3dfdc2 100644 --- a/build.proj +++ b/build.proj @@ -51,7 +51,7 @@ $(LibraryToolsFolder)\LocalFeed $(LibrarySourceFolder)\Publish Debug - false + false false $(LibraryRoot)signed @@ -121,9 +121,9 @@ false - + @@ -291,7 +291,7 @@ - + @@ -310,118 +310,13 @@ - - - - 31bf3856ad364e35 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - 31bf3856ad364e35 - - - - - - - - - - - - - - - - - - diff --git a/tools/RemoveCodeSignArtifacts.ps1 b/tools/RemoveCodeSignArtifacts.ps1 new file mode 100644 index 000000000000..f3e097cc29a1 --- /dev/null +++ b/tools/RemoveCodeSignArtifacts.ps1 @@ -0,0 +1,32 @@ +param( + [Parameter(Position=0)] + [string]$Path +) + +if ($Path -eq $null) { + $Path=$PSScriptRoot +} else { + $Path = Resolve-Path $Path +} + +Write-Output "Under the'$Path' folder" + +"Signed","Unsigned" | ForEach-Object { + Write-Output "'$_' artifacts deletion..." + $foldersToDelete = Get-ChildItem -Path $Path -filter $_ -Directory -Recurse + $itemsQnty = $foldersToDelete.Count + Write-Output "Number of folders found: $itemsQnty" + if ($itemsQnty -gt 0) { + Write-Output "Folders list:" + $foldersToDelete | ForEach-Object { + $_.FullName + } + $foldersToDelete | ForEach-Object { + Remove-Item (Join-Path $_.FullName *.*) -Force + } + $foldersToDelete | ForEach-Object { + Remove-Item $_.FullName -Force + } + Write-Output "Deleted" + } +} \ No newline at end of file