Setting Up for C# Development
These instructions show how to install all the required software. If your development workstation already meets some or all of the requirements, you generally do not need to re-install the software you already have.
Set Up a Development Workstation To Use C#
For general Web development work, you need a C# development environment and the .NET Framework. To work with the VMware vSphere Web Services API, you need the vSphere Web Services SDK and additional tools available from Microsoft.
To set up a development workstation to use C#
1
Use Microsoft Visual Studio 2008 or later, which includes the required .NET Framework.
2
Use .NET version 3.5 or later, depending on your Visual Studio version.
3
Note Virtual Studio includes a version of .NET version 2.0, but that version does not contain the tools needed to build the DLLs.
4
Find the location where the Microsoft .NET Framework 2.0 SDK (x64) files were installed. Verify that the installation directory contains a subdirectory named Bin, which contains a file named wsdl.exe. Typically, the Framework SDK is installed at C:\Program Files\Microsoft.NET\SDK\v2.0 64bit.
5
a
Under the key HKLM\SOFTWARE\Microsoft\.NETFramework, verify the existence of a string value named sdkinstallRootv2.0 with a string value of the full path name to the installation directory.
b
If sdkinstallRootv2.0 is not present, add it.
6
Note The default option for the WSE installer includes only the runtime, not the WSDL tool. Select another option to include the Tools directory.
7
Set Environment Variables To Build C# DLLs and Samples
Before you build the SDK sample programs, you must set your environment variables.
If your Microsoft software setup varies from the default paths, create a VSINSTALLDIR environment variable.
Location of Microsoft ...\Common7 and ...\SDK subdirectories.
''C:\devstuff\Microsoft Visual Studio 8\Common7''
''C:\devstuff\Microsoft Visual Studio 8\SDK''
Directory containing unzipped WS SDK files (usually Location of zip file\SDK\vsphere-ws).
Directory containing unzipped WSDL files (usually Location of zip file\SDK\vsphere-ws\wsdl).
To set environment variables
1
2
set WSE_HOME="C:\Program Files (x86)\Microsoft WSE\v3.0"
3
set PATH=%PATH%;%WSE_HOME%\Tools
4
set WS_SDK_HOME="C:\Documents and Settings\yourusername\My Documents\Downloads\SDK"
5
set WSDLHOME=%WS_SDK_HOME%\vsphere-ws\wsdl\vim25
6
set VSINSTALLDIR="C:\devstuff\Microsoft Visual Studio 8\SDK"