2

Possible Duplicate:
Anders Hejlsberg's C# 4.0 REPL

Is there a native window/extension in VS2010 where you can write one-liners and see the result( like the 'Immediate Window', witch, as far as I know, is only usable in Debug mode).

I'm not interested in external tools like Linq Pad or SnippetCompiler

Community
  • 1
  • 1
Daniel
  • 1,225
  • 2
  • 15
  • 31
  • 1
    I've voted to close as a duplicate because it's a long-standing question whose answer, I believe is still ultimately the same. Incidentally - the comment from 2011 on the question itself there, pointing to Roslyn, is prescient - because MS are in the process rearchitecting and unifying the whole compilation stack and part of that *could* yield a C# REPL window (I believe Roslyn does include one) – Andras Zoltan Aug 03 '12 at 08:58
  • 1
    check out http://stackoverflow.com/a/760475/999042. Anyway, being "not interested" in perfectly functional external tools is illogic. – Alex Aug 03 '12 at 09:03

2 Answers2

6

With Roslyn, Visual Studio will get a built in interactive window:

http://blog.filipekberg.se/2011/11/14/using-the-c-interactive-window-that-comes-with-roslyn/

Unfortunately, it is still only at CTP status.

Anders Abel
  • 67,989
  • 17
  • 150
  • 217
0

Maybe the IronPython interactive console (inside visual studio) could do the work. But it's not a straight answer :/

http://ironpython.net/

ykatchou
  • 3,667
  • 1
  • 22
  • 27