xoofx,
@xoofx@mastodon.social avatar

Hey, late Saturday night, but I just released a new .NET library https://github.com/XenoAtom/XenoAtom.CommandLine Finally a lightweight command line parser compatible with NativeAOT, a direct fork/descendant of NDesk.Options/Mono.Options supporting all its features - and more! and the easiness of using it! 🥳

#dotnet #csharp

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@xoofx what were some of the challenges of making it AOT ready? Mostly avoiding reflection?

xoofx,
@xoofx@mastodon.social avatar

@khalidabuhakmeh yes, I'm using ISpanParseable<T> instead of TypeConverter which makes it fully aware of the types/methods that it needs to compile. Often existing command line parsers are including stuffs like declaring options by putting attributes on fields/properties and other similar stuffs, so they have to rely more heavily on System.Reflection and are are usually less NativeAOT friendly. Some are doing source generator, and while it could be nice, it feels overkill.

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@xoofx very cool. I'd love to read a blog post about it. 😁

xoofx,
@xoofx@mastodon.social avatar

@khalidabuhakmeh Ah, yeah, having enough time to code in my sparetime for all the things I want to do is already challenging, so blog posts are even harder! 😅

  • All
  • Subscribed
  • Moderated
  • Favorites
  • dotnet
  • DreamBathrooms
  • magazineikmin
  • InstantRegret
  • GTA5RPClips
  • ethstaker
  • Youngstown
  • everett
  • slotface
  • osvaldo12
  • rosin
  • mdbf
  • kavyap
  • thenastyranch
  • ngwrru68w68
  • provamag3
  • Durango
  • modclub
  • cubers
  • khanakhh
  • Leos
  • tacticalgear
  • cisconetworking
  • vwfavf
  • tester
  • anitta
  • normalnudes
  • megavids
  • JUstTest
  • All magazines