This sample source file is intended to show one way of logging into a ProjectWise datasource from a console application using MostOfDavesClasses and C#.
You can get MostOfDavesClasses from here:
You will need to distribute the included .dll's in order to use all of the methods.
You can get DllExporterNet4 from nuget.org.
DllExporterNet4 makes it possible to call static methods from unmanaged code, i.e. ProjectWise .mrr files, ProjectWise Custom Modules, etc.