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

前端 未结 3 988
忘掉有多难
忘掉有多难 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 06:43

    Use something like NDepend or Reflector or the Object Browser to check the dependencies of the assemblies you depend on.

    I cannot think of any other way given the info above.

提交回复
热议问题