Building the C# Sample Programs
The vSphere Web Services SDK contains sample clients that demonstrate how to perform functions to manage your datacenter. The samples are organized into individual Visual Studio projects, which are collected in a single solution file. This document explains how to build the entire solution set.
Build the C# Sample Programs
The C# sample clients demonstrate functions that you can use to manage your datacenter. The build process varies, depending on the version of Visual Studio. The process is illustrated in Build Process for C# Sample Programs and described in To build the C# sample programs.
Build Process for C# Sample Programs
Prerequisites for Building the C# Sample Programs
Before you build a sample program, you must build the relevant DLLs:
See Build the C# vSphere DLLs and Build the C# SSO DLL for information about building the DLLs.
To build the C# sample programs
1
The solution file is found in the %SDK_HOME%\vsphere-ws\dotnet\cs\samples directory.
If you are using a version of Visual Studio later than 2008, the Visual Studio Conversion Wizard prompts you to convert the 2008 solution file to the newer version.
If you also have Visual Studio 2008, select Yes when the wizard prompts you to save a backup of the original solution file.
2
a
b
In the Properties panel, change the Target Framework from .NET Framework 3.5 to .NET Framework 4.
3
All the sample programs build. The Output pane at the bottom of the Visual Studio window shows build errors, if any.
4