Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update DotnetExeCompilator.cs - Duplicate Asm fix #113

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yonixw
Copy link

@yonixw yonixw commented Dec 6, 2023

My project has the same DLL in an imported package and from the editor (System.Windows.Forms.dll). So the plugin will fail with this error (for any class):

Error when updating files: 'Script.cs', 
System.Exception: Compiler failed to produce the assembly. 
Output: 'error CS1703: Multiple assemblies with equivalent identity have been imported: 
'E:\Unity\Project\Assets\StandaloneFileBrowser\Plugins\System.Windows.Forms.dll' 
and 'C:\Program Files\Unity\Hub\Editor\2022.3.7f1\Editor\Data\MonoBleedingEdge\lib\mono\unityjit-win32\System.Windows.Forms.dll'.
Remove one of the duplicate references.'

So this fix add a check that no 2 DLLs with the same file name will be added.
This solved it for me, and might be useful .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant