1 在VS中编译程序,关闭OneNote
2 安装编译好的扩展,此时保持OneNote 关闭
3 启动OneNote, 进入VS调试模式
VS: Debug -> Attach to Process Open
4 在VS中将扩展挂载到dllhost.exe上
attach to a DllHost.exe having “Managed {.NET version}” in the Type column of the Attach to Process dialog.
VS: Debug -> Attach to Process Open
attach to a DllHost.exe having “Managed {.NET version}” in the Type column of the Attach to Process dialog.