SolidWorks Add-In won't load

We have an Add-In that we initially developed many years ago.  It has worked flawlessly until recently.  I found the cause, but am confused as to what happened.

We created a branch of our development folder, and the Add-In from the new branch will not load.  It shows up in the Tools/Add-Ins list, but neither box is checked. 

Using our source control system, I compared the swAddIn.vb file from the previous branch to that from the current branch and there's no change.  If I build the Add-In from the previous branch and then run the Add-In from the current branch in debug, SolidWorks will open and our Add-In will load, but it will load the version from the previous branch, not the current one.

As it turned out, I had added a script in the post-build events prior to registering the Add-In.  The script copied in several documents that are referenced by the application, and may take as long as 10 or 15 seconds to run.

With this script running before the registration event, SolidWorks would not recognize my Add-In.  Why is that?

Thanks,

Clint

SolidworksApi macros