I have a c# windows application that uses the available debug board COM port to run.
I want to create a settings.xml file so the COM port is picked by the application using xml file instead of using hard coded COM port number (example: string command = "command filename.py... COM16 ...command").
Create your
settings.xml
. For example, it has the following structure:Create the class to deserialize your xml into it:
The usage is simple - read and deserialize xml and then just use your port value.