title: Missing System.Windows.Controls.DataVisualization.Charting assembly reference
body: <p>Noob question guys: I'm trying to understand WPF technology, and specifically I will have a project that needs charts. I have added the reference 
  <a href="https://i.stack.imgur.com/ua1Qz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ua1Qz.png" alt="enter image description here"></a></p>
  
  <p>In the XAML i was advised to add: (taken from here : <a href="https://mitchelsellers.com/blogs/2011/04/20/wpf-chart-styling-explained" rel="nofollow noreferrer">https://mitchelsellers.com/blogs/2011/04/20/wpf-chart-styling-explained</a>)</p>
  
  <pre><code>xmlns:datavis="clr-namespace:System.Windows.Controls.DataVisualization;assembly=System.Windows.Controls.DataVisualization.Toolkit"
      xmlns:charting="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit"
  </code></pre>
  
  <p>However when it then try add a Chart in the XAML it gives the following error.</p>
  
  <blockquote>
    <p>Severity  Code    Description Project File    Line    Suppression State
    Error       The name "chart" does not exist in the namespace "clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit". 
    Error       The type 'charting:chart' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built
    Error       The tag 'chart' does not exist in XML namespace 'clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit'. </p>
  </blockquote>
  
  <p>What am I missing/not understanding?</p>
  
  <p>The XAML gives the following error.
  <a href="https://i.stack.imgur.com/AcIqw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AcIqw.png" alt="enter image description here"></a></p>
  
  <p>But when i look at the Toolkit in the object browser, i see the charting/chart</p>
  
  <p><a href="https://i.stack.imgur.com/GlCPw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GlCPw.png" alt="enter image description here"></a></p>