简体   繁体   English

在 TFS2013 上构建失败并出现工作区权限错误

[英]Build failing on TFS2013 witht the workspace permissions error

We have verified the solution file is exist in the folder also it's mapped in to the local workspace.我们已经验证了解决方案文件是否存在于文件夹中,并且它已映射到本地工作区。

Source setting on the build directory set as below.构建目录上的源设置设置如下。 Also have confusion in setting build agent folder.在设置构建代理文件夹时也有混淆。 Reffered few blogs but nothing works.推荐了几个博客,但没有任何效果。

Source control folder
$/ABC Project/CAP/Spon/SponGroupP/Sponsor                         
Build agent folder
$(SourceDir)

Other Errors and Warnings
2 error(s), 0 warning(s)
 **No matching items found in $/ABC Project/CAP/Spon/SponGroupP/Sponsor in your workspace, or you do not have permission to access them.**
 Exception Message: One or more errors occurred while attempting to create a Label. (type LabelException)Exception Stack Trace:    at System.Activities.Statements.Throw.Execute(CodeActivityContext context)   at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)   at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

Can someone help me out on this please.有人可以帮我解决这个问题吗?

Update:更新:

Your file path is too long, there are two Sponsor in your folder structure.您的文件路径太长,您的文件夹结构中有两个赞助商。 Besides, try to tweak the source control path in TFS server, which may do the trick.此外,尝试调整 TFS 服务器中的源代码控制路径,这可能会奏效。 Details take a look at this question: 'CSC:CSC(0,0): Error CS2001: Source file [file] could not be found.'详细看这个问题: 'CSC:CSC(0,0): Error CS2001: Source file [file] could not be found.' when running a gated check in (C#) 运行门控签入 (C#) 时


First try to turn the label sources in Process--TF Version Control of your XAML build definition from True (default value) to False首先尝试将 XAML 构建定义的Process--TF Version Control中的标签源从True (默认值)变为False

在此处输入图片说明

This will narrow down if the issue is related to creating label or not.如果问题与创建标签有关,这将缩小范围。 If the build succeed, then you should double check if your build service account have have appropriate permissions to create labels.如果构建成功,那么您应该仔细检查您的构建服务帐户是否具有创建标签的适当权限。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM