Solved

VS2008 post-build events: include directory

Posted on 2010-08-17
1
372 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
1 Comment
 
LVL 2

Accepted Solution

by:
rwbaskette earned 500 total points
Comment Utility
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Total in textboxes 9 34
Library to convert HTML to PDF. 8 42
Jquery autocomplete 10 17
Get list of word ducuments in a folder 10 9
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

762 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now