TimRiker
Cirrocumulus
May 09, 2018Power shell "Add-Type" command has no "remove type" so once a type has been added, it cannot be removed in that running version of powershell. If you have run a different version of the script in that same powershell window, you will need to close that window and relaunch powershell in order for the Add-Type commands to work.
This has bit me more times than I can count. :(
If you're getting the Add-Type error, then your run has not completed. This means you're trying to load old json files with the new scripts. That won't work, as the new attributes won't exist. Restart powershell, run the script, and then check the output.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)