Question

Can somebody help me on enumerating a C# project files and update the cs file headers in Visual Studio 2010? Any helpful code snippet or a pointer to that would be highly appreciated.

Was it helpful?

Solution

Check out the Visual Studio SDK at http://msdn.microsoft.com/en-us/library/bb166441.aspx and checking out the samples.

OTHER TIPS

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.

  1. Search for all .csproj files in a folder and it's subfolders using your favorite file manager, (eg. FAR Manager, Total Commander etc.).
  2. 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).
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top