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
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