user670800
user670800

Reputation: 1115

how to automatically add files to a visual studio project in a pre-compile step?

I have a perl script to copy some files into my project directory . The pre-compile step of our project will run the script. But the problem is that copied files are not add to the project dependency automatically . Is there a way to add them by automation ?

Upvotes: 3

Views: 456

Answers (1)

kernelman
kernelman

Reputation: 41

The copying and running of the scripts can be done by using the Pre Build and Post Build macros. Also the DTE provides things such as BuildEvents. Take a look here.

Upvotes: 1

Related Questions