Solution.metaproj 错误 MSB3202: The project file 'xxx' was not found [英] Solution.metaproj error MSB3202: The project file 'xxx' was not found
问题描述
我有一个包含两个主要文件夹的 TFS 项目:
I have a TFS Project with two main folders:
项目
--文件夹 1
----图书馆A
--Folder2
----AppA 引用 LibraryA
----AppA referencing LibraryA
当我构建 AppA 解决方案时,TFS 无法构建,并提供以下错误:
When I build AppA solution, TFS fails to build, providing the following Error:
C:\Builds\1\Project\AppA\Sources\Folder2..\Folder1\LibraryA\LibraryA.csproj
C:\Builds\1\Project\AppA\Sources\Folder2..\Folder1\LibraryA\LibraryA.csproj
我认为 TFS 正在做类似 $(CurrentBuildDir)$(ProjectReferenceSourceLocation) 的事情,它只是将 ..\Folder1\LibraryA 部分粘贴在那里.
I think TFS is doing something like $(CurrentBuildDir)$(ProjectReferenceSourceLocation), which just sticks the ..\Folder1\LibraryA part on there.
我知道共享程序集可能应该在他们自己的解决方案中构建,然后引用构建副本,但这就是它的方式.
I know shared assemblies should probably be build in their own solution and then references made to the build copies but this is how it is.
任何想法如何让 TFS 知道如何导航出解决方案文件夹以查找引用的项目?
Any ideas how to get TFS to know how to navigate out of the solution folder to find referenced projects?
TIA
推荐答案
这里可能存在的缺陷是您没有将 $/Project1/Folder1/LibraryA
下的源代码管理路径设置为活动构建定义的工作区"选项卡中的工作文件夹.
如果是这种情况,则在构建和构建期间不会将源下载到构建代理.自然编译会因为缺少源代码而失败.
A possible pitfall here is that you haven't set the source control path under $/Project1/Folder1/LibraryA
as an active Working folder in the Workspace tab of your build definition.
If that's the case, sources won't be downloaded to the build-Agent during Build & naturally the compile is going to fail complaining about missing sources.
这篇关于Solution.metaproj 错误 MSB3202: The project file 'xxx' was not found的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!