TFS Incremental build error - Unable to perform the get operation because the file already exists locally

て烟熏妆下的殇ゞ 提交于 2019-12-01 19:23:46

The file is writable. When there's a writable file, get will not overwrite it unless the /overwrite option is used. However, you would need to figure out how the file is becoming writable. You may want to go back to the default option of creating a new workspace, running a build with verbose logs, and see what is making the file writable.

In XAML Build, you can add a GetOptions input for the SyncWorkspace activity. <mtbwa:SyncWorkspace _locID="Activity037" _locAttrData="DisplayName" DisplayName="Get Workspace" VersionOverride="[GetVersion]" Workspace="[Workspace]" GetOptions="[Microsoft.TeamFoundation.VersionControl.Client.GetOptions.Overwrite]">

See DefaultTemplate.11.1.xaml as a go-by.

TfvcTemplate.12.xaml doesn't expose a way to do it.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!