A
A
Akson872011-11-02 01:42:34
Building projects
Akson87, 2011-11-02 01:42:34

How to execute some command in Visual Studio when the program starts? (but without a build)?

Such a problem: there are files with code for OpenCL that are compiled at runtime. Now at the Post-Build Event in the studio they are copied to the application folder and everything is almost fine.
Problem: but they are copied only if the project is being built, but if you just run the application, they are not copied. These files are excluded from the build, so even if there are changes in them, the studio does not build the project and the changed files are not copied.
Question: how to always copy files before launching the application, even if the project is not being built?
Clarifications: it is possible to build a project every launch (if you make some kind of dummy with a date, for example), but you don’t really want to.
I'm using MSVS2010
Thanks in advance for your help!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question