Make Dump() method available to .Net Core runtime
I've been using LinqPad's Dump() method from C#.
and showing HTML result using following code.
https://gist.github.com/altrive/0ce60da4dd58a2d31f4a560c9457bd6f
It's useful when viewing variable content without debugger.
It' works on .NET runtime, but it does't works under .NET Core runtime.
(because of WinForms/WPF/etc. dependencies exists)
I know it's difficult to LinqPad itself works under .NET Core in near future.
But is there any chance LinqPad's Dump()/Diff() components available to .NET Core?
Possible actions
- Remove WinForms/LinqThirdParty DLL dependencies from LinqPad's Dump() call paths -> I don't sure it's possible or not. but It seem to works if related dependencies are propery resolved.
- Publish Dump() related features as separate NuGet packages.
- Open source Dump() related features codes like ExpressionFormatter -> https://github.com/albahari/ExpressionFormatter
Related Issues
- LinqPad on .NET Core https://linqpad.uservoice.com/forums/18302-linqpad-feature-suggestions/suggestions/16961749-linqpad-on-net-core
- Add ability to target .NET Core https://linqpad.uservoice.com/forums/18302-linqpad-feature-suggestions/suggestions/17456101-add-ability-to-target-net-core
- Make Dump() extension method available in Visual Studio https://linqpad.uservoice.com/forums/18302-linqpad-feature-suggestions/suggestions/447166-make-dump-extension-method-available-in-visual-s
3
votes
Altrive
shared this idea
This functionality is now available via the NuGet package LINQPad.Runtime.