Issue
I’m developing a .NET add-in (dll) for AutoCAD.
I’d like to store some settings for the dll, for this purpose, I’ve added an app.config file to my project.
When the project builds, the config file is copied to mydll.dll.config in the output folder.
But when I netload the dll in AutoCAD, the dll can’t get the settings from the config file. Why?
Solution
The cause of the problem is that the application config file is associated with the exe file, not a dll:
http://msdn.microsoft.com/en-us/library/ms229689.aspx
Thus, try to place the settings into the AutoCAD’s config file (depending on the AutoCAD’s version, it can be \Program Files\Autodesk\AutoCAD 2013\acad.exe.config or \Program Files\AutoCAD 2010\acad.exe.config).

Leave a Reply to BenCancel reply