Thomas Gathings II
hey buddy, the truth hurts.

Using Enterprise Library? Use a Post Build Event for pain-free config file copying

Thursday, December 29, 2005 7:02 PM

Using a post-build event can be a time saver. You can create command lines in the project property pages (right-click the project, say your winform or console, in the solution explorer and then choose 'Properties'). Under common properties, choose 'Build Events'. Then click the ellipsis beside Post-build Command Line.

In this dialog, you can run commands and call other programs. For this topic, enter this simple one-liner to have all those Enterprise Library config files nicely copied to your output directory:

copy $(ProjectDir)*.config $(ProjectDir)$(OutDir)

 


Feedback

# re: Using Enterprise Library? Use a Post Build Event for pain-free config file copying

<br>IWC hamilton Watches<br>Omega movado Watches 7/10/2009 2:16 AM | watches

Post a comment