Command Line C# Interactive Script Execution for Visual Studio

Command Line C# Interactive Script Execution for Visual Studio

In the previous post we discussed about Use C# Interactive Window for your coding experiment in Visual Studio 2015 . What about using the similar coding experiment without opening Visual Studio ?  Well, If you don’t want to open Visual Studio and still want to play around with C# code, execute some test code,   or run a script file, you can  the  same C# interactive script engine from the Visual Studio Developer Command Prompt.

To launch the Command Line interactive Script engine first open the “Visual Studio Developer Command Prompt” windows.

image

Then type CSI to lunch the C# Interactive Complier.

image

After that, it will be very much similar as you have seen in the previous post.

Here is some of the example to follow :

image

image

Of course you won’t get any kind of intellisense over here, but you can save and open existing c# code in a script file and open and run it over here.

Hope this helps !

Abhijit Jana

Abhijit runs the Daily .NET Tips. He started this site with a vision to have a single knowledge base of .NET tips and tricks and share post that can quickly help any developers . He is a Former Microsoft ASP.NET MVP, CodeProject MVP, Mentor, Speaker, Author, Technology Evangelist and presently working as a .NET Consultant. He blogs at http://abhijitjana.net , you can follow him @AbhijitJana . He is the author of book Kinect for Windows SDK Programming Guide.

2 Comments to “Command Line C# Interactive Script Execution for Visual Studio”

Comments are closed.