l******9 发帖数: 579 | 1 I am doing C# programming on Visual Studio 2013 win 7.
in project 1 :
using test.name.abc; // error: type or namespace "test" cannot be found.
public class testName2 : testName1 // build error here
{
public int id;
}
in project 2 :
namespace test.name.abc
{
public class testName1
{
public int dd;
}
}
I have added reference of dll file generated from project2 in project1. I
also made the build dependence as project1 depends on project2.
But, I always got build error of
Error 10 The type or namespace name 'testName1' could not be found (
are you missing a using directive or an assembly reference?) C:my_pathmyFile
.cs
Any help would be appreciated. | R*****i 发帖数: 2126 | 2 错误信息跟您贴出来的code不大匹配, testName1明明是个Class, 怎么就变成了
namespace?
您既然在project1的reference里加了project2, 能不能在project1的references里,用
鼠标右键选project2, 并点击"View in Object Browser", 看看project2里究竟有神马
? |
|