I have fsx script in my project on the TeamCity server. It is run by FAKE.exe tool that using fsi.exe. After runnig I got the next error:
error FS0193: internal error: Could not load type 'System.IO.Compression.CompressionLevel' from assembly 'System, Version=22.214.171.124, Culture=neutral, PublicKeyToken=b77a5c561934e089'
The script works fine locally and it seems that it's using System.IO.Compression.dll that is in the C:\Windows\Microsoft.NET\Framework\v4.0.30319 folder. Is there this dll on the server?
I put it on my own and after that I got the error above. It seems that fsi.exe on the server doesn't work with such dll version. However, I have .NET 4.0 installed.
Do you know how to fix it?