Copy to Output Directory copies folder structure but only want to copy files

后端 未结 8 1874
谎友^
谎友^ 2020-11-27 12:05

I have a VS2008 I want to copy certain files from a directory into my /bin/ folder. I have set the files (located in /common/browserhawk/) to \"Co

相关标签:
8条回答
  • 2020-11-27 12:45

    I ended up adding a step to the nant build file to copy after successful compliation

    <target name="action.copy.browserhawk.config" depends="compile.source">
        <copy todir="${App.Web.dir}/bin/" includeemptydirs="false">
            <fileset basedir="${browserhawk.config.dir}">
                <include name="bhawk_bb.dat" />
                <include name="bhawk_sp.dat" />
                <include name="browserhawk.properties" />
                <include name="maindefs.bdd" />
                <include name="maindefs.bdf" />
                <include name="BH_PRO.lic" />
            </fileset>
        </copy>
        <echo message="COPY BROWSERHAWK CONFIG: SUCCESS   ${datetime::now()}" />
    </target>
    
    0 讨论(0)
  • 2020-11-27 12:51

    You could build a batch file to copy the files and execute it as a post-build event.

    0 讨论(0)
提交回复
热议问题