Can't build (or publish) if I want XP styles with a manifest file  
Author Message
Luis Alonso Ramos





PostPosted: Windows Forms General, Can't build (or publish) if I want XP styles with a manifest file Top

Hello,

I currently have my application using a manifest file to get XP visual styles (because I know that Application.EnableVisualStyles() is buggy -- at least it was in .NET 1.1).

My manifest file looks like this:

< xml version="1.0" encoding="UTF-8" standalone="yes" >
<assembly
xmlns="urn:schemas-microsoft-com:asm.v1"
manifestVersion="1.0">
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="X86"
name="Sistema Integral Curves"
type="win32" />
<description>Windows XP Visual Styles</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*" />
</dependentAssembly>
</dependency>
</assembly>

And when I try to build, I get the following error:

Could not find file 'Microsoft.Windows.Common-Controls, Version=6.0.0.0, Culture=*, PublicKeyToken=6595b64144ccf1df, ProcessorArchitecture=X86, Type=win32'. Sic.Client

If I remove the dependency from the manifest file, everything is built fine. Any ideas

Thanks in advance,

Luis Alonso Ramos



Windows Forms13  
 
 
Jay Shrestha





PostPosted: Windows Forms General, Can't build (or publish) if I want XP styles with a manifest file Top

Hi,

Please review the followign KB

http://support.microsoft.com/ kbid=907757

This explains why you are getting that error and how to work around it.

Thanks,

Jay Shrestha


 
 
Luis Alonso Ramos





PostPosted: Windows Forms General, Can't build (or publish) if I want XP styles with a manifest file Top

Hello Jay,

Thanks for your reply. Unfortunately that didn't solve my problem. According to the KB article, the error should be a reference to Microsoft.Windows.CommonLanguageRuntime, and the error I am getting is a reference to Microsoft.Windows.Common-Controls.

Also, of the conditions listed in the article that should be met, I only partially meet one:

  • Yes, I have a project reference but it's to a class library (DLL) and not another application
  • I am publishing to a local folder, not to a UNC share or web location

Thanks anyway for your reply, I appreciate it!

Luis Alonso Ramos


 
 
DanMoseley





PostPosted: Windows Forms General, Can't build (or publish) if I want XP styles with a manifest file Top

I think Winforms guys will know better than us what's up here. I'll move this thread.