Solved

VS2008 post-build events: include directory

Posted on 2010-08-17
1
377 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

735 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