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?
|
|
|
|
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.
|
|
|
|
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.
Important Information:
The AbleCommerce Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close