Sponsored By Aspose - File Format APIs for .NET

Aspose are the market leader of .NET APIs for file business formats – natively work with DOCX, XLSX, PPT, PDF, MSG, MPP, images formats and many more!

Sublime Text as Code Editor (1) Compile

I have been making a move to sublimetext2 in linux as my primary development environment. This series of posts will look at the editor and various tweaks and addons that are needed to get working with C# code. There are tons of tutorials about sublime online but none seem to cover setting up a C# environment. To start with let’s learn how to be able to compile code.

Go to tools->build->new build. A file will open. Drop in:

“cmd”: [“xbuild”],
“path”: “/opt/mono/bin/”,
“working_dir”: “${project_path:${folder}}”,
“file_regex”: “^ (.*)\\(([0-9]*),([0-9]*)”

Then save this file named xbuild.

Note I run mono trunk built from source which is why my prefix is /opt/mono. Now when you have a folder open for your project it will run xbuild in the root of that folder. This only works if there is only a single solution in the root folder. To build use ctrl+b or f7.

In the next post we will look at switching between code and basic navigation.

This entry was posted in Uncategorized and tagged , , . Bookmark the permalink. Follow any comments here with the RSS feed for this post.

2 Responses to Sublime Text as Code Editor (1) Compile

  1. gregyoung says:

    nunit? :)

    mighty moose is on his way to sublime now.

  2. Detrick says:

    Thanks Greg for this. Is there a nunit equivalent testing framework for sublime?

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>