Releases: tareqimbasher/NetPad
NetPad v0.4.0
If you like NetPad, please star the repo π!
Preview 4
This release mainly focused on adding .NET 7 support and the ability to write SQL scripts!
What New π
- .NET 7 support: You can now choose the .NET SDK your script will use between .NET 6 or .NET 7.
- βΉοΈ You need at least one of those 2 .NET SDK installed (You can only switch to a .NET SDK if you have it installed).
- Removed the dependency on specifically having .NET 6 SDK installed. So you don't need the .NET 6 SDK installed anymore if you don't want to run your scripts using .NET 6.
- Refactored this piece so that future .NET versions can be added much more quickly.
- SQL Support: You can now switch your script to use SQL language instead of C# and query your database using SQL with multiple result set support!
- Editor enhancements:
- Bracket pair colorization.
- CodeActions (the π‘) suggestions are now categorized and got some styling fixes.
- New OmniSharp integration: Document Highlighting.
- Double-clicking an inlay hint will insert the hint into the editor.
- Inlay hints styling changes to make them more easy on the eyes.
- Documentation popups are now syntax highlighted.
- Snippet completion suggestions are now sorted higher than their keyword counterparts. For example, suggestions for the word
for
will prioritize the snippetfor
, effectively inserting afor
loop, instead of the suggestion of the keywordfor
which just inserts the keyword itself. - Data Connection window had a small redesign and now shows the ConnectionString that will be used for the connection.
- Spashscreen Logo is smaller. The older, larger one, was a bit too much π
Fixes π
- Fixed an issue with Scripts sidebar not reflecting correct script file structure after moving scripts to sub-folder.
- Fixed an issue where selecting certain snippets from completion suggestions would insert erroneous characters along with the snippet text. Example:
override ToString()
.
Full Changelog: v0.3.1...v0.4.0
NetPad v0.3.1
If you like NetPad, please star the repo π!
Preview 3.1
β [EDIT] June 26, 2023: The macOS ARM build was updated.
Previous binary had an issue where it would not open, and instead would hang on the splash screen indefinitely requiring user to force quit the app. Please use the latest macOS ARM binary.
If you get the error: NetPad is damaged and can't be opened. You should move it to the Trash
:
open a terminal and do this:
sudo xattr -cr /path/to/NetPad.app
This occurs because NetPad is not signed; macOS will only allow signed apps or apps downloaded from the App Store to run.
This release mainly focused on adding native support for macOS ARM (Apple Silicon). New macOS ARM specific builds are now available!
What New π
- A new setting was added for user to manually configure .NET SDK installation path. This can be found in
Settings > General
- This setting is optional. If this value is not set, NetPad will scan and try to locate the .NET SDK installation path.
- An icon will show in the title bar when a new update is available instead of auto-opening the update dialog whenever a new update becomes available, which was a bit too intrusive.
- New "Update" and "Add Database Connection" icons
- Fixes .NET SDK auto-discovery on macOS ARM
Full Changelog: v0.3.0...v0.3.1
NetPad v0.3.0
If you like NetPad, please star the repo π!
Preview 3
This is the third pre-release! This release focused on introducing features to enhance script results and related functionality. Please open an issue for any bugs or feature requests. Your feedback on issues or suggestions is greatly appreciated!
What's New π
Results
- A new Format dropdown was added to the results view with the ability to expand and collapse results to specific levels
- A new Export dropdown was also added to the results view that you can use to export results to Excel or HTML
- Adds navigation controls in the results view to make it easier to scroll to the top of the large results element you're viewing, to the next or previous element, or to top or bottom of the results view.
- Added support for Dumping more complex object types:
- Tuples
- 2-D arrays are now displayed as a 2-D table
DataTable
DataSet
XDocument
,XElement
,XNode
...etcXmlDocument
,XmlNode
...etc- Types that implement
IFormattable
are now represented as astring
- Minor adjustments to results styling to make some things easier to read and focus on
Application
- A new "Go to Script" feature to quickly and easily get to any script you have open or that you've saved to your library. This can be activated using
Ctrl + T
- You can now use
Console.ReadLine()
in a script to ask user for input - NetPad now auto-checks for updates on startup. You can disable this in Settings. It does not yet auto-install the latest update for you, but it notifies you as soon as a new version is released and gives you an easy button to click to download the latest version.
What's Next π§
There are a number of features we still need to make NetPad viable for as many developers as possible. For the next release however, focus will be on providing .NET 7 support and adding more database providers.
Full Changelog: v0.2.0...v0.3.0
NetPad v0.2.0
If you like NetPad, please star the repo π!
Preview 2
This is the second pre-release! It brings a number of new features, some enhancements and fixes. Please open an issue for any bugs or feature requests.
What Changed π
- A new main menu
- The output pane can now be popped out into its own window
- Added search in Clipboard pane
- Tab order is now saved and restored between app restarts
- You can now run a statement without using
.Dump()
or having it appended with a semi-colon - Brings the new tab/script button to be next to the last opened tab for easier accessibility
- Show editor cursor position (line/column) in statusbar
- Performance improvements including much faster app startup and memory usage optimizations
Fixes π
- Fixed extra new lines being rendered when using
Console.Write
andConsole.WriteLine
- Fixed bug where right-clicking inactive tab and selecting Run does not work as expected
- Fixed broken link to Monaco options documentation (#37)
- Should fix upstream bug (#29)
- Other minor fixes
Full Changelog: v0.1.1...v0.2.0
NetPad v0.1.1
If you like NetPad, please star the repo π !
Preview 1.1
This is a follow up to the first pre-release, with some new features and some enhancements and fixes. Please open an issue for any bugs or feature requests.
What's Changed π
- Design changes
- App checks to make sure app dependencies are met when NetPad runs and a new Quick Tips dialog
- Table headers in output are sticky so they scroll with table body
- Ability to use
SaveChanges()
andSaveChangesAsync()
directly in script code without having to useDataContext.SaveChanges()
- Don't ask user to save when closing a script that is empty (has no text)
- Support for dumping more complex object types
Fixes π
- Fixes colored SQL output
- Fixes issue where switching tabs can cause slight delays
- Various performance and stability fixes
Full Changelog: v0.1.0...v0.1.1
Initial Pre-Release - v0.1.0 (Preview 1)
This is the initial alpha pre-release of NetPad. After many sleepless nights, I'm happy to finally push this release.
Being an alpha release, it might be buggy. If you run into an issue please open a bug.
Requirements
- .NET 6 SDK
- (optional) .NET EF Core Tool (version 6+) to create and use database connections
Features π
- The basics:
- Write, save and run your own scripts
- Manage namespaces
- Standard code editor features powered by Monaco editor
- Dump complex objects to the results console
- Add and use database connections (currently only supports Microsoft SQL Server and PostgreSQL)
- Auto-save: If you close NetPad, it will auto-save your changes and
restore them the next time you fire it up - Add NuGet packages
- Reference assemblies from disk
- OmniSharp integration:
- CodeLens
- Code completion (Intellisense)
- Semantic highlighting
- Hover for documentation
- Format document
- Go-to implementation
- Find references
- Action suggestions
- Diagnostics