copy "content" files to release and debug paths

  • Thread starter Thread starter Sam
  • Start date Start date
S

Sam

I would like to put my help files and some other dependencies under source
control and have them copy themselves to the Debug and Release paths
automatically when the solution is built. ..

I have found some posts that mention using custom build actions and makefile
projects, but I've never used either and I'm having trouble finding info on
them. Please help......

Thanks in advance,
Sam
 
<ciach>

Project properties -> Common properties ->Build Events ->Post-build Event
Command Line

<code>
IF NOT "$(ConfigurationName)"=="Distribution" GOTO Other
"C:\Program Files\Microsoft Visual Studio .NET 2003\PreEmptive
Solutions\Dotfuscator Community Edition\dotfuscator.exe" /appl:exe
/in:"$(TargetPath)" /out:"$(ProjectDir)Bin\$(ConfigurationName)"
:Other
copy "$(ProjectDir)WydrukTXT.js" "$(TargetDir)"
IF "$(ConfigurationName)"=="Debug" GOTO End
"C:\Program Files\Inno Setup 4\Compil32.exe" /cc
"$(ProjectDir)$(ProjectName)$(ConfigurationName).iss"
copy "$(TargetDir)$(TargetName)Install.exe" "$(ProjectDir)"
:End
</code>

pozdrawiam

Przemek Sulikowski
 
Back
Top