Hello, we’re running a C# project on a Linux SSH Target. The script goes well until we get these errors:
(482,24): error CS0584: Internal compiler error: The method or operation is not implemented.
January 5th 2023 11:45:58Error
(513,39): error CS0584: Internal compiler error: The method or operation is not implemented.
January 5th 2023 11:45:58Error
(1,2): error CS0103: The name Octopus' does not exist in the current context January 5th 2023 11:45:58Error (1,23): error CS0103: The name Octopus’ does not exist in the current context
January 5th 2023 11:45:58Error
(1,19): error CS0103: The name filteredParams' does not exist in the current context January 5th 2023 11:45:58Error (2,4): error CS0103: The name filteredParams’ does not exist in the current context
January 5th 2023 11:45:58Error
(1,42): error CS0103: The name Octopus' does not exist in the current context January 5th 2023 11:45:58Error (1,28): error CS0103: The name targetPath’ does not exist in the current context
January 5th 2023 11:45:58Error
(3,25): error CS0103: The name `targetPath’ does not exist in the current context
January 5th 2023 11:45:58E
Thanks for reaching out, and sorry to hear you’re having issues with getting your c# scripts to work under mono - it looks like you’re hitting this issue stemming from some changes made in mono in versions > 5.16.
Sadly this is still on the backlog, due to mono’s very low usage rate resulting in a lot of other work being triaged higher. I’ll raise this up with the team though, and see if we can get it looked at.
In the meantime, it is possible to install 5.14/5.16 on Focal/Jammy by using apt snapshots and preferences using the following steps:
Adjust your sources to point to the snapshot of the version you want to run:
$ cat /etc/apt/sources.list
<snip>
# deb-src http://security.ubuntu.com/ubuntu focal-security multiverse
deb https://download.mono-project.com/repo/ubuntu bionic/snapshots/5.14.0.177 main
Set you apt preferences to use the mono repo version, even though it is lower than the ubuntu repo:
We do realise that this isn’t the ideal solution, but if this is a hard blocker for you, that can’t be worked around otherwise, it may provide a way forward.
I hope this helps, and please don’t hesitate to let us know if you have any further questions.
Thank you for your fast reply. Please keep me posted about the update. You know this is not a secured solution and the initial report was a couple years ago, so please try to help us, even if this is something not to many people use, you need to be responsible with it.