如何在xml中编辑文件路径值以接受TFS构建定义中的变量?
我查过谷歌,但没有找到结果 我希望在xml视图中执行此操作的原因是,designer视图未注册以下xml: 代码片段1 我将代码段2更改为: 总而言之,我只是将所有的“+”替换为“&;”我把空格放在“p”和“;”之间因为stackoverflow将其呈现为&否则,我还用方括号封装了FilePath和NewFilePath值 我不知道我为什么需要方括号,但现在它可以工作了。谢谢你如何在xml中编辑文件路径值以接受TFS构建定义中的变量?,tfs,tfsbuild,Tfs,Tfsbuild,我查过谷歌,但没有找到结果 我希望在xml视图中执行此操作的原因是,designer视图未注册以下xml: 代码片段1 我将代码段2更改为: 总而言之,我只是将所有的“+”替换为“&;”我把空格放在“p”和“;”之间因为stackoverflow将其呈现为&否则,我还用方括号封装了FilePath和NewFilePath值 我不知道我为什么需要方括号,但现在它可以工作了。谢谢你 <aa1:RenameFile FilePath="\\BuildServer1\Website\web.
<aa1:RenameFile FilePath="\\BuildServer1\Website\web.config" sap:VirtualizedContainerService.HintSize="200,22" NewFilePath="\\BuildServer1\Website\web.config"
xmlns:aa1="clr-namespace:AssemblyVersion.Activities;assembly=CustomActivities" />
<aa1:RenameFile
FilePath="WebConfigFolderLocation + "\" + OldFileName" sap:VirtualizedContainerService.HintSize="200,22"
NewFilePath="WebConfigFolderLocation + "\" + OldFileName + "TemporaryFile2014""
xmlns:aa1="clr-namespace:AssemblyVersion.Activities;assembly=CustomActivities" />
xmlns:aa1="clr-namespace:AssemblyVersion.Activities;assembly=CustomActivities"
<aa1:RenameFile FilePath="[WebConfigFolderLocation & "\" & OldFileName]" sap:VirtualizedContainerService.HintSize="200,22" NewFilePath="[WebConfigFolderLocation & "\" & OldFileName & "TemporaryFile2014"]"
xmlns:aa1="clr-namespace:AssemblyVersion.Activities;assembly=CustomActivities" />