C# REPL 工具;类似控制台的快速编译工具 [英] C# REPL tools; quick console-like compiling tool

查看:44
本文介绍了C# REPL 工具;类似控制台的快速编译工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通常,我会启动一个新的 Visual Studio 实例,只是为了创建一个具有一些输出和/或输入的控制台应用程序.这是我用来测试方法或其他东西的临时沙箱,并在几分钟后关闭.

Often times, I start a new instance of Visual Studio, just to create a console application that has some output and/or input. It's a temporary sandbox I use to test a method or something else and close a few minutes later.

你能想出什么工具来代替它吗?

Can you think of any tools to replace this?

我曾经有一个具有两个文本字段的应用程序:一个在顶部以获取 C# 代码,另一个在底部充当标准输出.但我不记得名字了.

I use to have an application that had two text fields: one on top to take C# code, and one on the bottom, to act as an stdout. But I can't remember the name.

推荐答案

看看 LINQPad.它重量轻,具有许多功能.非常适合短片.Snippet Compiler 是另一个不错的选择.在 LINQPad 之前,它曾经是我的主要选择.它的作者最近似乎没有主动更新它.

Take a look at LINQPad. It's light-weight and has lots of features. Great for short snippets. Snippet Compiler is another good one. It used to be my main choice before LINQPad. Its author doesn't seem to be actively updating it lately.

这是我在此处列出的建议中的两个主要建议:是FastSharp 有什么替代品吗?

These are the two main ones from my suggestions listed here: Are there any alternatives to FastSharp?

此外,Mono 项目有一个 C# REPL.

In addition, the Mono project has a C# REPL.

这篇关于C# REPL 工具;类似控制台的快速编译工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆