Compile generated files in Visual Studio

Does Visual Studio have some options to add/compile all selected files that were auto generated outside visual studio i.e in pre build event? How to achieve this.

Compile generated files in Visual Studio
===


Does Visual Studio have some options to add/compile all selected files that were auto generated outside visual studio i.e in pre build event? How to achieve this.
