-
Notifications
You must be signed in to change notification settings - Fork 868
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error with running docfx on local #7832
Comments
DocFX 2.58.9 ships with a System.Collections.Immutable.dll whose assembly name is "System.Collections.Immutable, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", and docfx.exe.config has an assembly binding redirection: <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Collections.Immutable" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.0.0.0" newVersion="5.0.0.0" />
</dependentAssembly>
</assemblyBinding> However, plugins would use docfx.plugins.config (source) instead of docfx.exe.config. What plugins do you use? |
I have this exact issue as well. Is there any known workaround? I tried locally going back a few versions, but met the same result. |
This definitely has to do with the plugins used. If you are using the last modified processor, make sure to use the latest. Thats fixed my issues - https://github.com/Still34/DocFx.Plugin.LastModified/releases/tag/v1.2.5 |
Getting this as well on a fresh pc:
|
Getting this same error as well. How do I find the plugin? |
I think I'm running into the same thing, although the error message is slightly different. I have the memberpage plugin installed in "template": [
"default",
"plugins/memberpage.2.59.4/content",
] Running
Taking a look at <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.1.2" newVersion="4.0.1.2" />
</dependentAssembly>
</assemblyBinding> In the same folder, there is a Removing the |
I've now reverted to v2.59.0 (I was previously using v2.59.4) of both docfx and the memberpage plugin, and I'm no longer getting the error. I skimmed through the commits that happened between those versions and didn't notice anything out of place, but I also have no idea what I'm looking for—hopefully someone more familiar with docfx can figure something out 🙂 |
And the latest nuget packages says version 4.5.5. That https://developercommunity.visualstudio.com/t/systemmemorydll-version-mismatch-in-visual-studio/620823 |
No idea how DocFX loads plugins, but looking at the Fusion logs, I see that
Patching |
Operating System: Windows 11
DocFX Version Used: v2.58.9
Template used: (
default
orstatictoc
or contain custom template)Steps to Reproduce:
Expected Behavior:
docfx should build the local repo
Actual Behavior:
Error Below : Could not load file or assembly 'System.Collections.Immutable, Version=1.2.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
The text was updated successfully, but these errors were encountered: