Start Using the WES Generator

You must make sure that your development environment meets the Well-Enabled Services (WES) Generator prerequisites, including access to an instance of the Microsoft Provisioning System (MPS) and the service you plan to extend, before you begin. See Prerequisites for Deployment and Deploy the WES Generator for more details.

These sample procedures use the Windows-Based Hosting namespace to show how the WES Generator Microsoft Visual Studio add-ins can be used to create a service class.

The WES Generator Visual Studio add-ins include a new project type, MPS WES Project, and a new project template, Well Enabled Service.

Figure: WES Generator add-ins to New Project in Visual Studio


Procedure MPSSDK.x: To create an MPS WES Project
  1. Open Visual Studio 2005.
  2. On the File Menu, click New Project.
  3. Click MPS WES Project.

  4. Under Templates, select Well Enabled Service.

  5. In the Name box, enter SampleWES, and then click OK.

Now that you have created a sample project, you can add a namespace to it.

Procedure MPSSDK.x: To add a namespace to an MPS WES Project
  1. Under Solution Explorer, right-click SampleWES, select Add and then select Existing Item.
  2. In the Add Existing Item - Sample WES box, select All Files from the Files of Type menu.
  3. Navigate to WindowsBasedHosting_ns.xml on MPS01, and then click Add.

Now that you have added a namespace to your sample project, you can associate the WES Generator with it.

Procedure MPSSDK.x: To associate the WES Generator with your project

You can now expand all of the elements in the Solution Explorer window to verify that the WES Generator updated the project.

You can also right-click your sample project name, SampleWES, in the Solution Explorer and select properties to view the settings on the Well Enabled Service tab.

At this point, you can now compile your project by right-clicking SampleWES and then selecting Build. To verify that the compile worked, look in the bin\debug directory of the project to verify the existence of the SampleWES.dll.