c# - "Assembly is not referenced by this project" Error in a WPF Resource Dictionary -


create new wpf project called: xmlnserror

add reference presentationframework.aero

add resourcedictionary app.xaml:

<resourcedictionary source="/presentationframework.aero,version=4.0.0.0,culture=neutral,publickeytoken=31bf3856ad364e35,processorarchitecture=msil;component/themes/aero.normalcolor.xaml"/> 

doing shows warning of

assembly 'presentationframework.aero,version=4.0.0.0,culture=neutral,publickeytoken=31bf3856ad364e35,processorarchitecture=msil' not referenced project 

i've double-checked make sure version 4.0.0.0 , publickeytoken 31bf3856ad364e35 navigating c:\windows\microsoft.net\assembly\gac_msil\presentationframework.aero checking gac @ runtime looking @ assemblyinfo appdomain.currentdomain.getassemblies();

is there way fix warning? follow-up question wpf windows 8 compatability issue

normally, not need specify assembly version, culture, , key when using resources assembly. following example compiles without warnings:

<resourcedictionary source="/presentationframework.aero;component/themes/aero.normalcolor.xaml"/> 

Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -