我正在尝试启用我的 VS 解决方案的增量构建。在 xaml 构建过程模板的 GUI 中,我设置"Clean Workspace"
并"None"
添加/p:IncrementalBuild=True
为 MSBuild 参数。然后我签入了对文件的更改,但是当我运行 TFS 构建时,我立即收到以下错误:
Unable to perform the get operation because the file already exists locally
Exception Message: One or more errors occurred while performing a Get operation. (type GetException)
Exception Stack Trace: at Microsoft.TeamFoundation.Build.Workflow.Activities.SyncWorkspaceInternal.ThrowIfErrorsOccurred.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)
我相信 TFS 获取了我的文件,但无法覆盖构建代理上的现有文件并出现错误。如何强制它覆盖文件?