Before creating and running .NET applications for vSphere PowerCLI, you must set up your developmental environment.

1

In Visual Studio 2005 .NET or later, create a new project or open an existing project.

2

Add a reference to the vSphere API .NET Library (VMware.Vim.dll) from the vSphere PowerCLI installation folder.

Now you can use classes from the VMware.Vim namespace to manage your vSphere inventory.

Note

Creating new instances of the VimClient class from the VMware.Vim.dll module is not supported. You can create new instances of the VimClientImpl class instead of the VimClient class.