dnSpy - How to fix Multiple Assemblies error

Dear dnSpy users, have you got Multiple Assemblies error? Well it's very easy to fix. When you compile, look closely at error descriptions, it does tell you which .dll files are duplicated. Example: System.dll and mscorelib.dll is duplicated


Actual error:
Severity    Code        Description File        Line
Error       CS1703      Multiple assemblies with equivalent identity have been imported: 'C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\<name>.dll' and '<path of game>\Managed\<name>.dll'. Remove one of the duplicate references.

Removing assemblies from dnSpy won't help because it adds them back automatically
Close dnSpy and delete the duplicated .dll files from Managed folder that dnSpy mentioned


That's all. You are good to go. Open dnSpy and enjoy modding without error J

Comments

Popular Posts

VMOS Pro - FREE Custom ROMs without VIP | GMS, ROOT, Xposed | Android 4.4.4, 5.1.1, 7.1.2, 9.0 ROMs

List of Android Virtual Machine apps for Android devices