如何在构建脚本中使用XCopy而不是Windows中的复制

问题描述 投票:0回答:1

更早地将我的dot-net项目部署到我的远程服务器中,我在一个nant构建配置文件中使用copy命令。该命令如下所示。

<target name="Deploy">
    <copy  todir="${path.to.the.directory}" overwrite="true">
        <fileset basedir="${Bin.Path}">
            <include name="*.*" />          
        </fileset>
    </copy>
</target>

现在随着项目的增长,我在$ [bin.path]文件夹中有了两个新文件夹,现在我无法使用copy命令将可执行文件复制到输出文件夹。

我该怎么办?

搜索后,我发现可以使用XCopy。但是我没有获得如何将其集成到类似于上面显示的构建脚本中的方法。

xml build command-prompt nant xcopy
1个回答
5
投票

我不知道您为什么得出不能使用<copy>任务的结论。

© www.soinside.com 2019 - 2024. All rights reserved.