Compartir a través de


Referencing the DPWS Libraries

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

By choosing to reference DPWS libraries, you can provide service-hosting functionality, invoke Web Services, and implement certain .NET classes. Manually add these libraries with a seven-step procedure.

The .NET Micro Framework DPWS device stack libraries, MFWsStack.dll and MFDpwsDevice.dll, provide service-hosting functionality for a device (the "device stack"). The DPWS client library, MFDpwsClient.dll provides functionality for invoking Web services on a device. A separate library, MFDpwsExtensions.dll, contains the System.Ext.* namespaces, which are partial implementations of certain .NET System.* classes required by the DPWS device stack but not included in the base .NET Micro Framework libraries.

Since not all devices need DPWS functionality, these libraries are not automatically added to .NET Micro Framework projects you create in Visual Studio. Instead, you should manually add references to the DLLs to your project. To do this, follow these steps:

  1. Right-click the References folder in your Visual Studio project.

  2. Choose Add Reference from the context menu.

  3. In the Add Reference dialog, choose the .NET tab.

  4. Select MFWsStack.dll in the list, then click OK.

  5. Repeat steps 1 to 3, this time adding MFDpwsExtensions.dll.

  6. If your project is for a device hosting a service, repeat steps 1 to 3, this time adding MFDpwsDevice.dll.

  7. If your project requires DPWS client functionality, repeat steps 1 to 3, this time adding MFDpwsClient.dll.