Automating Visual Studio .NET

Started by
0 comments, last by SiCrane 19 years, 3 months ago
Hello members, our company needs the following automation of Visual Studio .NET 2003 to be able to edit scripts in a fast way. The following tasks should be done by DevStudio automatically: 1: It should load a specific solution 2: It should open a specific cpp file from that solution 3: It should go to a specific function that is available in the cpp file 1) is no problem, but what about the others? 2) is a problem because DevStudio can only open a cpp file OR a solution (OR a project), but not a solution, then a cpp file. And what about 3) ? No idea, at least it's not possible from the command line. Any ideas? Any help would be great. Thanks, Lyve
_____________________________________http://www.winmaze.de, a 3D shoot em up in OpenGL, nice graphics, multiplayer, chat rooms, a nice community, worth visiting! ;)http://www.spheretris.tk, an upcoming Tetrisphere clone for windows, a 3D tetris game on a sphere with powerful graphics for Geforce FX and similar graphics cards.
Advertisement
You can pass commands to the development environment like so:

devenv /command CommandName

The command can be user created macros. A macro to do what you want will probably look like:

File.OpenSolution "c:\MySolutions\Test1\Test1.sln"
File.OpenFile "C:\My Projects\Test1\Test1.cpp"
Edit.QuickFindSymbol CMyClass

This topic is closed to new replies.

Advertisement