Old blog. Blog moved to thomasgathings.com
I would delete this...but I don't see the option

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)

 



  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

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

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

Red Gate software is basically a software that gives system administrators and developers tools in doing their job. The roots of this software can be traced back to Cambridge in the United Kingdom. It has been in the programming business for quite some time already dating back 1999. - Instant Tax Solutions Scam
1/6/2012 3:10 PM | Instant Tax Solutions Complaints

Post a comment