This project has moved and is read-only. For the latest updates, please go here.

Add-GacAssembly: ProviderPath does not exist


When attempting to add all assemblies in a directory, I was running into an error that was causing the script to fail. For some reason, perhaps because I am using Powershell 2.0, some of the objects returned by Resolve-Path did not have a ProviderPath property.

The code was also failing to handle unsigned assemblies or native assemblies. I resolved this as seen in the attached file.

file attachments


LTruijens wrote Feb 5, 2014 at 7:03 PM

Thank you for your comment. I will look into it.