Try using Add-Type -AssemblyName System.IO.Compression.FileSystem
instead. It is cleaner and does not have a dependency on the reference assemblies which need an installation of Visual Studio.
Try using Add-Type -AssemblyName System.IO.Compression.FileSystem
instead. It is cleaner and does not have a dependency on the reference assemblies which need an installation of Visual Studio.