Create the Driver Project
The steps required to create a driver project differ depending on whether Visual Studio® 2019 or 2008 software is being used for your development environment.
A driver will have its own SIMPL#Pro project using the SIMPL#Pro Library Template.
Create a Visual Studio 2019 Project
- Open Visual Studio software.
- Create a new .NET Framework Class Library project.
- Name the driver based on the manufacturer, model, and communication type.
- Manufacturer: TestManufacturer
- Model: TestModel
- Communication Type: Serial
- Device Type: Display
- Add the required Crestron NuGet packages.
- Open the NuGet package manager.
- Navigate to Browse.
- Enter the search term "Crestron."
- Install the following packages:
- Crestron.SimplSharp.SDK.Library
- Crestron.SimplSharp.SDK.ProgramLibrary
- Add a reference to RADCommon (provided in the SDK) as well as any other DLL files required for the driver (such as RADAVReceiver, RADCableBox, and so forth). For more information, refer to Required Libraries.
For example, a driver with the following attributes would be named "TestManufacturerTestModelSerial".
Create a Visual Studio 2008 Project
- Open Visual Studio software.
- Navigate to File > New > Project.
- Select Crestron from the Installed > Visual C# selections.
- Name the driver based on the manufacturer, model, and communication type.
- Manufacturer: TestManufacturer
- Model: TestModel
- Communication Type: Serial
- Device Type: Display
- Add references to ThirdPartyCommon and Required Libraries. If a Serial driver is being created, a reference to ProTransports is also required.
For example, a driver with the following attributes would be named "TestManufacturerTestModelSerial".