New OpcDaNet-UA based client applications can be created in Visual Studio with the OpcDaNet-UA New Project template.
The created application has the proper assembly references.
To find the template in the Visual Studio 2019 New Project dialog best use the search feature because VS2019 doesn't allow the categorization of custom templates.
Clear the filters and search for OPCDA or Advosol.
The OpcDaNet-UA template has the same wizard dialog as the OpcDaNet template.
The created application has base code according the wizard dialog selections.
Another option is to create a Windows Forms application and drag the OPCDA.NET daServer component from the designer toolbox to the form. This adds automatically the OpcDaNet.dll reference to the project. This reference has to be replaced as described in the chapter Upgrade an existing OPC DA client.
Configuration and Certificate
Before a UA client application can be executed a configuration file and a certificate needs to be created.
This is best done with the UaClientConfigHelper utility. See the Configuration chapter for details.