C# REPL outside Visual Studio

后端 未结 8 2155
太阳男子
太阳男子 2021-01-31 16:19

F# has a REPL (read–eval–print loop) F# Interactive, C:\\Program Files (x86)\\Microsoft F#\\v4.0\\Fsi.exe.

I understand C# now has its own interactive REPL,

8条回答
  •  青春惊慌失措
    2021-01-31 16:40

    If you're using dotnet core then try dotnet-script.

    run dotnet tool install --global dotnet-script to install. Then run dotnet-script to get a REPL style command prompt

    > Console.WriteLine("Hello world!");
    Hello world!
    

    Info found here

提交回复
热议问题