简体   繁体   English

无法从我的解决方案中的新项目添加新引用

[英]Can not add a new reference from an new project in my solution

I did this thousand time but now it doesn't work. 我做了这千次,但是现在不起作用了。 I added a new project to my current solution. 我在当前解决方案中添加了一个新项目。 then I added a reference from the new project to the existing one. 然后我将新项目中的参考添加到现有项目中。 but I always get the error when I trying to build: 但是在尝试构建时总是会出现错误:

Error 2 The type or namespace name 'AccessClass' could not be found (are you missing a using directive or an assembly reference?) 错误2找不到类型或名称空间名称'AccessClass'(您是否缺少using指令或程序集引用?)

I tried different things, cleanup the solution, rebuild, etc. without success. 我尝试了不同的事情,清理了解决方案,进行了重建等,但均未成功。 the solution is under source control (TFS). 该解决方案处于源代码控制(TFS)下。 but this should not be a problem, isn't it?? 但这应该不是问题,不是吗?

any suggestions to solve this issue? 有什么解决这个问题的建议吗?

thanks, tro 谢谢,tro

check on the configuration manager of the solution in vs2012. 在vs2012中检查解决方案的配置管理器。 It might not be building your new project in which case there is no dll or exe to reference. 在这种情况下,可能没有构建新项目,而没有dll或exe可供参考。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在新解决方案中将现有服务引用添加到新项目 - Add existing service reference to a new project in a new solution 将共享项目添加到新解决方案 - Add a Shared Project to a new solution 如何将新项目添加到现有项目并从新项目创建 dll 文件? - How can i add a new project to my existing already project and create a dll file from the new project? 将新项目添加到解决方案中 - Adding new project to the solution 将 Web 应用项目添加到我的解决方案中,并且解决方案中的其他项目已经使用 .net 框架,我可以将 .net 核心用于新项目吗? - adding a web app project to my solution, and the other projects in the solution already use .net framework, can I use .net core for the new project? 无法在VS2012中添加新的monogame内容项目到解决方案 - Can't add new monogame content project to solution in VS2012 在我的解决方案中将参考项目winform添加到我的单元测试项目会导致“参考错误” - Add reference project winform to my unit test project in my solution causes "reference error" ENVDTE - 将新项目添加到现有解决方案并将其定位到特定文件夹中 - ENVDTE - Add new project to existing solution and locate it in a specific folder C# UWP - 无法在同一解决方案中添加对项目的引用 - C# UWP - Can't add reference to project in same solution 尝试添加对我的解决方案的引用 - Trying to add a reference to my solution
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM