Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: integrationsmaster on February 11, 2020, 03:41:59 pm
-
Hello Experts,
I have created a simple add-in after going through various docs, that worked well, but the issue started when i had to add a few NuGet references to my addin, the build goes well, i can see no error in "Specialize- Manage Addins" of EA15 either.
But when i added a (indirect) reference to System.Memory, EA throws up saying "could not load file or Assembly System.Memory" as shown below.
(https://imgur.com/jnrovuo)
The Target framework for the dll is 4.5.
I have other references like log4net and newtonjson, they seems to be working without any issues, i am wondering if this is an issue with add-in not packing the references or some .net framework incompatibility issues.
Is there a way to add this reference directly to EA 15 and is this the right way?
I havent used C# in sometime (or in as a addin/plugin) so please excuse me if this is a silly question.
Any pointers would be helpful, thank you.
-
Make sure build process actually copies the required dll's to the output folder.
If you are using an installer you'll have to make sure it includes these files as well.
Geert
-
If you are using an installer you'll have to make sure it includes these files as well.
Yup, sounds like an installer problem.
It's not EA itself that's giving you the error, that's thrown up from the OS when EA tells it to load the Add-In DLL.
So I'd say what you've bumped into here is the limit of the "various docs" you've followed, if they don't include how to construct an installer for your Add-In. But there's plenty of stuff on installers to be found all over the net.
/Uffe
-
Make sure build process actually copies the required dll's to the output folder.
Geert
I can see all the dll's in the Release Directory.
-
If you are using an installer you'll have to make sure it includes these files as well.
Yup, sounds like an installer problem.
It's not EA itself that's giving you the error, that's thrown up from the OS when EA tells it to load the Add-In DLL.
So I'd say what you've bumped into here is the limit of the "various docs" you've followed, if they don't include how to construct an installer for your Add-In. But there's plenty of stuff on installers to be found all over the net.
/Uffe
I created a installer using the nice doc Geert Bellekens made. https://bellekens.com/2011/02/23/tutorial-deploy-your-enterprise-architect-csharp-add-in-with-an-msi-package/ (https://bellekens.com/2011/02/23/tutorial-deploy-your-enterprise-architect-csharp-add-in-with-an-msi-package/)
I can see all the dependencies being installed under the program files and can also see the registry entry.
I still end up with the same error. is there another way to link the dll, i tried regassm on that dll, that also didnt work
Thanks