c# - TLB to managed .NET assembly without Regsrv32 at deploy time -


i have tlb provided part of third-party api. used tlbimp.exe generate dll assembly wrappper. however, @ development time, appears assembly requires registration regsvr32 used.

this isn't problem @ development time however; using managed instances in production , registering dll manually pain if not impossible when deploy. there way use managed dll assembly in way doesn't require registration step during deployment?

i've been reading around internet , have found literature on registration-free com using app.manifest. viable solution?

if type library embedded 3rd party com dll should be, isolated com can indeed used (you verify oleview). consuming com dll way quite easy vs2010/2012. dll has registered on development machine. you'd add reference .net project , turn on embed interop types , isolated properties:

enter image description here

the interop assembly merged consuming .net assembly, , you'd need make sure com dll, .net assembly , generated .manifest files copied when deployed.

it's important take account com apartment model of client app. should have no problems sta client. mta model though, default typelib-based marshaller may not work com objects created isolated dll (more on here). if dll comes com proxy/stub code implemented, should not problem either.


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -