This entails the process to build a "Hello World" app using YMConnect for .NET. These steps were performed using Visual Studio 2022.
Open Visual Studio and select "Create a new project"
On the "Template selection" menu, filter the language by C# and select Console App.
Take special note to select the "Console App" template for Linux, macOS and Windows, NOT the "Console App (.NET Framework)" template. YMConnect is not compatible with .NET Framework.
Move YMConnect_CS.dll and YMConnect.dll into the project folder.
Right click "Dependencies" in the Solution Explorer and select "Add project reference."
Select "Browse", click the "Browse..." button and select the YMConnect_CS.dll located in your project folder.
4.Check the box next to YMConnect_CS.dll. Click ok,
Double check that the path matches the file in the project folder.
using YMConnect;
//192.168.1.31 is the default IP address for single-arm systems in North and South America.
//This should be changed if your controller has a different address.
MotomanController c = MotomanController.OpenConnection("192.168.1.31", out StatusInfo status);
status = c.ControlCommands.DisplayStringToPendant("Hello from YMConnect");
Console.WriteLine(status);
Code (0): OK
and the pendant will display the following