Registering com during build
Hi all
I'm trying to register a COM dll during the build process, my Regsvr32 is looking ok but it returns an error code of 3.
However when I try and register manually (whilst remotely working on the server) it works absolutely fine.
Any ideas?
Thanks
Kev
I needed to register a dll before the project was build.
In the project folder I created a new folder 'lib' and copied the dll to the folder
Opened the project file in the XML editor and added a new target block:
<Target Name="BeforeBuild">
<Exec Command="regsvr32 /s "$(ProjectDir)lib\dsofile.dll""/>
</Target>
Opened the solution and in the solution explorer:
-clicked on the 'Show all files' icon
-right clicked on the lib folder and selected "Include in project" .
-Added an existing item: dsofile.dll and set 'Copy to Output Directory' to 'Copy if newer'