This is a migrated thread and some comments may be shown as answers.

Assembly 'Telerik.Windows.Themes.Green' is not referenced by this project

0 Answers 101 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Виктор
Top achievements
Rank 1
Виктор asked on 24 Mar 2018, 08:03 PM

A project I'm working on for a client, that uses Telerik WPF controls gives errors in VS 2015 XAML Designer.

The project builds though, but the designer is not able to render the XAML, and this is important at this particular occasion.

For this XAML code produces the error: Assembly 'Telerik.Windows.Themes.Green' is not referenced by this project

<Application 
    x:Class="nspace.App" 
    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:Custom="http://schemas.microsoft.com/wpf/2008/toolkit"
>
    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Green;component/Themes/System.Windows.xaml" />
                <ResourceDictionary Source="/Telerik.Windows.Themes.Green;component/Themes/Telerik.Windows.Controls.xaml" />
                <ResourceDictionary Source="/Telerik.Windows.Themes.Green;component/Themes/Telerik.Windows.Controls.Chart.xaml" />
                <ResourceDictionary Source="/Telerik.Windows.Themes.Green;component/Themes/Telerik.Windows.Controls.Navigation.xaml" />
                <ResourceDictionary Source="/Telerik.Windows.Themes.Green;component/Themes/Telerik.Windows.Controls.Docking.xaml" />
                <ResourceDictionary Source="/Telerik.Windows.Themes.Green;component/Themes/Telerik.Windows.Controls.Input.xaml" />
                <ResourceDictionary Source="/Telerik.Windows.Themes.Green;component/Themes/Telerik.Windows.Controls.GridView.xaml" />
            </ResourceDictionary.MergedDictionaries>
            <BooleanToVisibilityConverter x:Key="BoolToVis" />

        </ResourceDictionary>
    </Application.Resources>
</Application>

 

And everywhere through the project where some control is used, for example : "<telerik:Label" produces " "The name "Label" does not exist in the namespace"http://schemas.telerik.com/2008/xaml/presentation". 

 

Also looks like this is an issue only under VisualStudio 2015. I have tried cleaning the solution, rebuilding, changing to debug/release, adding attribute and manually deleting the shadow cache of visual studio but to no avail.

 

I will greatly appreciate your help. Thank you.

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
Виктор
Top achievements
Rank 1
Share this question
or