error c1010098: Element <dependency> containing multiple Key Elements: "dependentAssembly" in the manifest snippet when compiling a DLL

  • Thread starter Thread starter Pradish.MP
  • Start date Start date
P

Pradish.MP

Guest
Hi all,

Thank you for taking time out to look into this issue.

I have an Application which is dependent on Four dlls, Namely the following, but there is another dll(main.dll) which is also dependent on the same four dlls but are linked to a another versions of these DLLs , so i am using manifest to solve this issue, but iam stuck as i get an error while compiling the Main.dll

  1. FirstComponent.dll
  2. SecondComponent.dll
  3. ThirdComponent.dll
  4. FourthComponent.dll

the first three dlls are released by a Team and hence all of them have the same version, the FourthComponent.dll is buitl by another team hence has a different version.

My Question is how to mention this in the .Manifest file

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">

<dependency>
<dependentAssembly>
<assemblyIdentity name="MyCompany.FirstComponent"
version="2.0.0.0"
type="win32"
processorArchitecture="x86"/>


<file name="FirstComponent.dll"/>
<file name="SecondComponent.dll"/>
<file name="ThirdComponent.dll"/>

<assemblyIdentity name="MyCompany.FourthComponent"
version="5.0.0.0"
type="win32"
processorArchitecture="x86"/>

<file name="FourthComponent.dll"/>
</dependentAssembly>

</dependency>
</assembly>

Continue reading...
 
Back
Top