How does Visual Studio communicate with NETMF USB devices?

I’m trying to add over-the-air debugging support to a WSN project.

I’ve added an extensible debugging interface to the core framework on the device side, which allows the solution designer to use any arbitrary transport mechanism (wireless mesh networking, i2C, whatever) to interface with the debugger.

Now, I need to track down the module that Visual Studio uses to communicate with NETMF devices so I can make the appropriate changes there.

I know that MFDeploy has an associated library (MFDeployCom) that it calls for all of the functionality. Does Visual Studio use that? Or does it use a different module altogether?

I would look into Visual Studio SDK to see if you can hook it up at that level.