Can somebody help me on enumerating a C# project files and upd开发者_运维百科ate the cs file headers in Visual Studio 2010? Any helpful code snippet or a pointer to that would be highly appreciated.
Check out the Visual Studio SDK at http://msdn.microsoft.com/en-us/library/bb166441.aspx and checking out the samples.
Visual Studio Extensibility Samples at http://msdn.microsoft.com/en-us/library/bb458154.aspx
VSX Home on Code Gallery at http://code.msdn.microsoft.com/vsx
"Official home for Visual Studio Extensibility (VSX) online resources on Code Gallery. Here, you will find samples, deep dive documentation, links to shared source projects and other resources to help you extend Visual Studio. This page is maintained by the VSX team at Microsoft."
Solution Hierarchy Traversal at http://code.msdn.microsoft.com/SlnHierarchTraversal
Try the solution file parser or you could use Visual Studio Extensibility Objects (DTE) by importing the envdte.dll. There is a lot of documentation for this.
- Search for all .csproj files in a folder and it's subfolders using your favorite file manager, (eg. FAR Manager, Total Commander etc.).
- To perform search and replace in .cs files you can use S&R plugin for FAR Manager (freeware) or "Advanced Find And Replace" application (shareware, but more powerful).
精彩评论