title: sharpdevelop Failed to load designer
body: <p>I'm using <strong>Sharpdevelop 5.1.0.5134</strong> with <strong>.NET 4.5.51209</strong>
  to make desktop application based on <strong>Windows.Forms</strong> </p>
  
  <p>At first, everything was fine, no warnings and the designer shows the form correctly and I can easily add components.</p>
  
  <p>After that I added <strong>OxyPlot</strong> correctly from the <strong>Package Management Console</strong> and I found the new <strong>PlotView</strong> component in the <strong>Custom Comonents</strong> tab.</p>
  
  <p>The problem is that I can't add the component to the Form from the tools tab, so I did it by writing the equivalents statements in the source file.</p>
  
  <p>The building process went fine and the application worked fine, but now I can't see the Form in the designer tab and instead I got this message:</p>
  
  <pre><code>Failed to load designer. Check the source code for syntax errors and check if all references are available.
  
  ICSharpCode.FormsDesigner.FormsDesignerLoadException: System.ComponentModel.Design.Serialization.CodeDomSerializerException: Could not find type 'OxyPlot.WindowsForms.PlotView'.  Please make sure that the assembly that contains this type is referenced.  If this type is a part of your development project, make sure that the project has been successfully built using settings for your current platform or Any CPU.
  
  System.ComponentModel.Design.Serialization.CodeDomSerializerException: The variable 'plot1' is either undeclared or was never assigned.
     at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.Error(IDesignerSerializationManager manager, String exceptionText, String helpLink)
     at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager manager, String name, CodeExpression expression)
     at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager manager, String name, CodeExpression expression)
     at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager manager, CodeStatement statement)
  
  
     at ICSharpCode.FormsDesigner.FormsDesignerViewContent.LoadDesigner()
     at ICSharpCode.FormsDesigner.FormsDesignerViewContent.LoadAndDisplayDesigner()
     at ICSharpCode.FormsDesigner.FormsDesignerViewContent.LoadInternal(OpenedFile file, Stream stream)
     at ICSharpCode.SharpDevelop.Workbench.AbstractViewContentHandlingLoadErrors.Load(OpenedFile file, Stream stream)
  </code></pre>
  
  <p>How can I solve this problem?</p>