xsharp.eu • Side-by-Side / DLL registration with manifest
Page 1 of 1

Side-by-Side / DLL registration with manifest

Posted: Wed May 30, 2018 6:42 pm
by ic2
It looks like I have successfully converted my last Vulcan program I was still using, to X#. First tests look good. I will install the new DLL on a customer's server to test further.

The biggest problem was that I had to register the DLL to be used from VO without the need for end users to register. I have created a new step by step document as using X# code (or any .Net language code, from the same project) from VO is in my opinion the easiest step to begin. I will enter it in the documentation project and announce it from here.

I wasn't sure about one thing so maybe someone can remind me. I have the following 3 lines in the Post build Event Comment Line of VS. I have to build twice, the first line with a REM(ark) before it the 2nd time.

Now my question is: when I add or change code and rebuild my DLL, do I always need to build twice (once without and once with REM)? Or can I now just keep it as it is, with REM in the 1st line?

It has been a long time ago that I changed something in the Vulcan lib, hence my question.

rem "C:Program Files (x86)Windows Kits10binx64mt.exe" -managedassemblyname:$(TargetFileName) -nodependency -out:$(ProjectDir)$(ProjectName).manifest
"C:Program Files (x86)Windows Kits10binx64mt.exe" -manifest "$(ProjectDir)$(ProjectName).manifest" -outputresource:"$(TargetFileName)"
Copy "$(TargetDir)*.dll" "d:SomeDirWithWriteRights"

Side-by-Side / DLL registration with manifest

Posted: Wed May 30, 2018 7:45 pm
by wriedmann
Hi Dick,

I've done this all in XIDE, and it works like a charm, for different VO applications and with different X# modules, also more X# COM modules in a single VO application.

Please see here for a sample:

https://docs.xsharp.it/doku.php?id=com_module_sample

Wolfgang

Side-by-Side / DLL registration with manifest

Posted: Wed May 30, 2018 9:09 pm
by ic2
There are a few differences with what I wrote, and I did it from VS. Maybe a good idea to send you what I wrote and you can add it, calling your article Create a COM module for a VO application in Vide and mine Create a COM module for a VO application in VS?

Dick

Side-by-Side / DLL registration with manifest

Posted: Thu May 31, 2018 4:28 am
by wriedmann
Hi Dick,

of course we should add also how to do it in Visual Studio.

Maybe doing it in XIDE it is a more manual proceeding, so it may have more details.

Wolfgang

Side-by-Side / DLL registration with manifest

Posted: Tue Jun 05, 2018 2:22 pm
by ic2
Hello Wolfgang,

Did you receive my mail with the 'How to" concerning Side by side/com with Visual Objects? Or do you prefer me to add it myself?

Dick

Side-by-Side / DLL registration with manifest

Posted: Tue Jun 05, 2018 6:57 pm
by wriedmann
Hi Dick,

I haven't received nothing the last days.

But of course you can add it yourself, if you prefer.

Wolfgang