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

后端 未结 4 806
情深已故
情深已故 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:00

    I had the exactly same error when running PowerShell script. I guess it was some collision of installed .Net version vs. PowerShell version. In my case helped me just to update PowerShell version to the newest one. Can be found here:

    https://www.microsoft.com/en-us/download/details.aspx?id=40855

提交回复
热议问题