Side-by-Side / DLL registration with manifest
Posted: Wed May 30, 2018 6:42 pm
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"
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"