Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 391
  • Last Modified:

VS2008 post-build events: include directory

I have a directory in my VS2008 Project that is "Excluded from Project".

How can I use the Post-Build Event (Properties - Build Events) to have that directory included in the project output after compilation?
0
conrad2010
Asked:
conrad2010
1 Solution
 
rwbasketteCommented:
Add it to the solution. Select the file(S) and go to the properties widow and change the build action to "None" and then the "Copy to Output Directory" setting to "Copy always" or "Copy in Newer"

One caveat is that it will copy the folder structure into the bin folder as well.

http://msdn.microsoft.com/en-us/library/0c6xyb66.aspx



If this is not desirable, you may want to manually write in a "Post-build event command line" under the projects properties page and then in the "Build Events" tab. This works just like a batch file but you get some neat variable replacements.

http://msdn.microsoft.com/en-us/library/42x5kfw4(VS.80).aspx
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now