views:

303

answers:

4

I have been using Snippet Compiler for a few years, and it's great. Unfortunately, it isn't getting maintained, and is falling behind. Doesn't support .NET 4, which we recently switched to, and even some C# 3 features like extension methods get flagged as errors (though they do compile).

Alternatives?

+6  A: 

I use LINQPad to try out small snippets of code. Even though its original purpose is database querying, it works great as a general C# snippet runner. Oh, and you gotta love the pretty output you get with the Dump extension method.

Martinho Fernandes
+1 LINQPad is great and there is a beta available (I think it's still in beta) that supports 4.0
Chris Dunaway
I tried this, looks like it solves the 95% case for me. Thanks.
Scott Bilas
+1  A: 

CS-Script

Kyle Alons
No 4.0 support yet, but I'll keep my eye on this one, looks good.
Scott Bilas
Thanks for the link. I will try it out.
Raj Kaimal
.NET 4.0 is supported in v2.7.0: http://www.csscript.net/help/What_is_new.html
Kyle Alons
A: 

I have been looking for one too. The closest I could find was this:

http://code.google.com/p/sharpsnippetcompiler/

Raj Kaimal
Unfortunately this doesn't support 4.0 either. It also crashes when I type in a simple script and run it.
Scott Bilas
A: 

Here's an interesting option: Mono's CsharpRepl interactive C# shell.

Scott Bilas