fluffynuts / PeanutButter

Tasty, versatile, nutritious; goes with many things in .net.
BSD 3-Clause "New" or "Revised" License
179 stars 32 forks source link

Update PeanutButter.EasyArgs to be AOT-friendly #83

Open fluffynuts opened 1 year ago

fluffynuts commented 1 year ago

Expected Behavior

I'd like to be able to compile cli apps AOT, and use PeanutButter.EasyArgs because it's easy!

Actual Behavior

I can't, because under the hood, EasyArgs uses the DuckTyper, which emits code - which isn't supported on AOT targets

Steps to Reproduce the Problem

  1. Build a CLI app using EasyArgs AOT
  2. Attempt to run
  3. 💥

Specifications