Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Duplicate type and allowDup Option #87

Open
tenneriella opened this issue Jul 9, 2020 · 4 comments
Open

Duplicate type and allowDup Option #87

tenneriella opened this issue Jul 9, 2020 · 4 comments

Comments

@tenneriella
Copy link

Hi all
I need to use Graph package in my VS proj but when I compile this error message is outcome "ILMerge.Merge: ERROR!!: Duplicate type 'Microsoft.Graph.UploadSessionRequest' found in assembly 'Microsoft.Graph'. Do you want to use the /allowDup option?"
Of course I modified ILMerge.props file setting this value *

But I have not solved my problem.

What is wrong ? Maybe this setting?
Thanks in advance

@mike-barnett
Copy link
Contributor

If you could post the log that ILMerge writes (when you specify the /log option), then that might help show what is wrong. If that type is public, then the /allowDup option may not help.

@tenneriella
Copy link
Author

thanks Mike for your suggestion ,but i don't know how to set the log option because I'm not using command line . I am using MSBuild.ILMerge.Tasks form Visual Studio. So I don't know the corresponding property in ilmerge.props file.
As you said, that type is public . What can i use instead of allowDup?
Thanks in advance

@mike-barnett
Copy link
Contributor

Sorry, but I don't know anything about the Tasks thing. I would suggest using a command prompt and playing with ILMerge there until you can debug the problem. The /allowDup option should work: if you want it to work for all duplicate types, then you don't need to specify an argument for it. (I'm assuming that's what the asterisk is in your original question.) Have you tried that?

@tenneriella
Copy link
Author

Thanks Mike, yes I'm setting the asterisk as first solution. I will follow your suggestion to use the prompt command to debug.
Bye

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

No branches or pull requests

2 participants