2017-08-10 7 views
0

J'ai donc un projet WPF et un SharedProject dans une solution.L'assembly 'SharedProject1' n'est pas référencé par ce projet

Le SharedProject a un fichier ResourceDictionary. J'ai fait une référence à SharedProject de mon projet WPF.

enter image description here

Mais lorsque je tente de référencer le ResourceDictionaryit donne le message: «Assemblée « SharedProject1 » est pas visé par ce projet.

<Window x:Class="WPF.MainWindow" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:local="clr-namespace:ietstesten" 
    mc:Ignorable="d" 
    Title="MainWindow" Height="350" Width="525"> 
<Window.Resources> 
    <ResourceDictionary Source="pack://application:,,,/SharedProject1;component/Dictionary1.xaml" /> 
</Window.Resources> 
<Grid> 

</Grid> 

Répondre