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

霸气de小男生 提交于 2019-12-23 07:39:10

问题


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


回答1:


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



来源:https://stackoverflow.com/questions/4970608/automatically-include-all-cpp-h-files-of-a-folder-in-a-vcproj-project-in-visua

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!