Add-Type: Cannot add type. The assembly 'System.IO.Compression.FileSystem' could not be found

后端 未结 4 835
情深已故
情深已故 2021-01-12 13:28

I am using simple PowerShell script in TeamCity Builds.

It requires System.IO.Compression.FileSystem and the agent has .NET 4.5.2 installed. Below are

4条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-12 14:09

    Try adding this instead (and remove the last portion) Add-Type -AssemblyName System.IO.Compression

提交回复
热议问题