.NET Framework Bookmark and Share   
 index > MSBuild > how to remove duplicate references to microsoft CRT in manifest?
 

how to remove duplicate references to microsoft CRT in manifest?

Hi

I build an application that uses some libraries. The embedded manifest then contains two versions of Microsoft CRT

<assemblyxmlns="urn:schemas-microsoft-com:asm.v1"manifestVersion="1.0">
<dependency>
<dependentAssembly>
<assemblyIdentitytype="win32"name="Microsoft.Windows.Common-Controls"version="6.0.0.0"publicKeyToken="6595b64144ccf1df"language="*"processorArchitecture="*"></assemblyIdentity>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly>
<assemblyIdentitytype="win32"name="Microsoft.VC80.CRT"version="8.0.50608.0"processorArchitecture="x86"publicKeyToken="1fc8b3b9a1e18e3b"></assemblyIdentity>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly>
<assemblyIdentitytype="win32"name="Microsoft.VC80.CRT"version="8.0.50727.762"processorArchitecture="x86"publicKeyToken="1fc8b3b9a1e18e3b"></assemblyIdentity>
</dependentAssembly>
</dependency>

I would like to know how Visual Studio builds this manifest and what I need to change in my project so that only one CRT is referenced.

Is there any benefit in having two CRTs referenced? I thought that the newest version of CRT that is available and of higher version than specified in the manifest will be used.

Thanks
sbaebler
Hello,

The follow link explain why it occurs and provide some solution to handle it, the author callit "Manifest Hell", sounds interesting.:-)

Manifest Hell

Hope can help you to solve the issue. If I misunderstood you, please feel free to let me know.

Regards!
Please mark the replies as answers if they help and unmark them if they provide no help.
Wesley Yao
Hi Sbaebler,

I am moving this thread from Base "Visual StudioSetup and Installation"forum to the "VisualStudio MSBuild" forum, since the issue is related to MSBuild. There are moreMSBuild experts in the "VisualStudio MSBuild" forum.

Thanks


Please remember to mark the replies as answers if they help and unmark them if they provide no help.
YiChun Chen
Hello,

The follow link explain why it occurs and provide some solution to handle it, the author callit "Manifest Hell", sounds interesting.:-)

Manifest Hell

Hope can help you to solve the issue. If I misunderstood you, please feel free to let me know.

Regards!
Please mark the replies as answers if they help and unmark them if they provide no help.
Wesley Yao

You can use google to search for other answers

Custom Search

More Threads

• Adding sca.wixlib to arguments in the LinkMSI task in Microsoft.SDC.Tasks
• how can i automate updating web references
• Can a .proj file be run from within VS? (Again)
• Wierd error when doing a website build
• Integration with MSBUILD + FXCOP + CC.NET
• AssemblyVersion Taks Error when building in Visual Studio debug configuration
• How to dynamically add to the AssemblySearchPath based the output of a custom task
• 'Specific Version' property of project reference not saved
• Fusion failure when EntLib 3.1 is used to log an error message
• MSI - Windows Installer Interview Questions