Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Set-Alias GACUTIL "C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools\gacutil.exe" -Force
- ############# Copy to GAC ##################################
- function CopyToGac([string]$dllPath){
- $asName = [System.Reflection.AssemblyName]::GetAssemblyName($dllPath).FullName
- Write-Host "Removing $($asName) from GAC"
- GACUTIL /u $asName
- Write-Host "Adding $($dllPath) to GAC"
- GACUTIL /i $dllPath
- iisreset /noforce
- }
- # PW Path: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
- # COMMAND: -NoLogo -NonInteractive -ExecutionPolicy Unrestricted -Command "& { CopyToGac '$(TargetPath)' } "
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement