Quantcast
Channel: OPC Labs - OPC Labs - Recent Topics - OPC Labs Online Forums
Viewing all articles
Browse latest Browse all 1794

Embed library into Cs project - by: Šilhavý

$
0
0
Hi
I wrote very simple program to grab data from a file and send them on UA server. I am using BaseLib an EasyOpcUA libraries, VS2017Comm, Win10, framework 4.8.
When i compile the project and dlls are in the folder with exe, everythink work fine. But what can I do, when I want just standalone exe file?
I have 3 questions (2 cases):
1 . Dlls are referenced, NOT embeded. I thought it is sufficient to have them just in the folder, where I referenced them from - so Progra~/OpcLabs ... QuickOPC will be installed on deploy computer too. But it doesnt work. You know - just to make link to the dll file - I tried it even in .csproj. Didnt work. Dll is missing.
2. Dlls are referenced, added into project and embeded, resolved using AssemblyResolve. Wont work, dll is still missing.

3. Is it possible to use just part of the library - Dlls are 20MB, program is 20KB and uses just few methods.

Thanks in advance for your advices.

File Attachment:

File Name: EmbedDllExample_2020-04-22.rar
File Size: 11,046 KB

Viewing all articles
Browse latest Browse all 1794

Trending Articles