In Delphi XE3 I have a pre-build event that generates .pas files. The generated files are in the project's search path and this works fine.
When one of those files is currently opened in the Delphi editor, the pre-build event will still run fine and update the .pas file. The problem is just, that the Delphi-IDE does not notice that this file has changed. i.e. when I just switch to another program and then back to the Delphi-IDE the change will be recognized - and I will be asked if I want to update the file in the editor.
Is there a way to force this behavior in my pre-build event command?