Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Automatically include all .cpp/.h files of a folder in a vcproj Project in Visual Studio

Is there a way to set a vcproj Project folder in order to automatically include all .cpp or .h files depending on the path of the project ?

On other words, when adding files to the folder of my project using Windows explorer, is it possible to have these new files automatically added to a vcproj Project, inside Visual Studio ? (even if I have to relaunch Visual Studio).
I do not need just to see them, but I need them to be automatically included inside the project for compiling and other operations...

The only way I see is to create a Visual Studio addin or a VB Script to do that...

Thanks, Regards

like image 428
oaimac Avatar asked Feb 11 '11 15:02

oaimac


1 Answers

You can edit project file and use wildcards. http://msdn.microsoft.com/en-us/library/ms171454%28v=VS.90%29.aspx

like image 154
Milos Joksimovic Avatar answered Sep 18 '22 06:09

Milos Joksimovic