Expression Blend Linked Resources Error "Unable to find the specified file"

 If you ever receive an "Unable to find the specified file" error in Expression Blend while trying to call a Linked Resource File ( like in a shared assembly where you want to save your shared resources ), called in your app.xaml like this one:

 <Application.Resources>
      <ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="/YourAssembly;Component/Resources/YourResources.xaml"/>
        </ResourceDictionary.MergedDictionaries>
      </ResourceDictionary>
    </Application.Resources>

 

Be sure that "YourAssembly" is from a project of type "WPF Custom Control Library" and NOT just a "Class Library".

 

Hope this helps,

 

 

3 Comments

  • Obviously I for instance your web-site, but you have to test that the spelling
    on quite a couple of of your posts. A few of them have been rife with spelling issues and I get a hold
    of it very bothersome to inform you. Conversely I will surely come again again!

  • As far as me being a member here, I didnt even recognize that I was a member here.
    When that the article was published I received a notification, so that I could participate in Comments,
    so perhaps which can be it. Then again we’re certainly all members in that the world
    of ideas.

  • Regards for this marvellous post, I am glad I
    detected this web site on yahoo.

Comments have been disabled for this content.