It is not about the DLL import in Power Builder Application. Let me specify the requirement in details.
I have developed the Power Builder application which produce the output as DLL. So that I have selected the Target as .NET Assembly
After that, I have added that DLL as a reference in .NET WinForms application. As I want to call the Power Builder function in .NET WinForms Application.
As I am using the Power Builder generated DLL in my .NET WinForms application, obviously I need to place PB runtime files into bin/debug folder of the .NET WinForms application then and only WinForms application will work without any error.
Problem here is I have to copy all the files and folders of Runtime folder and placed in to bin/debug folder of the .NET WinForms application. Alternative is available for target as Application in Power Builder. In which xml file is generated with name of EXE name and where we have the "<RuntimePath>" node and Exe application refer the runtime from path specified in XML.
Now let me come to the question that Do we mechanism for .NET Assembly project (target as .NET Assembly) where we can specify the Path of the Runtime folder?