WeihanLi / dotnet-exec

dotnet execute with custom entry point, another dotnet run without project file
https://weihanli.github.io/dotnet-exec/
Apache License 2.0
51 stars 5 forks source link

use `Dump()` from dumpify #9

Closed WeihanLi closed 1 year ago

WeihanLi commented 1 year ago

Adopt https://github.com/MoaidHathot/Dumpify to Dump() a object

WeihanLi commented 1 year ago

Let's use it as an external dependency

dotnet-exec profile set dumpify -r "nuget:Dumpify" -u "Dumpify" -u "-WeihanLi.Extensions.Dump"

dotnet-exec profile get dumpify

dotnet-exec 'new { Id = 1, Name = "Hello" }.Dump();' --profile dumpify

image

see comment here https://github.com/waf/CSharpRepl/issues/286#issuecomment-1656721106