Solved

VS2008 post-build events: include directory

Posted on 2010-08-17
1
378 Views
Last Modified: 2013-11-27
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
Comment
Question by:conrad2010
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 2

Accepted Solution

by:
rwbaskette earned 500 total points
ID: 33461036
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question