由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - biuld error of C# reference of namespace in two projects (转载)
相关主题
error of create ASP.net project in Visual Studio 2013 (转载)how to create an interface file in a Visual C++ project
最初级的白痴C++问题请问visual studio里怎么能自动加一个文件到project里?
Is there any error in the code below?问个visual studio的project土问题
c++古怪问题。。。。 (转载)Question about a C++ compilation error on Visual Studio 2005
C++ Q96: function inheritance (转载)FORTRAN新手自学求助 (转载)
Visual Studio里C#的缺省namespace怎么改请教一下visual c++ project的一个问题
C++ 两个project enum value名冲突请问如何了解一个大project里程序的关系?
namespace defined in another filelinker problem in VC
相关话题的讨论汇总
话题: error话题: namespace话题: c#话题: testname1话题: reference
进入Programming版参与讨论
1 (共1页)
l******9
发帖数: 579
1
【 以下文字转载自 JobHunting 讨论区 】
发信人: light009 (light009), 信区: JobHunting
标 题: biuld error of C# reference of namespace in two projects
发信站: BBS 未名空间站 (Tue Jul 15 21:35:45 2014, 美东)
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.
p**********e
发帖数: 316
2
看上去没啥问题, 可以try这些
1) restart vs.net, 有时vs.net 会mad
2) 清空debug folder, 重新编译, 看2是不是copied over
3) 有可能是这个原因: 你确信project 2产生dll, property是build
4) 实在不行, delete重新码code

【在 l******9 的大作中提到】
: 【 以下文字转载自 JobHunting 讨论区 】
: 发信人: light009 (light009), 信区: JobHunting
: 标 题: biuld error of C# reference of namespace in two projects
: 发信站: BBS 未名空间站 (Tue Jul 15 21:35:45 2014, 美东)
: 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;

B********r
发帖数: 397
3
typo.
1 (共1页)
进入Programming版参与讨论
相关主题
linker problem in VCC++ Q96: function inheritance (转载)
should the .dll and .lib have the same name?Visual Studio里C#的缺省namespace怎么改
你妈用VS写个helloworld真难啊。C++ 两个project enum value名冲突
多projects的soluton中如何组织文件夹的结构?namespace defined in another file
error of create ASP.net project in Visual Studio 2013 (转载)how to create an interface file in a Visual C++ project
最初级的白痴C++问题请问visual studio里怎么能自动加一个文件到project里?
Is there any error in the code below?问个visual studio的project土问题
c++古怪问题。。。。 (转载)Question about a C++ compilation error on Visual Studio 2005
相关话题的讨论汇总
话题: error话题: namespace话题: c#话题: testname1话题: reference