All Questions
Tagged with read-eval-print-loop c#
36 questions
3
votes
1
answer
1k
views
httprepl : Cannot start the REPL when output is being redirected
I created new api project in Visual Studio then
i put command httprepl and cath error
.imgur.com/T1SmT.png
i totaly new in httprepl and does not understand why i get that error
i have tried ...
1
vote
1
answer
1k
views
Can I call a C# function from the Immediate Window without compiling my whole project?
Back in my VB6 days, I could use the Immediate Window to run a quick sanity test on a function, even if the rest of my code was in a broken state:
It was handy for quick and dirty REPL debugging.
...
4
votes
1
answer
758
views
Is it possible to use Immutable.Collections on C# Interactive?
I am using the C# Interactive window (i.e. the REPL) on Visual Studio 2019, with latest updates. I want to use immutable collections but can't get them to work. (I have no problem using them in a ...
0
votes
1
answer
70
views
Console application prints differently than online compiler
I am writing a program for connect 4 that works very well.
Only problem is that in visual studio the method
public static void Display(char[,] board)
{
Console.Clear();
for (...
4
votes
0
answers
232
views
Can C# Interactive show timing information?
In F# Interactive, I can get timing information by using the #time directive:
> #time;;
--> Timing now on
> [1..1000_000] |> List.rev |> List.head;;
Real: 00:00:00.159, CPU: 00:00:00....
3
votes
2
answers
467
views
Do you know any nice interface for C# Interactive standalone?
You can open the C# Interactive window in Visual Studio to use C# as a scripting an shell language. Unfortunately, this requires you to have Visual Studio open all the time.
I know I can run csi.exe ...
7
votes
4
answers
5k
views
C# Interactive in Visual Studio Community on Mac
I'm trying to do some treehouse tutorials on C#. Unfortunately, the instructor is teaching this course in an windows machine with a windows version of VS Community while I follow along VS Community ...
12
votes
2
answers
3k
views
Is it possible to use the c# "interactive window" instead of the immediate window in VS2017
The C# "interactive window" is more fully featured than the "immediate window". Is it possible to load the debug context into it during a debug session?
0
votes
2
answers
123
views
C# Interactive as VisualStudio/ReSharper plug-in
I'd like to do some "structural meta-programming" in C# (like in other languages as Smalltalk).
For doing so I'd like to script, using a REPL-like tool that should run "inside" VisualStudio. Doing ...
0
votes
1
answer
71
views
Is it bad practice to let Node.js talk to a REPL child process?
I have a Node.js process that spawns a child REPL process. This child process speaks C# and is able to load DLL files dynamically. I send input to the REPL using either methods or sometimes using a ...
4
votes
3
answers
2k
views
How to run Visual Studio C# Interactive scripts in windows?
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 ...
9
votes
3
answers
14k
views
VS2015 C# interactive: error CS7069: Reference to type 'Object' claims it is defined in 'System.Runtime', but it could not be found
I just updated to VS2015 Update 2, and started playing around with the C# interactive window. I wanted to use a static method in a static class in one of my .NET 4.0 targeted library projects, so I ...
0
votes
1
answer
133
views
C# REPL Entity Framework .edmx
How to load entity framework in C# REPL in VS2015?
I am trying to do it like this:
var db = new Container("connectionstring");
db.Contacts.First();
I took connection string from web.config of my MVC ...
26
votes
3
answers
8k
views
Is it possible to automatically output value in C# Interactive (REPL) like Immediate does?
I started using C# Interactive and like the fact that I can browse and explore some API functionalities like I do with Immediate without the need to run and debug my program.
The problem is that it ...
2
votes
1
answer
3k
views
assembly loading problems using c# interactive
I have an assembly that i want to explore using c# interactive. The assembly has dependencies to other assemblies and assembly redirection is used in a config file. The other assemblies use data from ...