.net-core: Equivalent of ILDASM / ILASM

前端 未结 4 663
时光取名叫无心
时光取名叫无心 2021-02-05 15:05

Is there the equivalent of ILDASM / ILASM for the .net-core?

Specifically, I\'m looking for something that runs on Linux (Hence why the .net-core).

4条回答
  •  耶瑟儿~
    2021-02-05 15:31

    This is not a full replacement for the tools mentioned in the other answers, but this F# snippet allowed me to quickly find the appropriate type & function name I needed for AWS Lambda:

    open System.Reflection
    
    []
    let main argv =
      let asm =
        argv
        |> Array.tryHead
        |> Option.map Assembly.LoadFrom
        |> Option.defaultWith (Assembly.GetExecutingAssembly)
    
      printfn "%s" asm.FullName
    
      for t in asm.GetTypes () do
        printfn " * %s" t.FullName
    
      0
    
    

提交回复
热议问题