4ux-nbIx/AvalonDock.Themes.VS2013

Including VS2013 Theme Causes Exception

Closed this issue · 2 comments

[PLEASE IGNORE THIS - TRIVIAL ERROR WAS THE CAUSE]

Hi @4ux-nbIx , sorry to bother you but I am attempting to include your (very nice!) VS2013 theme into my AvalonDock based project. I have downloaded your source code and it built fine. I am then referencing the "Xceed.Wpf.AvalonDock.Themes.VS2013.dll" in my host project. I am attempting

<AvalonDock:DockingManager 
        x:Name="Manager" 
        Grid.Row="1"
        DocumentsSource="{Binding Items}"
        AnchorablesSource="{Binding Tools}"
        ActiveContent="{Binding CurrentActiveItem, Mode=TwoWay}"
        LayoutUpdated="OnManagerLayoutUpdated">
    <AvalonDock:DockingManager.Theme>
        <AvalonDock:VS2013Theme/> // I get 
    </AvalonDock:DockingManager.Theme>

Note, I have changed the XAML names from Vs2013 -> VS2013 for consistancy (and this is again fine for the test projects).

It seems to resolve fine at design-time, but at run-time I get a "XamlParseException":

Additional information: Could not load file or assembly 'Xceed.Wpf.AvalonDock.Themes.VS2013, PublicKeyToken=3e4669d2f30244f4' or one of its dependencies. The system cannot find the file specified.

It all seems very trivial. Have you any idea what I am doing wrong here?

Hi Nicholas, most likely the assembly is missing in your app's output directory. Looks like MSBuild decided to not to copy it for some reason.

This was exactly the issue. My VS settings have been all over the place. Sorry to bother you...