# How to Set Up the MagTek CMS SDK for .NET Projects

Custom Windows software installed on a host PC can communicate with MagTek Common Message Structure (MTCMS) devices via USB, network interface, or serial interface using the MTCMS library.

The supported platforms for .NET projects include Windows 7, Windows 8/8.1, and Windows 10. The .NET project should contain references to the main library file: MTCMSNET.dll.

To add the MagTek CMS library to a .NET project in Microsoft Visual Studio, follow these steps:

* Create or open your .NET project in Visual Studio.
* Copy the following DLL file from the Library folders to the library folder of your software project: MTCMSNET.dll.
* In the Visual Studio Solution Explorer, right-click the project and select Add Reference window to show the Add Reference window.
* Select the Browse tab and press the Browse... button.
* Navigate to your library folder, select MTCMSNET.dll, then press the Add button.&#x20;
* In your custom software, create an instance of MTDevice. For examples, see the source code included with the MTCMSNETDemo project and/or Appendix A Code Examples.
* Begin using the features provided by the MTCMS library.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developer.magtek.com/hardware/oem-readers-and-components/oem-readers/odynamo/documentation/programmers-manuals/common-message-structure-mtcms-microsoft-.net-java-applet/how-to-set-up-the-magtek-cms-sdk-for-.net-projects.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
