Solved

VS2008 post-build events: include directory

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

622 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