Create a new WPF project called: xmlnsError
Add link to PresentationFramework.Aero
Add this ResourceDictionary to App.xaml :
<ResourceDictionary Source="/PresentationFramework.Aero,Version=4.0.0.0,Culture=Neutral,PublicKeyToken=31bf3856ad364e35,processorArchitecture=MSIL;component/themes/Aero.NormalColor.xaml"/>
A warning is displayed.
Assembly 'PresentationFramework.Aero,Version=4.0.0.0,Culture=Neutral,PublicKeyToken=31bf3856ad364e35,processorArchitecture=MSIL' is not referenced by this project
I checked twice to make sure that the version is actually 4.0.0.0 , and the PublicKeyToken is actually 31bf3856ad364e35 , moving to C:\Windows\Microsoft.NET\assembly\GAC_MSIL\PresentationFramework.Aero , and also checking the GAC at runtime. by looking at AssemblyInfo with AppDomain.CurrentDomain.GetAssemblies();
Is there any way to fix this warning? This is the next question. Windows 8 WPF Compatibility Problem
Shaku
source share