我试图通过使用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.
更多推荐
发布评论