VisualStudio bug?

后端 未结 3 1508
借酒劲吻你
借酒劲吻你 2021-01-03 18:06

In VS 2010 created a new WinForm project. Added a new UserControl WPF.

2 compile-time errors appeared:

Error 1 The type \'Sys

3条回答
  •  误落风尘
    2021-01-03 18:49

    In my case "System.Xaml" was added to the project automatically but giving the same type of error:

    The type name 'IComponentConnector' could not be found in the namespace 'System.Windows.Markup'. This type has been forwarded to assembly 'System.Xaml, Version=4.0.0.0, Culture=neutral,.... .' Consider adding a reference to that assembly.

    I've solved the problem by, just deleting the "System.Xaml" from References and again adding "System.Xaml, Version=4.0.0.0" from Framework.

提交回复
热议问题