创建一个名为
将
将此
xmlnsError
的新WPF工程。将
PresentationFramework.Aero
添加为引用。将此
ResourceDictionary
添加到App.xaml
中。<ResourceDictionary Source="/PresentationFramework.Aero,Version=4.0.0.0,Culture=Neutral,PublicKeyToken=31bf3856ad364e35,processorArchitecture=MSIL;component/themes/Aero.NormalColor.xaml"/>
这样做会显示一个警告
Assembly 'PresentationFramework.Aero,Version=4.0.0.0,Culture=Neutral,PublicKeyToken=31bf3856ad364e35,processorArchitecture=MSIL' is not referenced by this project
我已经仔细检查过版本号确实为4.0.0.0
,而且PublicKeyToken也确实为31bf3856ad364e35
。我通过导航到C:\Windows\Microsoft.NET\assembly\GAC_MSIL\PresentationFramework.Aero
以及在运行时检查AssemblyInfo来检查GAC。有没有修复此警告的方法?这是对WPF Windows 8兼容性问题的后续提问。