Edit: Basically what I need is for visual studio to always rebuild all when I hit debug.
I'm currently using visual studio to compile my assembly programs, using MASM and in general it's working fine.
However I've run into an annoying issue:
If I include a file (say, a file with functions) like this
Include functions.inc
and compile it, it originally works fine. However if I then change the contents of functions.inc, this is not recognized and the compilers skips over functions.inc and uses the old version from before I changed it.
I cannot find an option anywhere under project properties to fix this. However I'm sure it has something to do with linker options or something – if I make any changes under project properties (even if I change something and change it back, and then press OK), it does compile properly with the new version of functions.inc.
Any ideas?
Best Answer
You can change the behaviour via the
EnvironmentEvents
macro in Visual Studio's Macro Explorer:This is a VisualStudio change so it will work across all solutions once set
UPDATE The above solution works, however it has some pitfalls concerning content files where the IDE will change to design mode even if the debugger is running. It will try to build while the debugger is running in some situations. The proper solution is this: