InlineIL.Fody

Inject arbitrary IL code at compile time.

MIT License

Stars
231
Committers
1

Bot releases are visible (Hide)

InlineIL.Fody - v1.9.0-pre2 Latest Release

Published by ltrzesniewski 7 months ago

  • Renamed TypeRef.FromDll to TypeRef.FromDllFile
  • Added a TypeRef.FromDllFile overload with a Type parameter
  • Added support for typeof(...).FullName recognition
InlineIL.Fody - v1.9.0-pre1

Published by ltrzesniewski 7 months ago

  • Added an experimental TypeRef.FromDll method, see #31
InlineIL.Fody - v1.8.0

Published by ltrzesniewski 9 months ago

  • Updated Fody to v6.8.0, which supports RVA field alignment
  • Added warnings for unused locals
  • Changed parameter of IL.PushInRef to use ref readonly instead of in, to make the reference usage stand out at the call site
InlineIL.Fody - v1.7.4

Published by ltrzesniewski almost 2 years ago

  • Fixed an internal error which could occur when handling methods with generic type specs (#29)
InlineIL.Fody - v1.7.3

Published by ltrzesniewski almost 2 years ago

  • Added support for C# 11 codegen to MethodRef.FromDelegate (which emits cached delegate instances)
  • Updated Fody to v6.6.4
InlineIL.Fody - v1.7.2

Published by ltrzesniewski about 2 years ago

  • Fixed compatibility with SDK v7.0.100-preview.7 (#26)
  • Updated Fody to v6.6.3
InlineIL.Fody - v1.7.1

Published by ltrzesniewski over 3 years ago

  • Improved the IL.Push stack validator
  • Updated Fody to v6.5.2
InlineIL.Fody - v1.7.0

Published by ltrzesniewski over 3 years ago

  • Changed the way calls to IL.Push are validated (#25). The new algorithm is more rigorous, so code that happenned to work previously could now be rejected.
  • Added a IL.EnsureLocal method which forces the compiler to emit an IL local for the local variable supplied as parameter, instead of keeping it on the evaluation stack. This can enable the local to be used with IL.Push in optimized builds.
  • Added an overload of IL.Emit.No which takes an enum argument.
  • Adjusted the nullability of reference types for arguments of IL.Push* methods.
  • Updated Fody to v6.5.1
InlineIL.Fody - v1.6.0

Published by ltrzesniewski about 4 years ago

  • Added MethodRef.Operator methods (#22)
  • Added MethodRef.Method and constructor overloads that include the method return type in the constraints (can be useful for conversion operators if you don't want to use MethodRef.Operator)
  • Updated Fody to v6.3.0
InlineIL.Fody - v1.5.0

Published by ltrzesniewski over 4 years ago

  • Added MethodRef.FromDelegate (#21)
InlineIL.Fody - v1.4.2

Published by ltrzesniewski over 4 years ago

  • Removed dependency on System.ValueTuple because of possible build issues (#19)
InlineIL.Fody - v1.4.1

Published by ltrzesniewski over 4 years ago

  • Updated Fody to v6.2.0
  • Enabled the check for PrivateAssets provided by Fody (https://github.com/Fody/Fody/issues/851)
  • Removed the compiler-generated nop instructions in Debug builds that follow emitted instructions (#17)
InlineIL.Fody - v1.4.0

Published by ltrzesniewski over 4 years ago

  • Added IL.PushInRef<T>(in T value) and IL.PushOutRef<T>(out T value) methods (#16)
  • Added generic overloads for IL opcodes that accept a type reference, for instance IL.Emit.Isinst<T>() (#16)
  • Added static factory methods to TypeRef, MethodRef, FieldRef and StandAloneMethodSig
  • Added SourceLink
  • Updated Fody to v6.1.1
InlineIL.Fody - v1.3.7

Published by ltrzesniewski over 4 years ago

  • Added completion info for the Warnings configuration attribute
  • Removed dependency on NETStandard.Library for the .NET Standard 1.1 target
InlineIL.Fody - v1.3.6

Published by ltrzesniewski over 4 years ago

  • Added netstandard1.1 target (#15)
InlineIL.Fody - v1.3.5

Published by ltrzesniewski over 4 years ago

  • Added a warning when an unused label is defined
  • Added a Warnings configuration attribute to either silence warnings or turn them into errors
  • The IsForwarder flag is now taken into account when handling exported types
InlineIL.Fody - v1.3.4

Published by ltrzesniewski almost 5 years ago

  • Improved error messages
  • Additional safeguard against the possibility of assembly references being added unexpectedly
  • Updated Fody to v6.0.5
InlineIL.Fody - v1.3.3

Published by ltrzesniewski about 5 years ago

  • Added nullable reference types annotations (C# 8)
InlineIL.Fody - v1.3.2

Published by ltrzesniewski about 5 years ago

  • Added support for forwarded types. Previous versions of InlineIL could introduce a reference to System.Private.CoreLib when weaving .NET Core assemblies, instead of referring to types forwarded from System.Runtime.
  • Added support for Type.MakeGenericMethodParameter as an alternative to TypeRef.MethodGenericParameters.
InlineIL.Fody - v1.3.1

Published by ltrzesniewski about 5 years ago

  • Fixed an unexpected error when InlineIL invalidates a method and full debug info is used - #14
  • Clarified the "unexpected instruction" error message