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?
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?
Yes, it does.
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
To compile, use mcs:
mcs filename.cs
The compiler will create filename.exe, which you can run using:
mono filename.exe
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.
It also supports .net core, where according to this Douglas, you can do it via these steps:
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"
}
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"
}