News for hackers. Stuff that matters.
Re:Visual Studio 2015 Update 2 by kpeel on Wednesday March 30, 2016 @02:12PM (#11391599)
I hope I'm not reading this wrong... But is the new "C# Interactive Window" a C# REPL? That would be amazing.
Re:Visual Studio 2015 Update 2 by daigoba66 on Wednesday March 30, 2016 @02:14PM (#11391612)
It's actually been there since Update 1.
Re:Visual Studio 2015 Update 2 by sea6ear on Wednesday March 30, 2016 @03:54PM (#11392408)
Thanks for this.

It was a welcome surprise to go to View->Other Windows and see this. I'll have to update soon to the new version to see the additional features it's gained.

Re:Visual Studio 2015 Update 2 by cmpb on Wednesday March 30, 2016 @03:07PM (#11392027)
Yes, but I've found it to be lacking usability-wise (e.g. it doesn't load the current project's dependencies, and it doesn't provide an easy way to load in dependencies from your project [someone please correct me if I'm wrong!]).
Re:Visual Studio 2015 Update 2 by daigoba66 on Wednesday March 30, 2016 @03:10PM (#11392058)
That's what Update 2 brings: "You can now initialize the C# Interactive Window with a project's context, allowing immediate access to types inside that project."
Re:Visual Studio 2015 Update 2 by cmpb on Wednesday March 30, 2016 @04:18PM (#11392627)
That is great news, thanks!
Re:Visual Studio 2015 Update 2 by smortaz on Wednesday March 30, 2016 @07:15PM (#11393754)
Yep! This started life as the PTVS (Python Tools for VS) REPL and now Python, Node.js, C#, R, ... are using it.
Re:Visual Studio 2015 Update 2 by dimgl on Wednesday March 30, 2016 @04:21PM (#11392654)
Is this any different from the Immediate Window in Visual Studio?
Re:Visual Studio 2015 Update 2 by MichaelGG on Wednesday March 30, 2016 @05:05PM (#11392998)
Immediate is AFAIK a limited subset available during debugging. C# Interactive is what F# has had for years (F# Interactive), and even Mono has had something like this for a while. You can enter snippets of C# and eval like a real REPL. Update 2 brings project context support so you can just open the REPL and do stuff like var x = new MyType().
Re:Visual Studio 2015 Update 2 by sunnya on Wednesday March 30, 2016 @05:23PM (#11393126)
You might want to check out a web based C# REPL: http://csharppad.com
Re:Visual Studio 2015 Update 2 by mike1o1 on Wednesday March 30, 2016 @08:17PM (#11394084)
scriptcs (http://scriptcs.net/) is another awesome REPL for C# that's built on top of Roslyn. I've found it to be extremely flexible and handy for writing quick tools.