在VSO上的vnext构建定义中复制项目中未包含的其他文件 [英] Copy additional files not included in the project in vnext build definition on VSO
问题描述
我们可以使用XAML构建定义和发布配置文件包含来自其他项目的其他文件。
< Project> &NBSP; &NBSP;
< PropertyGroup>
&NBSP; < PipelineCollectFilesPhaseDependsOn>
&NBSP; &NBSP; JSLinq;
&NBSP; &NBSP; $(PipelineCollectFilesPhaseDependsOn);
&NBSP; < / PipelineCollectFilesPhaseDependsOn>
< / PropertyGroup>
< Target Name =" JSLinq">
&NBSP; < ItemGroup>
&NBSP; &NBSP; < appAdd Include =" .. \XYZ \Scripts\JSLinq \ ** \ *" />
&NBSP; &NBSP; < FilesForPackagingFromProject Include ="%(appAdd.Identity)">
&NBSP; &NBSP; &NBSP; < DestinationRelativePath> Scripts\JSLinq \%(RecursiveDir)%(文件名)%(扩展名)< / DestinationRelativePath>
&NBSP; &NBSP; < / FilesForPackagingFromProject>
&NBSP; < / ItemGroup>
< / Target>
< / Project>
我们如何做在VSO上的vnext构建定义中的相同任务。
问候,
Dileep Kumar Verma
Dileep
< blockquote>
嗨Dileep Kumar Verma,
感谢您发布此处。
您是否使用过Visual Studio Team Service(在云端)或Team Foundation Server(内部部署)?如果您使用Team Foundation Server,则可以使用
复制和发布构建工件将其他文件复制到指定的文件夹,然后将其发布到服务器或共享文件夹。
最好的问候
Limitxiao Gao
Hi,
We can include additional files from another project using XAML build definition and Publish profile.
<Project>
<PropertyGroup>
<PipelineCollectFilesPhaseDependsOn>
JSLinq;
$(PipelineCollectFilesPhaseDependsOn);
</PipelineCollectFilesPhaseDependsOn>
</PropertyGroup>
<Target Name="JSLinq">
<ItemGroup>
<appAdd Include="..\XYZ\Scripts\JSLinq\**\*" />
<FilesForPackagingFromProject Include="%(appAdd.Identity)">
<DestinationRelativePath>Scripts\JSLinq\%(RecursiveDir)%(Filename)%(Extension)</DestinationRelativePath>
</FilesForPackagingFromProject>
</ItemGroup>
</Target>
</Project>
How we can do same Task in vnext build definition on VSO.
Regards,
Dileep Kumar Verma
Dileep
Hi Dileep Kumar Verma,
Thank you for posting here.
Did you use Visual Studio Team Service(On cloud) or Team Foundation Server(On premises)? If you use Team Foundation Server, you could use the Copy And Publish Build Artifacts task to copy the additional files to the specified folder, then publish it to the server or shared folder.
Best Regards
Limitxiao Gao
这篇关于在VSO上的vnext构建定义中复制项目中未包含的其他文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!