Skip to content

4.9.0

Compare
Choose a tag to compare
@Washi1337 Washi1337 released this 11 Mar 12:27
· 887 commits to master since this release
4ac45c3

New Features

  • Add .NET 7.0 file support (#256, thanks @ds5678)
  • Add .NET Core 3.1 and .NET 6.0 build targets for additional performance (#266).
  • Add DataBlobSignature.FromValue and Constant.FromValue factory methods (#244, thanks @ds5678)
  • Add MakeGenericInstanceMethod helper method (5b49ddc)
  • Method bodies that could not be parsed (e.g. native entry points) are now represented using UnresolvedMethodBody (#255).
  • Add CilInstruction.ReplaceWith and CilInstruction.ReplaceWithNop helper methods (#259).
  • Various performance improvements in CilAssembler, looking up serialized metadata members, and other places (#260, #261, 826157f, #265).
  • Bumped package version of System.Text.Json to 6.0.2 (#258, thanks @ds5678)

API Deprecations

  • FieldSignature.CreateInstance and FieldSignature.CreateStatic are deprecated. Use the constructor of FieldSignature or FieldDefinition instead.

Bug Fixes

  • Fixed an issue where duplicated metadata members would not be preserved by the metadata builder, even with PreserveAll enabled (#252 , #253)
  • Fixed an issue where custom attributes using arguments such as typeof(object) caused the resolution scope of CorLibTypeSignatures to be removed from the list of imported assemblies (#263, #264).
  • TypeNameParser now correctly reuses the AssemblyReference instances that were imported into the parent module if available.
  • Creating new modules no longer adds the corlib assembly reference twice to ModuleDefinition.AssemblyReferences.