在VSO上的vnext构建定义中复制项目中未包含的其他文件 [英] Copy additional files not included in the project in vnext build definition on VSO

查看:62
本文介绍了在VSO上的vnext构建定义中复制项目中未包含的其他文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我们可以使用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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆