Visual Studio Macro Programming

I'm frustrated trying to program macros for Visual Studio (using VS 2008, Version 9.0.30729.1 SP with all updates).

In the macro explorer, I can go to the Microsoft / VSEditor samples and add a routine that behaves as I desire. But I cannot get it to work anywhere else. Specifically in the MyMacros area in Macro Explorer.

Details:
I copied all VSEditor samples / code and copied to MyMacros / Testing and renamed the internal module name to Testing and saved the modified code. Macro Explorer now displays the test unit and all the routines it contains. If I right click on, say InsertDate and select Run, nothing happens. But if I scroll down to Samples / VSEditor / InsertDate and right click and select Run, it inserts the date as I would expect. It's almost identical code (only mentioning location and name), but one works and the other doesn't.

Is there a way to get feedback on what is going on / where the code is not working / why the code is not working?

Can someone please explain what I am doing wrong?

+1


source to share


1 answer


I tried the same, copied the VSEditor code to MyMacros / Testing. Things didn't work either.

Then I went to the View Error List menu item . Then to the menu item Debug | Create in Microsoft Visual Studio Macros editor . I noticed that Utilities were not declared (first error in the error list). When I copied the utilities to MyMacros. The macros started working.



Perhaps this is the same problem you are facing.

+1


source







All Articles