Hi everyone, this post is in my name but it’s authored by Sourabh Shirhatti. He is a Program Manager Intern from the University of Texas at Austin that I’ve had the pleasure of working with this summer. Below is his story, I hope you enjoy it.
Prior to my internship with Microsoft, my web stack of choice was Node.JS + Express + MongoDB, and I primarily developed on a Mac. Like most of the Node.js community I had a minimalist environment; my tools of trade were Sublime Text, a terminal window and a browser. This kind of lightweight environment was not possible with ASP.NET.
Using Visual Studio at Microsoft showed me the benefits of a full-featured environment. The intelligent auto-completions coupled with an integrated build and test environment made Visual Studio invaluable. However, I still missed the lightning fast experience with Sublime Text.
With that in mind, I set out to build tools to make it easier to develop ASP.NET applications on my Mac. I have tried to identify the features I most missed from Visual Studio and how tooling could make my life easier.
To skip ahead to the download, just click http://github.com/ligershark/kulture/.
Create a new project
Fortunately, the command-line community already has an excellent scaffolding experience through Yeoman. The logical next step was to build a yo generator for ASP.NET. The generator is hosted on GitHub at https://github.com/shirhatti/generator-aspnet where you can have a look and give it a spin. The code snippet below will get you started.
If you would like to follow along, click here for a more detailed instruction guide.
# Install yeoman npm install -g yo # Install the ASP.NET generator npm install -g generator-aspnet # Run the generator yo aspnet
Run my Project
Once I scaffolded out an empty project, I ran into another roadblock. How do I run my application?
I was able to one-up Visual Studio in Sublime Text 3 (ST3) by allowing you to run any of your custom k commands, and like any command in Sublime Text the key-binding is user-configurable. Here’s what my ST3 shows me when I press F5.
This sounds exciting. How do I try it out?
You can try out the ST3 plugin at https://github.com/ligershark/Kulture
Show me my errors!
I have a boilerplate application that builds. I decide go ahead and add some code.Uh-oh! Looks like it doesn’t build anymore. How do I see the errors?
Press F7 in Sublime and here’s what you see
Code Completions (In progress)
Error lists are awesome, but I wouldn’t have so many errors if ST3 helped me as I type. Can you suggest completions?
Visual Studio offers Intellisense, intelligent code completion and syntax checking that we all know and love. Fortunately, we don’t have to reinvent the wheel; the completions in Visual Studio are powered Roslyn, an Open Source C# compiler.
To achieve the same completions in ST3, we are working on providing out-of-process completions that are powered by Roslyn. I’ve been working with the Open Source community and I’m confident we’ll get this done after some initial promise.
You can follow the progress for Code Completions here.
ASP.NET is Open Source.
Join the party by opening issues or creating Pull Requests at https://github.com/ligershark/Kulture