17

I really want to know is Cloud 9(https://c9.io/) support .Net(C#)? My target is using .Net 4.0 + MVC 3.0 for my project.

There are "Run With" future for "New Runner", is that can make Cloud 9 support .Net?

svick
  • 236,525
  • 50
  • 385
  • 514
Roy
  • 245
  • 3
  • 10

6 Answers6

24

Yes, it does.

enter image description here

INSTALL PROCEDURE

Add the Mono Project GPG signing key and the package repository

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
sudo apt-get update
sudo apt-get update --fix-missing

Then install Mono as described

sudo apt-get install mono-complete
sudo apt-get install mono-devel
sudo apt-get install referenceassemblies-pcl

HOW COMPILE CONSOLE APPLICATION

To compile, use mcs:

mcs filename.cs

The compiler will create filename.exe, which you can run using:

mono filename.exe

ADDITIONAL RESOURCES

Boo
  • 343
  • 4
  • 6
  • Thanks @Boo provide the answer, I will kept it in mine. – Roy Apr 13 '15 at 05:56
  • For those that just wanna CTRL+C and CTRL+V... `sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF && \ echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list && \ sudo apt-get update && \ sudo apt-get update --fix-missing && \ sudo apt-get install mono-complete && \ sudo apt-get install mono-devel && \ sudo apt-get install referenceassemblies-pcl ` – JwJosefy Jun 17 '16 at 21:17
6

Cloud9 workspaces come preinstalled with Mono, so in theory you could compile and run any C#/.NET code. You can write custom runners and builders that use Mono to compile your code. So, there is not a lot of support for it out of the box, but if you're willing to put in some effort you may be able to get it working.

Community
  • 1
  • 1
lennartcl
  • 578
  • 4
  • 11
2

It also supports .net core, where according to this Douglas, you can do it via these steps:

  1. Follow instructions for installing .net core on Linux (ubuntu)
  2. Find a sample on git here
  3. Run it.
Irwin
  • 12,551
  • 11
  • 67
  • 97
1

It does work, you can add a custom runner like in the following example to build .csproj and .sln files:

{
    "cmd" : ["/usr/lib/mono/4.0/xbuild.exe", "$file","/p:Configuration=Release /p:DebugSymbols=false /p:PreBuildEvent=;PostBuildEvent="],
    "info" : "Started $project_path$file_name",
    "env" : {},
    "selector" : "source.csproj"
}
Sven Mawby
  • 645
  • 6
  • 16
1

Use the following to create a new C# runner:

{
  "script": [ 
    "mcs $file_name",
    "mono $file_base_name.exe"
  ],
  "info": "Compiling $file_name and running $file_base_name.exe",
  "selector": "source.cs"
}
Dave
  • 11
  • 1
1

https://codenvy.io

It supports .NET Core on Linux (docker based) environment on the cloud.

hB0
  • 1,977
  • 1
  • 27
  • 33