-
Notifications
You must be signed in to change notification settings - Fork 0
/
SkipStrongName.ps1
20 lines (18 loc) · 899 Bytes
/
SkipStrongName.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Register assemblies for strong name verification skipping
$registryPath = "HKLM:\SOFTWARE\Microsoft\StrongName\Verification"
$publicKeyToken="31bf3856ad364e35"
$assemblies = "FabActUtil",
"Microsoft.ServiceFabric.Actors",
"Microsoft.ServiceFabric.Actors.Wcf",
"Microsoft.ServiceFabric.Services",
"Microsoft.ServiceFabric.Services.Remoting",
"Microsoft.ServiceFabric.Services.Wcf",
"Microsoft.ServiceFabric.Actors.Tests",
"Microsoft.ServiceFabric.Services.Tests",
"Microsoft.ServiceFabric.Services.Remoting.Tests"
Write-Host "Registering assemblies generated by this repository for strong name verification skipping."
foreach ($assembly in $assemblies)
{
$assemblyIdentity = "$assembly,$publicKeyToken"
New-Item -Path "$registryPath\$assemblyIdentity" -Force | Out-Null
}