-
One appraoch to solve #9238 seems to be implementing a custom PostProcessor, as described in the Documentation. However, I don't seem to be able to load my post processor. My docfx.json configuration for the post processors looks like this:
Since ExtractSearchIndex works, I'm confident it's in the right spot. Step 4 in the documentation specifies where the built dll of the assembly containing the preprocessor should be copied to: I tried several folder options, none seem to work: I am consistently getting the following error:
It was always 6 plug-ins, even before I added the processor, so the plug-in is definitely not picked up. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
It seems Document is a little outdated and needs updating. Current docfx implementation load plugin DLLs from following locations. (it's described at this page)
And the message docfx/src/Docfx.Build.Engine/DocumentBuilder.cs Lines 40 to 44 in f205a44 |
Beta Was this translation helpful? Give feedback.
-
What's version .NET global tools installed (e.g. It seems that problems are occurred when custom plugin referencing newer version of |
Beta Was this translation helpful? Give feedback.
-
We were experiencing the same with a post-processor we've been using for some time now after updating docfx: C:\Projects\xxx\EssSharp>docfx --version
2.73.2+8a60af927dcb1a034de840021cc7268c309f9d17 After updating all packages, we ended up here: C:\Projects\xxx\EssSharp.PostProcessor>dotnet list EssSharp.PostProcessor.sln package
Project 'EssSharp.PostProcessor' has the following package references
[net7.0]:
Top-level Package Requested Resolved
> Docfx.Plugins 2.73.2 2.73.2
> Newtonsoft.Json 13.0.3 13.0.3
> System.Collections.Immutable 8.0.0 8.0.0
> System.Composition 8.0.0 8.0.0 Even when the Searching custom plugins in directory C:\Projects\xxx\EssSharp\docfx\templates\EssSharp\plugins...
warning: Can't import: EssSharpPostProcessor, System.Composition.Hosting.CompositionFailedException: No export was found for the contract 'IPostProcessor "EssSharpPostProcessor"'.
at System.Composition.CompositionContext.GetExport(CompositionContract contract)
at System.Composition.CompositionContext.GetExport(Type exportType, String contractName)
at Docfx.Common.CompositionContainer.GetExport(CompositionHost container, Type type, String name) in /_/src/Docfx.Build/CompositionContainer.cs:line 41
warning: Can't find the post processor: EssSharpPostProcessor Just leaving this here in case it's helpful for anyone else. Edit: In case it wasn't clear, downgrading |
Beta Was this translation helpful? Give feedback.
What's version .NET global tools installed (e.g.
2.70.3
)It seems that problems are occurred when custom plugin referencing newer version of
Docfx.Plugins
(2.70.4
) .Try to update docfx version or downgrade
Docfx.Plugins
NuGet package.