Scriptcs support


I note that in various places on the net it mentions that octopus supports scriptcs (, however I can’t find any mention or examples in the documentation. I was hoping you might be able to point me in the general direction.



Hi Edward,

Thanks for getting in touch! The following blog post is all the documentation we really have on scriptcs:

And even though the version of Octopus in the blog is old, it still holds true that any .ps1 script can be replaced with a .cxs script.

Hope that helps!

It appears that server-side scripts (Scripts in Package steps, etc…) must be Powershell.
Is it possible to configure Octopus Deploy to enable scriptcs on the server-side?

We would love to use scriptcs on the server-side - currently a release will throw if the script is not a Powershell:

At C:\Windows\system32\config\systemprofile\AppData\Local\Tentacle\Temp\47cd6b1
b-4e5e-40f9-8187-6729ef1c67f2.ps1:1 char:1
var test = "This is a C# script";
The 'var' keyword is not supported in this version of the language.
 CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordEx 
FullyQualifiedErrorId : ReservedKeywordNotAllowed
PowerShell exit code: 1
PowerShell script returned a non-zero exit code: 1
Tentacle version

Hi Sean,

At the moment, no - it’s something we’ve added to Octopus 3.0. For 2.6 and below, it’s PowerShell only I’m afraid.