@@ -30,7 +30,7 @@ $env:TP_TOOLS_DIR = Join-Path $env:TP_ROOT_DIR "tools"
3030Write-Verbose " Setup build configuration."
3131$TPB_SignCertificate = $Certificate
3232$TPB_Configuration = $Configuration
33- $TPB_AssembliesPattern = @ (" *test*.dll" , " *qualitytools*.dll" , " *test*.exe" , " *datacollector*.dll" , " *datacollector*.exe" , " QTAgent*.exe" , " VsWebSite.Interop.dll" , " Microsoft.VisualStudio*.dll" , " Microsoft.TestPlatform.Build.dll" , " Microsoft.DiaSymReader.dll" , " Microsoft.IntelliTrace*.dll" , " concrt140.dll" , " msvcp140.dll" , " vccorlib140.dll" , " vcruntime140.dll" , " codecoveragemessages.dll" , " covrun32.dll" , " msdia140.dll" , " covrun64.dll" , " IntelliTrace.exe" , " ProcessSnapshotCleanup.exe" , " TDEnvCleanup.exe" , " CodeCoverage.exe" , " Microsoft.ShDocVw.dll" , " UIAComwrapper.dll" , " Interop.UIAutomationClient.dll" , " SettingsMigrator.exe" )
33+ $TPB_AssembliesPattern = @ (" *test*.dll" , " *qualitytools*.dll" , " *test*.exe" , " *datacollector*.dll" , " *datacollector*.exe" , " QTAgent*.exe" , " VsWebSite.Interop.dll" , " Microsoft.VisualStudio*.dll" , " Microsoft.TestPlatform.Build.dll" , " Microsoft.DiaSymReader.dll" , " Microsoft.IntelliTrace*.dll" , " concrt140.dll" , " msvcp140.dll" , " vccorlib140.dll" , " vcruntime140.dll" , " codecoveragemessages.dll" , " covrun32.dll" , " msdia140.dll" , " covrun64.dll" , " IntelliTrace.exe" , " ProcessSnapshotCleanup.exe" , " TDEnvCleanup.exe" , " CodeCoverage.exe" , " Microsoft.ShDocVw.dll" , " UIAComwrapper.dll" , " Interop.UIAutomationClient.dll" , " SettingsMigrator.exe" , " Newtonsoft.Json.dll " )
3434
3535function Verify-Assemblies
3636{
@@ -54,18 +54,22 @@ function Verify-Assemblies
5454 elseif ($signature.SignerCertificate.Thumbprint -eq " 5EAD300DC7E4D637948ECB0ED829A072BD152E17" ) {
5555 Write-Log " Valid (Prod Signed): $ ( $_.FullName ) ."
5656 }
57- # For some dlls e.g. "Interop.UIAutomationClient.dll", sign certificate is different signature. Skip such binaries.
57+ # For some dlls e.g. "Interop.UIAutomationClient.dll", sign certificate is different signature. Skip such binaries.
5858 elseif ($signature.SignerCertificate.Thumbprint -eq " 67B1757863E3EFF760EA9EBB02849AF07D3A8080" ) {
5959 Write-Log " Valid (Prod Signed): $ ( $_.FullName ) ."
6060 }
61- # For some dlls e.g. "Microsoft.VisualStudio.ArchitectureTools.PEReader.dll", sign certificate is different signature. Skip such binaries.
61+ # For some dlls e.g. "Microsoft.VisualStudio.ArchitectureTools.PEReader.dll", sign certificate is different signature. Skip such binaries.
6262 elseif ($signature.SignerCertificate.Thumbprint -eq " 9DC17888B5CFAD98B3CB35C1994E96227F061675" ) {
6363 Write-Log " Valid (Prod Signed): $ ( $_.FullName ) ."
6464 }
65- # For some dlls sign certificate is different signature. Skip such binaries.
65+ # For some dlls sign certificate is different signature. Skip such binaries.
6666 elseif ($signature.SignerCertificate.Thumbprint -eq " 62009AAABDAE749FD47D19150958329BF6FF4B34" ) {
6767 Write-Log " Valid (Prod Signed): $ ( $_.FullName ) ."
6868 }
69+ # Microsoft 3rd Party Authenticode Signature
70+ elseif ($signature.SignerCertificate.Thumbprint -eq " 899FA016DEE8E665FF2A315A1151C43FB96C430B" ) {
71+ Write-Log " Valid (Prod Signed): $ ( $_.FullName ) ."
72+ }
6973 else {
7074 Write-FailLog " Incorrect certificate. File: $ ( $_.FullName ) . Certificate: $ ( $signature.SignerCertificate.Thumbprint ) ."
7175 }
0 commit comments