docfx icon indicating copy to clipboard operation
docfx copied to clipboard

DocFX bundles roslyn rather than using the version from the SDK

Open ericstj opened this issue 2 months ago • 1 comments

Related https://github.com/dotnet/docfx/issues/10808

We noticed this when running against projects targeting .NET 10.0. They cannot use new language features, and starting with RC2 they stopped loading the source-generators built into the framework.

I found this was because docfx was using a copy of roslyn bundled inside it. Instead it should be either a) locating the roslyn from the SDK used by the project or b) allowing the user to specify a path as an escape hatch.

ericstj avatar Oct 16 '25 19:10 ericstj

Is there any guide for locating the Roslyn packages from the SDK path?

WeihanLi avatar Nov 13 '25 00:11 WeihanLi