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