There was a change in setup between B2TR and the RTM build where the Office .Net PIAs are no longer placed in the proper place so they appear in the .Net References tab in Visual Studio. What does this mean for you? It means that if you want to add a reference to OneNote you can _no longer_ look under the .Net tab, instead look under the COM tab.
So I would like to amend what the Unknown OneNote blogger mentioned earlier on this post: Referencing the OneNote 2007 APIs in Visual Studio he said this:
- Creating a VS .Net references is simple. In a Visual Studio 2005 you can access the references from the Solution Explorer. If the Solution Explorer is not visible you can access it from the View menu or use the shortcut Ctrl-W, S. Figure 1 shows my Visual Studio's Solution Explorer.
Figure 1: VS Solution Explorer
- To create a reference to the OneNote interop dll right click the reference node in the Solution Explorer , and select Add Reference to bring up the Add Reference Dialog as shown in Figure 2.
Figure 2: Add Reference Dialog
- Select Microsoft.Office.Interop.OneNote and click the Ok button. You should see the reference listed under the Reference node in the Solution Explorer as shown in Figure 3.
Figure 3: VS Solution Explorer with OneNote reference
You can now access the OneNote API. Check back later as we work our way though the OneNote 2007 API.
I am only changing the part under figure 2, but otherwise it all works
exactly the same, just a different way to add it. If you have questions please let me know; of course you won't see this until the RTM version comes out.
Thanks a bunch Unknown OneNote blogger!