从 C# 中的外部项目文件夹访问类
首先是我的文件结构
Services.Abstraction.Common
Services.Abstraction.Claims
Services.Abstraction.Clearance
在 Visiual Studio 2010 中,我位于 Claims 项目中,我想从 Common 层访问类,该层与 Claims 和 Clearance 处于同一级别。我在 Claims 项目中使用下面的命名空间。但是,它说 Common 不存在,并且 Common 文件夹中的所有功能也不存在。
using System.Collections.Generic;
using System;
using System.Xml;
using System.Xml.Serialization;
using Services.Abstraction.Common;
我该如何解决这个问题?我的命名空间是否有错误,或者我是否必须向程序集中添加一些内容?
First off here is my file structure
Services.Abstraction.Common
Services.Abstraction.Claims
Services.Abstraction.Clearance
In Visiual Studio 2010, I am in the Claims project and I want to access classes from the Common layer which is on the same level as both Claims and Clearance. I use the namespace below in the Claims project. However it is saying the Common doesn't exists and all the functions that are in the Common folder also don't exist.
using System.Collections.Generic;
using System;
using System.Xml;
using System.Xml.Serialization;
using Services.Abstraction.Common;
How do I fix this? Do I have it wrong in the namespace or do I have to add something to my assembly?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
http://msdn.microsoft.com/en- us/library/7314433t(v=vs.80).aspx
这里没什么可说的...这个链接解释了如何在 Visual Studio 中添加引用,可能你的问题是你缺少对其他 dll 或项目的引用,我错了吗?
http://msdn.microsoft.com/en-us/library/7314433t(v=vs.80).aspx
There is not much to say here... this link explain you how to add a reference in visual studio, probably you problem is that you are missing a reference to the other dll or project, am I wrong?