ビルドが成功したら、プロジェクト ファイルとフォルダーを bin\debug フォルダーにコピーしたいと思います。xcopy にそれを実行させようとしていますが、0 個のファイルをコピーするか、周期的にコピーできないと表示されます。
私がやろうとしているのは、この質問に似ています:これ
が私のバッチファイルです:
@echo off
REM Set up the files and folders to exclude
echo \bin\ > exclude.txt
echo exclude.txt >> exclude.txt
echo Helper.cs >> exclude.txt
echo Program.cs >> exclude.txt
REM Set up the variables
set sourceBase="D:\Devprojects\WebApplications\GenerateTabbedHTML"
set destinationBase="D:\Devprojects\WebApplications\GenerateTabbedHTML\bin\Debug\"
set params=/E /C /I /R /Y /Exclude:exclude.txt
xcopy %sourceBase% %destinationBase% %params%
私はこれを正しい方法で行っていますか?または、これを達成するためのより簡単な方法はありますか?