Skip to content

BadImageFormatException when enabling resources obfuscation for net9.0 and later #101

Description

@jeremy-visionaid

Adding a nested type to the using dnlib/Cecil/AsmResolver is no longer supported from .NET 9:
dotnet/runtime#111164

  • ConfuserEx Version: v1.7.0-alpha-0033-gd114301e04
  • Target Framework: net10.0
  • Operating System: Windows

Steps to Reproduce:

Enable resources application:
<protection id="resources" />

Run obfuscated app:
Unhandled exception. System.BadImageFormatException: Enclosing type(s) not found for type '?????????????????????????????????????????' in assembly

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions