logo
Welcome to our new AbleCommerce forums. As a guest, you may view the information here. To post to this forum, you must have a registered account with us, either as a new user evaluating AbleCommerce or an existing user of the application. For all questions related to the older version of Gold and earlier, please go to AbleCommerce Gold forum. Please use your AbleCommerce username and password to Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
sweeperqb  
#1 Posted : Wednesday, April 28, 2021 2:31:19 PM(UTC)
sweeperqb

Rank: Advanced Member

Groups: Authorized User, Developers
Joined: 5/30/2020(UTC)
Posts: 125

Thanks: 14 times
Was thanked: 3 time(s) in 3 post(s)
Up until now, I have only been using NuGet packages that were already used in the original AC9 Website project. I just added MySql.Data and Dapper NuGet packages to my plug-in to begin working with our external inventory database. The plug-in compiles and gets copied over to the website, but the NuGet libraries do not get copied over with the plug-in, so I receive errors like this when attempting to display my Widgets:

Quote:
Could not load file or assembly 'Dapper, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.


What is the recommendation for how to handle these additional NuGet libraries? Do I include them as part of the Post-Build events so they are copied into the plug-in zip file? Do I manually copy them into the /Lib directory, uninstall the NuGet package, then Browse to add a reference in the /Lib directory? [The last option seems to defeat the purpose of using NuGet]

Thoughts?

Wanna join the discussion?! Login to your AbleCommerce Forums forum account. New Registrations are disabled.

mazhar  
#2 Posted : Friday, April 30, 2021 5:22:14 AM(UTC)
mazhar

Rank: Administration

Groups: Admin, Administrators, HelpDesk, System, Authorized User, Developers, Registered
Joined: 10/5/2018(UTC)
Posts: 175

Thanks: 8 times
Was thanked: 17 time(s) in 15 post(s)
You will put the required ones in the post-build event the same way we are copying the plugin DLL itself.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.