Search the web
Sign In
New User? Sign Up
vsnetaddin · Visual Studio.NET Add-ins
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
The value of Scope is *what* in my OnBuildBegin event handler?   Message List  
Reply | Forward Message #3864 of 3878 |
I'm responsible for an add-in that we use to allow our analysts (who
are actually accountants for the most part) to do a build, so the
programmers don't get constantly interrupted for rebuilds for
something the analysts can easily handle.

The add-in uses OnBuildBegin and OnBuildDone event handlers for
logging and error reporting. The event handlers *are* being called.
A trace statement at the beginning of both event handlers fires, so I
get this on my computer:

_BuildEvents_OnBuildBegin(vsBuildScopeSolution, vsBuildActionClean)
_BuildEvents_OnBuildDone(vsBuildScopeSolution, vsBuildActionClean)
_BuildEvents_OnBuildBegin(vsBuildScopeSolution, vsBuildActionBuild)
_BuildEvents_OnBuildDone(vsBuildScopeSolution, vsBuildActionBuild)

...

This is *exactly* what I expect to see, and oddly enough, things work
just fine for me. However, instead of those trace statements, the
rest of the group gets this:

_BuildEvents_OnBuildBegin(0, vsBuildActionClean)
_BuildEvents_OnBuildDone(0, vsBuildActionClean)
_BuildEvents_OnBuildBegin(0, vsBuildActionBuild)
_BuildEvents_OnBuildDone(0, vsBuildActionBuild)

...

Since 0 != vsBuildScopeSolution, the rest of the handler doesn't fire,
and our log is largely useless. The build *does* happen, it just
doesn't report anything about itself.

Has anyone else run into this, and if so, is there a way around it?




Tue Apr 22, 2008 4:53 pm

korthmat
Offline Offline
Send Email Send Email

Forward
Message #3864 of 3878 |
Expand Messages Author Sort by Date

I'm responsible for an add-in that we use to allow our analysts (who are actually accountants for the most part) to do a build, so the programmers don't get...
korthmat
Offline Send Email
Apr 23, 2008
8:52 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help