前段时间,我在Microsoft Visual C# 2008 Express Edition中编写了一个小程序。其中包括一个名为“ProblemReport.cs”的文件,它有自己的表单和ProblemReport类。
现在我正在编写一个新程序,想要重用这些代码。(仍在使用MS Vis C# 2008 express)
在我的新程序中,在C# Solution Explorer中,我右键单击我的项目,选择“添加现有项...”,然后添加ProblemReport.cs、ProblemReport.designer.cs和ProblemReport.resx。
我错过了哪一步呢?当我回到我的新程序的主窗体,并尝试实例化一个新的“ProblemReport”实例时,我收到以下错误信息:
“The type of namespace name 'ProblemReport' could not be found (are you missing a using directive or an assembly reference?)”
很明显,我需要做其他事情才能使它工作...只是不确定是什么!
-Adeena