-
Notifications
You must be signed in to change notification settings - Fork 109
Description
Hi All,
On .net 6 and I'm having some trouble getting a NugetFeedPlugInCatalog configured properly.
Setting up the web service, within ConfigureDevelopmentServices
var packageFolder = @"C:\PlugInStaging\EasyPost";
var feedDetails = new NuGetFeed("PlugIn Staging", packageFolder);
var pluginCatalog = new NugetFeedPluginCatalog(feedDetails);
services.AddPluginFramework()
.AddPluginCatalog(pluginCatalog)
.AddPluginType<IPlugIn>();
Resulting in
MINIMAL -
MINIMAL - Attempting to gather dependency information for package 'Acme.EasyPost.1.0.19' with respect to project 'C:\Users\t\AppData\Local\Temp\NugetFeedPluginCatalog\4mqidyxh.v5a', targeting 'net6.0'
DEBUG - Total number of results gathered : 15
MINIMAL - Gathering dependency information took 60 ms
DEBUG - Summary of time taken to gather dependencies per source :
DEBUG - C:\Users\t\AppData\Local\Temp\NugetFeedPluginCatalog\4mqidyxh.v5a - 56 ms
DEBUG - C:\PlugInStaging\EasyPost - 75 ms
MINIMAL - Attempting to resolve dependencies for package 'Acme.EasyPost.1.0.19' with DependencyBehavior 'Lowest'
fail: Weikio.PluginFramework.AspNetCore.PluginFrameworkInitializer[0]
Failed to initialize Weikio.PluginFramework.Catalogs.NugetFeedPluginCatalog
System.InvalidOperationException: Unable to resolve dependency 'Acme.Support'.
I think that this throws when DI resolution kicks in, from a component that requires the catalog.
Maybe a Packaging issue so I included a .nuspec which should force all dependencies into the .net6 nuget folder (based on this => https://josef.codes/dotnet-pack-include-referenced-projects/)
I copied the package to the package folder. When unzipped, the package does contain the required dependencies.
After retest, same issue.
The framework is very elegant IMHO. Excited to use this! I'm just not getting my proof of concept locked down just yet.
Any suggestions to get there?
Thanks,
Travis