Debugging error “The Type 'xx' is defined in an assembly that is not referenced”

前端 未结 3 1037
忘掉有多难
忘掉有多难 2021-02-05 06:32

The full error is as follows:

The type \'System.Windows.Forms.Control\' is defined in an assembly that is not referenced. You must add a reference to assembl

3条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-05 07:06

    I had the same error.

    The problem was that I used a reference to a project, which uses System.Windows.Forms inside.

    The solution is to add a reference to System.Windows.Forms also in your project.

提交回复
热议问题