new-platform-impl
Installation
SKILL.md
DotSerial New Platform Implementation Skill
Follow these steps precisely when adding a new platform implementation.
Step 1 — Decide the implementation base
| Scenario | Base class |
|---|---|
| New OS using native serial APIs | Extend SerialPortBase |
| New transport protocol (TCP, USB, BLE) | Implement ISerialPort directly |
| New Bluetooth variant | Extend SerialPortBase or implement directly |
Step 2 — Create the implementation file
File path convention:
src/DotSerial/Internal/{Platform}/{Platform}SerialPort.cssrc/DotSerial/Internal/{Platform}/{Platform}BluetoothSerialPort.cs(if Bluetooth variant)
Use the copyright header. Class must be internal sealed.