Having nearly 200 DT and 500 projects we start to look for an alternative to powershell.
As we know and use F#, I’ve tried to use F# scripts in octopus.
But it has been a very frustrating experience. Besides a reference to Octopus.tryFindVariable (and 2 more variations) I was unable to find any documentation. (To be honest, I dont know if any sample for c# exists)
Simple (no references) fsx runs - ok.
But when I try to reference type provider I run into problems.
The script that tries to reference nuget packages by “nuget:" fails with:
InstallJson.fsx(1,1): error FS0084: Assembly reference ‘nuget:FSharp.Data’ was not found or is invalid
The script that references my prebuild library with #r ".dll” fails with runtime errors.
Both versions run without any problem on my local machine (dotnet fsi InstallJson.fsx params)
The questions I’d love to find answered are:
What executes the scripts? What version of FSI? Is it dotnet fsi? Version 5? 4?
Is referencing asseblies from nuget (#r “nuget:…”) supported?
Can I load my own assembiles from package? (#r “Mydll.dll”)
What is that thing You call tryFindVariable on? Preloaded module? Does it have any other methods?