Use xcopy in post-built event of Visual Studio.Net

The data access example shipped with the Microsoft enterprise library showed an example:

xcopy /C /I /R /Y “$(ProjectDir)dataConfiguration.config” “$(ProjectDir)$(OutDir).”
copy “$(ProjectDir)DataAccessQuickStart.exe.manifest” “$(ProjectDir)$(OutDir).”

where the options for xcopy are:

/C Continue copying even if an error occurs.

/I If in doubt always assume the destination is a folder
e.g. when the destination does not exist.

/R Overwrite read-only files.

/Y (Windows 2000 only) Suppress prompt to confirm overwriting a file.
may be preset in the COPYCMD env variable.

More detail of the xcopy command can be found here.