Visual Studio和命名空间

问题描述:

我正在尝试从一个VS2008项目移动一些代码到另一个。Visual Studio和命名空间

我从代码完美的作品中完成的项目,我不会在将代码复制到新项目时以任何方式更改代码。

的代码是沿着线:

using System; 
using System.Collections; 
using System.Collections.Generic; 
using System.Drawing; 
using System.Text; 
using System.Diagnostics; 

using System.ComponentModel; 
using System.ComponentModel.Design; 
using System.ComponentModel.Design.Serialization; 
using System.Reflection; 
using System.Windows.Forms; 
using System.Windows.Forms.Design; 

namespace CommonTools 
{ 

public class ColumnCollectionEditor : CollectionEditor 
{ 
    ..... 
} 
} 

我的是,在“新”项目VS没有找到“CollectionEditor”所提供的命名空间中的问题,因此该项目不会建。

无论是“新”与“旧”项目的目标.NET 3.5

我要去的地方错在这里的任何想法。

你有

System.Design.dll 

组件添加到您的refenerances?

,你可以在其中看到的命名空间和组装是在CollectionEditor Class

您使用“转到定义”上CollectionEditor在原来的解决方案,看看你应该包括哪些尝试?

确保您的新项目引用与旧项目相同的程序集。

MSDNSystem.ComponentModel.Design.ColectionEditorSystem.Design.dll

你有包含这个“System.Design.dll”吗?