Closed icnocop closed 5 years ago
The same thing happens after this error:
1>C:\MyAssembly\packages\ILMerge.MSBuild.Task.1.0.5\build\ILMerge.MSBuild.Task.targets(13,5): error : ILMerge.Merge: ERROR!!: Duplicate type 'MyOtherType' found in assembly 'MyOtherAssembly'. Do you want to use the /allowDup option?
I'm using this with the nuget package ILMerge by mbarnett v3.0.21.
This appears to be same issues described in here #16 where ILMerge's target is trying to override Visual Studio's output. If you want ILMerge to also produce a pdb file your best bet is to output to a different folder. This can be achieved through the #configuration file.
Hi.
Thank you for ILMerge.MSBuild.Task.
When I try to build my assembly and there's a missing (indirect) assembly reference, I get the following error:
After I add the missing reference and rebuild, I get an unexpected error:
The issue is that a file handle to
bin\Debug\MyAssembly.pdb
is left open after the first build error.As a work-around, I have to close Visual Studio, re-open the solution, and rebuild again.
Thank you.