Tutorial dnSpy - How to fix Multiple Assemblies error

AndnixSH

PMT Elite Modder
Original poster
Staff member
Modding-Team
Jun 27, 2017
4,545
303,588
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

9OC3it6.png


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

utUvxcH.png


That's all. You are good to go. Open dnSpy and enjoy modding without error
 
Last edited:
  • Like
Reactions: Polar.Bear