How does visual studio create and copy the sdlplugin file to the roaming profile?

Sorry if this is a bit of a dumb question, but here goes:

With the community plugins solution, when I build a project, somehow the sdlplugin file gets created and copied over to my roaming profile where it can be detected by SDL.

I can't work out how that's happening.. I'm not running anything - just building the project. There are no post-build events in the VS project, but as if by magic, the file appears.

I'm trying to work out how to debug the project, and it'd help if I understand this first step! Can anyone point me in the right direction?

Thanks in advance

Rich