无法为此文件显示Designer,因为其中的任何类都不能设计

时间:2014-06-17 13:09:19

标签: c# winforms .net-3.5

首先,我知道关于SO的这个特定错误存在大量问题,但是他们的解决方案对我来说都不是特别可行(例如确保使用特定的.NET版本)

我有一些课程,不会发出警告。这是其中之一(他们现在只是空壳)

using Infrastructure.Common.Controls;

namespace WorkSpace.Accounts
{
    public interface ICtlAccountsContacts
    {}

    public partial class CtlAccountsContacts : BoundControl, ICtlAccountsContacts
    {
        public CtlAccountsContacts()
        {
            InitializeComponent();
        }
    }
}

但是,这个类确实会在标题中引发警告。

using Infrastructure.Common.Controls;

namespace WorkSpace.Accounts
{
    public interface ICtlAccountsInternational
    {}

    public partial class CtlAccountsInternational : BoundControl, ICtlAccountsInternational
    {
        public CtlAccountsInternational()
        {
            InitializeComponent();
        }
    }
}

BoundControl是一个继承自DevExpress'XtraUserControl的自定义类,它继承自System.Windows.Forms.UserControl所以我不明白为什么我应该能够在设计视图中查看一个控件不是另一个。

他们是同一个项目的一部分,就像我说的那样名称空间。我已经尝试过各种Build,Rebuild,reboot的组合......我能想到的一切。仍然得到警告。

0 个答案:

没有答案
相关问题