NetPad

Tareq Imbasher · TareqImbasher.NetPad

A cross-platform C# editor and playground.

NetPad is a C# playground that lets you run C# code instantly, without the hassle of creating and managing projects. Open NetPad, start coding, hit Run, and see your output immediately. It's that simple. - Prototyping and Testing: Quickly prototype and test code snippets before incorporating them into your projects. - Data Visualization: Visualize data interactively for better insights and analysis. - Database Queries: Query databases using LINQ or SQL effortlessly. - Learn and Experiment: Experiment with new C# features or start learning C# in an intuitive and accessible environment. - Utility Scripts: Create and save your own utility or administration scripts for repeated use.

winget install --id TareqImbasher.NetPad --exact --source winget

Latest 0.11.0

Release Notes

If you like NetPad, please star the repo 🌟 and consider sponsoring FOSS! This release adds .NET 10 support, some new features, and a new CLI tool! All feedback is welcome. 🎯 A special thanks to Andrea Bondanini (@sbundaz) for contributing a number of new features in this release. What's New 🚀 .NET 10 Support .NET 10 SDK is now supported. New scripts will automatically target .NET 10 if you have it installed. Oracle Data Connections You can now create Oracle database connections. Thanks to Andrea Bondanini (@sbundaz) for the contribution. IL Viewer NetPad now has an IL Viewer. You can find it by opening the Code pane located at the bottom left, and then swithcing from Syntax Viewer to IL Viewer. Thanks to Andrea Bondanini (@sbundaz) for helping with this. User Secrets Manager A User Secrets management pane was added to the bottom pane ribbon. Secrets can be accessed in your code using Util.Secrets: string value = Util.Secrets.Get("secretkey"); You can also list/add/update/remove secrets directly from code using these methods on Util.Secrets: void Save("secretkey", "value"); UserSecret[] List(); UserSecret? GetSecret(string key); bool Delete(string key); void Delete(Func<UserSecret, bool> filter); Wiki page NetPad CLI (npad) npad is a new CLI tool that brings NetPad to the terminal. You can use it to execute scripts, standalone C# files, and even code you type on the command prompt directly. It can be installed as a dotnet tool: dotnet tool install -g netpad.cli See the wiki page for usage and examples. The following is planned for npad:

  1. Faster script execution. The first time you run a script it is built and cached. Subsequent runs are much faster. The goal is to speed up that initial run.
  2. Ability to pass arguments to your scripts.
  3. Build a script into an executable. npad will have a different release cycle than NetPad (GUI), and will see some frequent updates in the near future with CLI-specific features and enhancements. [!TIP] Join the Discord server to collaborate, ask questions and get the latest announcements! Other Updates
  • New Data Protection methods were added to Util that you can use to protect/unprotect data. See Util.Protect() and Util.Unprotect() methods and thier overrides.
  • UI Updates:
    • A small refresh to tabs and panes.
    • App status messages in the statusbar can be dismissed by right-clicking the message.
    • Better UI for errors in the output pane for better readability.
    • Changed the formatting of how long a script took to run on the bottom left.
    • Swap the order of the Settings and Pin Window icons in the titlebar.
  • Update OmniSharp to v1.39.15. Fixes 🐛
  • Fix OmniSharp doesn't perform 2nd Quick Fix suggestion (#365).
  • Fix bug that caused script output to no show after manually stopping a script.
  • Fix Optimize dropdown not show actual selected value. Installers NetPad has 2 release channels:
  • Stable: The Electron version of NetPad. Installers that start with netpad
  • vNext: Uses a native Rust-based shell. Installers that start with netpad_vnext Both channels have the same feature set and are equally maintained. The native vNext version is lighter on system resources and planned to become the main package. At which point, the Electron version might be deprecated. See wiki for more info. Support ❤️ If you're enjoying NetPad and would like to support open-source, please consider sponsoring the project, it really helps! Also don't forget to star the repo if you haven't already, thank you! A special thanks to all my sponsors. Your support is greatly appreciated and helps keep this project growing!

New Contributors

Installer type: nullsoft

Architecture Scope Download SHA256
x64 user Download 92A8BF7BF08487CA987FD2319A9D2FDC5F7649894E221A032F50FADCCAF54D4B
x64 machine Download 92A8BF7BF08487CA987FD2319A9D2FDC5F7649894E221A032F50FADCCAF54D4B

Details

Homepage
https://github.com/tareqimbasher/NetPad
License
MIT
Publisher
Tareq Imbasher
Support
https://github.com/tareqimbasher/NetPad/issues
Copyright
Copyright (c) 2025 Tareq Imbasher

Tags

.netc#codecodingcsharpdevelopdevelopmentdotneteditorplaygroundprogramming

Older versions (4)

0.10.0
Architecture Scope Download SHA256
x64 user Download 2BE94144F1E33F2B4CE1F3C3500695FA366CB43A63BFEEEAB7882AFD1FBE74A0
x64 machine Download 2BE94144F1E33F2B4CE1F3C3500695FA366CB43A63BFEEEAB7882AFD1FBE74A0
0.9.1
Architecture Scope Download SHA256
x64 user Download 93D2D34EA14246E4E4CF51F89795B2F5DBA92282792E2BDB3FF20BC63765E9F4
x64 machine Download 93D2D34EA14246E4E4CF51F89795B2F5DBA92282792E2BDB3FF20BC63765E9F4
0.9.0
Architecture Scope Download SHA256
x64 user Download 3BC3541F5A3D6524A76A4EB86110A39BB236583A7BF17A9F6B2A6E72E16191C5
x64 machine Download 3BC3541F5A3D6524A76A4EB86110A39BB236583A7BF17A9F6B2A6E72E16191C5
0.8.0
Architecture Scope Download SHA256
x64 user Download FE9642A18BDA27A47F0CC42F29A3EDE3E47C1824E81FC39B66429EFC210C7D52
x64 machine Download FE9642A18BDA27A47F0CC42F29A3EDE3E47C1824E81FC39B66429EFC210C7D52