This is the AMP version of this page.
If you want to load the real page instead, click this text.

Tutorial dnSpy - How to fix Multiple Assemblies error

AndnixSH

PMT Elite Modder
Original poster
Staff member
Modding-Team
Jun 27, 2017
4,558
305,412
1,213
Modding World
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:
Code:
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
 
Last edited:
Reactions: Polar.Bear