Skip to content

Application crashed due to Failed to rename all targeted members, because the references are blocking each other #379

@KvanTTT

Description

@KvanTTT
  • ConfuserEx Version: 1.6.0-alpha+52bdc4d8a5
  • Target Framework: 4.7.2
  • Operating System: Windows 10

Confuser displays the error during confusing (by yellow color):

Failed to rename all targeted members, because the references are blocking each other

But application crashes with a similar exception (these definitions match definitions from the abovementioned warning message):

System.TypeInitializationException: The type initializer for '_TxP0AsG8nfNdg13bierh6qBfDmUA' threw an exception. ---> System.TypeLoadException: Method '_5eWIIuvnOFv3kKlDFd5OIn0ZamC' in type '_RQbl3JXbfV9R9u8bfHFRVVZD5Kd' from assembly 'Test, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.

This probably happens due to renaming protection with renPublic = true and related to cases when the method in base type implements an interface method for the derived type. shortNames option does not help.

I'll try to extract a minimal code sample later (it's quite complicated because of the big project and intertwined structure).

Is it possible to fix it (it worked in previous versions)? Or similar entities should be excluded from renaming?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions