Davide ๐Ÿ””1๏ธโƒฃ Profile picture
I create content about #dotNET, Software Architecture, and more ๐Ÿง Let's grow together!๐Ÿ’ช

Jan 11, 2022, 9 tweets

As a #dotnet dev, when you need to run some throwaway code, you don't need to open an IDE, create a new console app, and discard the changes.

There are lots of tools you can use to run C# code in the bat of an eye.

Let's list some of them ๐Ÿงต

1๏ธโƒฃ LinqPad

It's a playground for running C#, F#, and VB code offline.

๐Ÿ‘ run/debug code
๐Ÿ‘ run XUnit tests
๐Ÿ‘ save your snippets locally
๐Ÿ‘ Well-printed object
๐Ÿ‘ NuGet packages

๐Ÿ‘Ž only local development
๐Ÿ‘Ž free version does not tidy up your code

๐Ÿ”— @linqpad

2๏ธโƒฃ try[.]dot[.]net

Minimal online editor, supported by Microsoft

๐Ÿ‘ Lightweight
๐Ÿ‘ explicit 'using' list

๐Ÿ‘Ž slow execution
๐Ÿ‘Ž no NuGet package
๐Ÿ‘Ž no sharing capabilities

๐Ÿ”— @dotnet

3๏ธโƒฃ dotnet-repl

Available on GitHub, run your code on a REPL terminal.

๐Ÿ‘ Cool
๐Ÿ‘ works with C# and F#
๐Ÿ‘ free
๐Ÿ‘ you can add NuGet packages

๐Ÿ‘Ž on console, harder to write
๐Ÿ‘Ž cannot save snippets

4๏ธโƒฃ Sharplab

Available at Sharplab[.]io, run code to see the compiled result, IL, syntax tree

๐Ÿ‘ good for advanced devs
๐Ÿ‘ works with C#, F#, VB, IL
๐Ÿ‘ can share code as GIST

๐Ÿ‘Ž no code tidy up
๐Ÿ‘Ž no NuGet packages

5๏ธโƒฃ .NET Fiddle

Online editor, available at dotnetfiddle[.]net

๐Ÿ‘ share and collaborate on code
๐Ÿ‘ tidy up code
๐Ÿ‘ NuGet packages
๐Ÿ‘ choose compiler, language, project type
๐Ÿ‘ converts your code to IL and VB

๐Ÿ‘Ž no autocomplete

๐Ÿ”— @dotnetfiddle

6๏ธโƒฃ dotnet-script

Available on GitHub, run local scripts on a terminal.
Each script is stored in a .csx file.

๐Ÿ‘ NuGet packages
๐Ÿ‘ Lightweight
๐Ÿ‘ save/organize your snippets locally

๐Ÿ‘Ž no autocomplete
๐Ÿ‘Ž no debug

7๏ธโƒฃ RoslynPad

Available on GitHub and Windows Store, run programs locally

๐Ÿ‘ NuGet packages
๐Ÿ‘ Lightweight
๐Ÿ‘ save/organize your snippets locally
๐Ÿ‘ autocomplete
๐Ÿ‘ format document
๐Ÿ‘ completely free

๐Ÿ‘Ž no debug

Do you use any of them?

Do you have other tools to suggest?

What are the must-have features for such tools?

Share this Scrolly Tale with your friends.

A Scrolly Tale is a new way to read Twitter threads with a more visually immersive experience.
Discover more beautiful Scrolly Tales like this.

Keep scrolling