Does anyone know of a good lightweight IDE for .net? Often times I open VS and create a new project just to see if a line compiles, to test a quick method, or something trivial like that.
Essentially what I want is an app similar to notepad I can open, have the basic class structure already defined, and be able to compile/run it. It would be fine if it was always a console app.
By using the vsvars32.bat file provided by Microsoft, it only takes a minimal amount of configuration to run the C# csc.exe compiler from the command line.
So in general, any editor that can run a third party tool could be configured to run the C# compiler from within the editor.
LinqPad is also very lightweight (and free)
ideone is yet another (but online)
Try to use CodeRun. It is lightweight a browser-based IDE for .NET, JavaScript and PHP!
Update [08/24/2012]:
http://compilr.com/
Find an interpreter:
Or use notepad++ (or something similar) and make a script that runs the compiler.
If you are not stick with C#, I'd recommend you to use F# interactive or IronPython console.
I use command line (PowerShell these days) for that sort of thing, with a few .cs files lying around for common starting templates. Editor is whichever one is your favorite - it's Far+Colorer for me (with hand-tweaked syntax highlighting so that it understands all C# 3.0 and 4.0 keywords), but there are plenty other lightweight options.