Search code examples
c#formsnamespacesnuget

Programming in Visual Studio C# Windows Forms and including a NuGet package; How do I find out the namespace to reference?


I was browsing this topic Microsoft.WindowsAPICodePack.Shell Could not load file or assembly because my program got this error window on someone else's computer: error message

So I installed a different package from NuGet, the WindowsApiCodePack made by rpastric for testing. Only problem is, I have no idea how to reference the namespace in code. For the Windows official pack it was:

using Microsoft.WindowsAPICodePack.Dialogs;

How do I find out what namespace I have to use for a NuGet Package?


Solution

  • In the Visual Studio menu: View > Object Browser. Look down the treeview on the left, it will show you the various namespaces. Click to open the namespaces to explore further.

    Object browser showing namespaces