4

How do you run the C# Interactive thing in Visual Studio as a stand-alone script host in windows?

It seems a bit of a waste to only have the amazing possibilities of C# Script inside VS, it should be made part of windows so we can run .c# scripts everywhere and all the time and not have to deal with the strangeness, obscurity and unintuitiveness of an undocumented PowerShell.

3 Answers 3

1

There's the scriptcs project, which does exactly that. Check out scriptcs.net.

Sign up to request clarification or add additional context in comments.

1 Comment

That, also a good editor that can be extended with intellisense and auto run => atom + omnisharp-atom package + atom-runner package
1

On .NET Core you can install the 'scripts' tool and run stored C# scripts: https://github.com/filipw/dotnet-script

or run in REPL mode: https://github.com/filipw/dotnet-script#repl

2 Comments

and what's the difference? pro and cons of the two?
it's the same tool. you can either run a script saved as a csx file or in REPL mode you can run commands interactively. check out the link for more details.
0

You can run run csi.exe from "Developer Command Prompt for VS2015" or directly from its location on disk (for me C:\Program Files (x86)\MSBuild\14.0\Bin\csi.exe).

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.