Label component is not recognized by Visual Studio's Form Designer
<p>I develop small labwork project in C++/CLR with WinForms UI. So, when I add any label on my form, Form Designer shows the following error:</p>

<pre><code> C++ CodeDOM parser error: Line: 185, Column: 17 --- Unknown type ''. 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.     
</code></pre>

<p>Call stack: </p>

<pre><code>in Microsoft.VisualC.CppCodeParser.OnMethodPopulateStatements(Object sender, EventArgs e)
in System.CodeDom.CodeMemberMethod.get_Statements()
in System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration declaration)
in System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)
in Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
in System.ComponentModel.Design.Serialization.BasicDesignerLoader.BeginLoad(IDesignerLoaderHost host)  
</code></pre>

<p>There is definition and initialisation of all the form controls:</p>

<pre><code>  //Definition
private: RichTextBox^  richTextBox1;
private: Button^  button1;
private: Button^  button2;
private: Button^  button3;
private: Button^  button4;
private: TextBox^  textBox1;
private: Button^  button5;
private: Button^  button6;
private: Button^  button7;
private: System::Windows::Forms::Label^  label1;

  //Initialisation
        this-&gt;richTextBox1 = (gcnew System::Windows::Forms::RichTextBox());
        this-&gt;button1 = (gcnew System::Windows::Forms::Button());
        this-&gt;button2 = (gcnew System::Windows::Forms::Button());
        this-&gt;button3 = (gcnew System::Windows::Forms::Button());
        this-&gt;button4 = (gcnew System::Windows::Forms::Button());
        this-&gt;textBox1 = (gcnew System::Windows::Forms::TextBox());
        this-&gt;button5 = (gcnew System::Windows::Forms::Button());
        this-&gt;button6 = (gcnew System::Windows::Forms::Button());
        this-&gt;button7 = (gcnew System::Windows::Forms::Button());
        this-&gt;label1 = (gcnew System::Windows::Forms::Label());
</code></pre>

<p>When I'm trying to change namespace of the <code>Label</code> in the definition, Form Designer shows me another error:</p>

<pre><code>   C++ CodeDOM parser error: Line: 298, Column: 27 --- Member AutoSize not found in class System.Reflection.Emit.Label     
</code></pre>

<p>As I can see, it doesn't recognize <code>Label</code> as <code>System::Windows::Forms</code> component and hence won't render my form. Any operations with namespaces in initialisations and definitions don't help. Most interesting part is that project compiles successfully.</p>

<p>So, is there any way to fix it?</p>