-
Notifications
You must be signed in to change notification settings - Fork 854
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
Can't generate metadata for *.csproj files that reference other projects #8048
Comments
The docfx.console/2.59.0 NuGet package does not contain NuGet.Build.Tasks.dll, and contains a NuGet.Frameworks.dll (informational version 5.7.0+b804bf4ba62c0b47c77bbf3e22e196b57cd7a556.b804bf4ba62c0b47c77bbf3e22e196b57cd7a556, assembly version 5.7.0.7) that does not define a NuGet.Frameworks.NuGetFramework.ParseComponents method. Perhaps your brewed DocFX 2.59.2 has the same situation. .NET SDK 6.0.300 for Windows includes a NuGet.Build.Tasks.dll (informational version 6.2.0-rc.146+b8a61266d9a6780cb7eb9c1942695cf813fdef0a.b8a61266d9a6780cb7eb9c1942695cf813fdef0a, assembly version 6.2.0.146, referencing NuGet.Frameworks 6.2.0.146) in which NuGet.Build.Tasks.GetReferenceNearestTargetFrameworkTask.Execute does not directly call NuGet.Frameworks.NuGetFramework.ParseComponents, but can call it indirectly via NuGet.Build.Tasks.GetReferenceNearestTargetFrameworkTask.GetNuGetFramework or NuGet.Build.Tasks.GetReferenceNearestTargetFrameworkTask.TryParseFramework. NuGet 5.8.0.6783 seems to be the first release that includes those calls. I guess NuGet.Build.Tasks.dll is loaded from Mono in your scenario, and is newer than the NuGet.Frameworks.dll that you have in DocFX. Would it work if you just replaced the NuGet DLLs in DocFX with the newer DLLs from Mono? Although I suppose it would be better to rebuild DocFX referencing the newer NuGet packages. |
Thanks for the tip. I've tried this: Copy It removed the warnings about NuGet, however, I still get:
|
Similar Q# incompatibility with .NET SDK dotnet/sdk#26065 (comment) |
Operating System:
macOS Big Sur 11.6 (20G165)
DocFX Version Used:
2.59.2.0
(brewed)Template used:
default
Steps to Reproduce:
Attached there's a Unity project with .csproj files generated by com.unity.ide.visualstudio@2.0.14.
unity-test.zip
ASM1.csproj
— doesn't reference other projects, works ✅ASM2.csproj
— references ASM1, doesn't work ❌docfx metadata --force docfx_project/docfx_ko.json
Expected Behavior:
Metadata gets generated for
ASM2.csproj
Actual Behavior:
The text was updated successfully, but these errors were encountered: