Developer forum

Forum » Dynamicweb 10 » dll reference issue when installing custom add-ins

dll reference issue when installing custom add-ins

Chris Søgaard
Chris Søgaard
Reply

Hi DW

We have some issues getting our custom extensions to DW working, if that extension depends on other (maybe specific) NuGet packages.

We are packing our custom library to a .nupkg file and installing that through the CLI which initially works without errors, but it seems like there's some dependency check, where dll files are sorted out and only dll files without an existing reference is being added during the install phase, which also in theory makes sense.

But in my specific example the dll file "Azure.Core.dll" which my library depends on is not being added, and this causes an error on start-up on our custom module.

I can see that the package "Dynamicweb.DataIntegration" depends on "Azure.Identity" which again depends on "Azure.Core", which means there should be a reference somewhere, and my custom extension reference the same version, so it is not a version issue.

The extension works if I run it locally, both from source code but also referencing the local NuGet package in Visual Studio, but not when I install it in DW.

I can provide the .nupkg file on demand if needed for recreating the issue or debugging

BR Chris

 


Replies

 

You must be logged in to post in the forum