在全局命名空间中找不到类型或命名空间名称“”Namespace“(您是否缺少程序集引用?)(The type or namespace name '“Namespace”' cou

编程入门 行业动态 更新时间:2024-10-25 14:26:13
在全局命名空间中找不到类型或命名空间名称“”Namespace“(您是否缺少程序集引用?)(The type or namespace name '“Namespace”' could not be found in the global namespace (are you missing an assembly reference?))

我试图通过使用VS2012引用私有项目来构建我的项目,它在本地机器上成功构建,但我正在尝试使用Visual Studio Team Services(以前的Visual Studio Online,Team Foundation Service)和Microsoft设置的构建代理找不到命名空间。

试图通过阅读其他帖子重新引用,并检查目标框架是否已设置到.Net Framework 4的所有项目,但似乎没有任何工作,我错过了什么?

I am trying to build my project by referencing private project using VS2012, it builds successfully on local machine, but I am trying to use Visual Studio Team Services (previously Visual Studio Online, Team Foundation Service) and the build agent set up by Microsoft does not find the namespace.

Tried to re-reference by reading other posts as well checking that target framework is set on all projects to .Net Framework 4, but nothing seems to work, am I missing something ?

最满意答案

如果您的解决方案有.cs文件,即类库,则通过右键单击它并选择选项构建单独构建该库,然后添加对该网站的引用,然后它将被清除。

Ok, So I solved the issue, the Visual Studio Team Services error log said that the project was not building because the build configuration was wrong and not assigned to building process, it was set to x86 I change it to Any CPU and now it was build successfully, hope this helps to someone.

更多推荐

本文发布于:2023-08-07 01:09:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1458419.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:空间   全局   中找   名称   类型

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!