2

I once heard about a software that could dynamically run dotnet instructions (C#, if I remember well) on its command line, e.g when entering 1==1, the output would be true.

I don't remember the name of this soft, and sometimes one just wants to know the result of a given instruction, without having to create a new program, compiling it and run it...

I would happily take the challenge to make a soft like this on my own later, but for now on I'd just like to find this soft.

Does anyone know its name, or another app which would achieve the same result? (Don't tell me PowerShell, I'm searching for something more handy..Thanks)


EDIT For those who use Visual Studio and who didn't know (I just learnt about it), you can also use the Immediate Window. It even allows you to get intellisense in some cases.

3 Answers 3

3

The mono project has the CsharpRepl project - it is

the C# interactive shell that is part of Mono's C# compiler. An interactive shell is usually referred to as a read eval print loop or repl.

You may also be thinking about PowerShell:

Windows PowerShell is Microsoft's task automation framework, consisting of a command-line shell and associated scripting language built on top of, and integrated with the .NET Framework.

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

1 Comment

Jon already mentioned C#Repl, I think I'll go for it. As for PowerShell, it is not very handy for just running some .NET instructions. Thx for answering
1

Perhaps you mean the Mono C# Repl?

Comments

1

Microsoft's “Roslyn” project includes a C# Interactive window for Visual Studio 2010:

You can invoke the C# Interactive window from View -> Other Windows -> C# Interactive Window. The Interactive window is powered by the new C# language service. The architecture of Roslyn is flexible enough to allow many of the IDE features such as IntelliSense and refactorings to work the same in a normal editor and in the Interactive window.

It is effectively a command-line REPL for C# all within VS.

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.