Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / IDE / March 2007

Tip: Looking for answers? Try searching our database.

How to access the build events tab of properties page of a project from vs2005 add-in?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Richard - 15 Mar 2007 02:30 GMT
Hi guys.
I want to access the build events tab of a given project properties page? Is
this feasible?  What I want is to copy a xml data file data.xml (this file
was generated by my add-in and when program runs, it depends on this xml
file) under  $(ProjectDir) directory to $(OutDir) after the project is built
successfully.
So what i am considering is that  in my add-in codes, I can programatically
access the post-build events command line box and write into
copy $(ProjectDir)\data.xml $(OutDir)\data.xml
Does anybody know how to get there? or how can I determine the project's
build configuration(debug or release) so that I can copy this xml file
directly to the target directory(bin\Debug or bin\Release) rather than
accessing build events tab on the project properties page?

Any suggestion will be much appreciated!

Rigards,
Richard
Bryan Phillips - 15 Mar 2007 03:06 GMT
I can tell you how to do it, but you might be better off adding the XML
file to the project and setting the file's "Copy to output directory" to
"Copy Always".  I say that because I use build events in almost every
project and that might interfere with your addin's functionality.

--
Bryan Phillips
MCSD, MCDBA, MCSE
Blog:  http://bphillips76.spaces.live.com

> Hi guys.
> I want to access the build events tab of a given project properties page? Is
[quoted text clipped - 14 lines]
> Rigards,
> Richard
Richard - 15 Mar 2007 13:35 GMT
Hi Bryan. I've checked your blog, but no clue was found.
can u detail more how to accomplish this?
thanks in advance.
"Bryan Phillips" <bphillips@nospam.spamcop.net.spammenot>
??????:%23fCMbaqZHHA.2320@TK2MSFTNGP03.phx.gbl...
>I can tell you how to do it, but you might be better off adding the XML
>file to the project and setting the file's "Copy to output directory" to
[quoted text clipped - 28 lines]
>> Rigards,
>> Richard
Richard - 16 Mar 2007 07:39 GMT
Hi Bryan. I have got what you said. Now my add-in works fine.
Thank u.

"Bryan Phillips" <bphillips@nospam.spamcop.net.spammenot>
??????:%23fCMbaqZHHA.2320@TK2MSFTNGP03.phx.gbl...
>I can tell you how to do it, but you might be better off adding the XML
>file to the project and setting the file's "Copy to output directory" to
[quoted text clipped - 28 lines]
>> Rigards,
>> Richard

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.