TheSwamp

Code Red => .NET => Topic started by: civil.eng on September 28, 2022, 02:44:41 AM

Title: Embeding DLL in Autocad .Net
Post by: civil.eng on September 28, 2022, 02:44:41 AM
Hello everyone,
I have written an Autocad DLL with vb.net and I embeded another DLL in it. When I want to run the program by command it gives error, while it works fine without embeded DLL. (the error image was attached)

I think Autocad .Net DLL don't allow to carry another DLL. is that right ?

Title: Re: Embeding DLL in Autocad .Net
Post by: gile on September 28, 2022, 02:56:48 AM
Hi,

In addition to Norman Yuan replies you in the Autodesk discussion group (https://forums.autodesk.com/t5/net/embeded-resource-with-net/m-p/11443618#M74157), typically, in you project you should reference this DLL with the Copy Local property set to True. If you need to deploy you program, you have to copy this DLL in the same folder as the project one.