InlineIL.Fody

Inject arbitrary IL code at compile time.

MIT License

Stars
231
Committers
1

Bot releases are visible (Hide)

InlineIL.Fody - v1.3.0

Published by ltrzesniewski about 5 years ago

  • Updated to Fody v6
  • Reverted the check removed in v1.2.1
InlineIL.Fody - v1.2.1

Published by ltrzesniewski about 5 years ago

  • Removes a nice-to-have check in order to be compatible with Fody from v4 to v6. A version specific to Fody v6 will be released later.
InlineIL.Fody - v1.2.0

Published by ltrzesniewski about 5 years ago

  • Added new APIs to represent generic type or method parameters in method signatures. Their usage is only valid in MethodRef definitions for overload resolution when generics are involved:
    • TypeRef.TypeGenericParameters[N] represents !N
    • TypeRef.MethodGenericParameters[N] represents !!N
  • Added a new MethodRef constructor overload with an int genericParameterCount parameter in order to disambiguate between overloads which differ only by generic arity.
  • Added basic block validation: the weaver now validates that supplied arguments don't contain conditional expressions in order to avoid silently generating invalid code.
InlineIL.Fody - v1.1.2

Published by ltrzesniewski over 5 years ago

  • Handle multiple tail calls in the same method in debug builds. The weaver splits the single-point-of-return code produced by the compiler in debug builds.
InlineIL.Fody - v1.1.1

Published by ltrzesniewski over 5 years ago

  • Handle tail calls in debug builds properly (#7)
InlineIL.Fody - v1.1.0

Published by ltrzesniewski over 5 years ago

  • Added ref T IL.ReturnRef<T>() to simplify the writing of methods that return a reference (no need to go through throw IL.Unreachable() anymore)
  • Added T* IL.ReturnPointer<T>() and void* IL.ReturnPointer() to simplify the writing of methods that return a pointer
  • Added IL.Pop<T>(out T*) and IL.Pop(out void*) overloads
  • Fixed memory leak which occurred with MSBuild node reuse (caused by a change in v1.0.4)
InlineIL.Fody - v1.0.4

Published by ltrzesniewski over 5 years ago

  • Fixed a stack overflow which occurred when a recursive generic constraint was present in the weaved assembly
InlineIL.Fody - v1.0.3

Published by ltrzesniewski over 5 years ago

  • Fixed an invalid IL issue when referencing fields in generic types (#5)
  • Updated Fody to v3.3.5
  • Weaved methods are no longer necessarily defined with "fat" headers in metadata
InlineIL.Fody - v1.0.2

Published by ltrzesniewski almost 6 years ago

  • Added IntelliSense support to FodyWeavers.xml
  • Updated to Fody v3.3.1
InlineIL.Fody - v1.0.1

Published by ltrzesniewski almost 6 years ago

  • InlineIL.dll is no longer copied to the build output
  • TypeRef.CoreLibrary can now be used outside of an InlineIL call
  • Added opcode stack transition behavior to the Intellisense documentation
  • Added some documentation to the no. opcode, even though it is not implemented in the CLR
  • Updated to Fody v3.2.12
InlineIL.Fody - v1.0.0

Published by ltrzesniewski about 6 years ago

  • The API is pretty stable now, mark this as v1.0.0
  • Added MethodRef.Constructor method
  • Added MethodRef.TypeInitializer method
InlineIL.Fody - v0.7.3

Published by ltrzesniewski about 6 years ago

Updated to Fody v3.2.9 (fixes a bug preventing a project from being built without a solution file)

InlineIL.Fody - v0.7.2

Published by ltrzesniewski about 6 years ago

Updated to Fody v3.2.8

InlineIL.Fody - v0.7.1

Published by ltrzesniewski about 6 years ago

  • Updated to Fody v3.2.7
  • Added some validation checks
InlineIL.Fody - v0.7.0

Published by ltrzesniewski about 6 years ago

  • Local variables declared with IL.DeclareLocals are now visible in the Locals debug window.
  • Sequence points are now generated around IL instructions in Debug builds, which makes it possible to step over emitted IL instructions in the debugger. Fixes #2.
  • A new SequencePoints configuration attribute was added to control this behavior. Possible values: True, False, Debug, Release. The default value is Debug.
  • Improved some error messages. Fixes #3.
  • Fixed invalid assembly metatada being generated when using static was used.
  • Updated to Fody v3.1.4.
InlineIL.Fody - v0.6.3

Published by ltrzesniewski over 6 years ago

Updated to Fody v3.1.3

InlineIL.Fody - v0.6.2

Published by ltrzesniewski over 6 years ago

  • Fixed a minor issue with instructions not always being shortened
  • Added an icon 😄
InlineIL.Fody - v0.6.1

Published by ltrzesniewski over 6 years ago

Fixed some bad operand types.

InlineIL.Fody - v0.6.0

Published by ltrzesniewski over 6 years ago

  • Added IL.Pop<T>(out T value) method.
  • Added some factory methods to MethodRef: PropertyGet, PropertySet, EventAdd, EventRemove, EventRaise
  • Added support for modreq/modopt
  • Added more validation
  • Remove ret/leave/endfinally instructions made redundant by emitted code.
InlineIL.Fody - v0.5.0

Published by ltrzesniewski over 6 years ago

Changed the API again (sorry)

  • Removed the IL.Emit methods
  • Renamed ILEmit to IL.Emit (a nested class)

Thus, the IL class becomes the main facade of the library, like before v0.4.