Are Dynamic Worker Pools for WIndows & Linux with .Net 5/6 and dotnet-script coming?
.Net 5.0 has been out for a year and finally unified Framework/Core. In addition dotnet-script has been 1.x for a year and unified scripting for .Net Windows and Linux. The second unified release .Net 6 is imminent.
In this new world we would like to deprecate PowerShell and use only C# scripting on Windows and Linux. There is an opportunity to update and simplify Octopus Cloud workers to all use .Net 5/6 and dotnet-script. While we can roll our own workers, we can’t get past the limitation that Octopus only supports the now deprecated ScriptCS on Windows, and doesn’t appear to have any C# script support on Linux workers?
As an interim measure, could current Ubuntu workers at least have dotnet-script added (which still works with the only .Net Core 3.1 framework) so that both Windows and Ubuntu workers support C# scripts?
I checked blog articles but couldn’t find anything for Octopus’ plans for moving to .Net 5/6, yet .Net Core 3.1 only has one year left before it is no longer supported, so it would be good to know how/when OD will move to .Net 5/6?
This is the error we get with C# scripts for Octopus Cloud Ubuntu workers right now.
14:43:02 Verbose | Considering 'AWSSDK.S3' for extraction 14:43:02 Info | Extracting package '/home/Octopus/Files/AWSSDK.S3@S18.104.22.168@FAB3CAAAFD3A004E8194D16697B7F078.nupkg' to '/home/Octopus/Work/20210828144300-1133-30/AWSSDK.S3' 14:43:02 Verbose | Considering 'AWSSDK.SimpleSystemsManagement' for extraction 14:43:02 Info | Extracting package '/home/Octopus/Files/AWSSDK.SimpleSystemsManagement@S22.214.171.124@724F45949901394FA2A7CA9664C516C7.nupkg' to '/home/Octopus/Work/20210828144300-1133-30/AWSSDK.SimpleSystemsManagement' 14:43:02 Verbose | Considering 'Octopus.Client' for extraction 14:43:02 Info | Extracting package '/home/Octopus/Files/Octopus.Client@S11.3.3425@FA3C31EB506C4F48AC47A1171F25B78F.nupkg' to '/home/Octopus/Work/20210828144300-1133-30/Octopus.Client' 14:43:03 Verbose | Performing variable substitution on '/home/Octopus/Work/20210828144300-1133-30/Script.csx' 14:43:03 Verbose | Executing '/home/Octopus/Work/20210828144300-1133-30/Script.csx' 14:43:03 Verbose | Setting Proxy Environment Variables 14:43:03 Verbose | Unable to get the system proxy settings due to not running under .Net Framework. Calamari will not use any proxy settings. 14:43:03 Error | Unable to execute /home/Octopus/Tools/Calamari.linux-x64/19.4.4/ScriptCS/scriptcs.exe, please ensure that /home/Octopus/Tools/Calamari.linux-x64/19.4.4/ScriptCS/scriptcs.exe is installed and is in the PATH. 14:43:03 Error | System.Exception: Error when attempting to execute /home/Octopus/Tools/Calamari.linux-x64/19.4.4/ScriptCS/scriptcs.exe: Exec format error 14:43:03 Error | ---> System.ComponentModel.Win32Exception (8): Exec format error ....