-
Notifications
You must be signed in to change notification settings - Fork 869
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
metadata command not working on Linux (Mono) #1708
Comments
FYI, I have just tried DocFX on Windows 10 using the choco package and the seed repo with basically the same results (can't generate metadata), so it does not seem that this problem is restricted to just Linux/Mono.
|
On further inspection, on Windows, it seems to be a different issue. You have to manually specify the source code files. So, no problem on Windows other than the error message is not informative. |
Now that I understand the separate issue I was seeing on Windows (with the same warning message), I was able to get things working on Linux/Mono. I just grabbed the .dll from https://www.nuget.org/packages/Microsoft.VisualStudio.RemoteControl/ and threw it in with the others from the .zip file. |
Hi @dlech Are you able to generate documents under mono after the missing dll is added? In my local machine, |
There are two separate issue here. The first is...
Adding the .dll fixes this issue. The second is...
This is fixed by editing
I made PR #1734 to get a more useful error message for the second issue. The second issue seems to be caused by the lack of support for the new csproj file format. |
MSBuildWorkspace.OpenSolutionAsync() and MSBuildWorkspace.OpenProjectAsync() do not give any notification that loading a solution or project failed. However, there is a WorkspaceFailed event that we can use to be notified when there is a problem. This logs the diagnotic information from this event to help the user troubleshoot. Related: * dotnet/roslyn#19978 (comment) * dotnet#1686 * dotnet#1708 (comment)
MSBuildWorkspace.OpenSolutionAsync() and MSBuildWorkspace.OpenProjectAsync() do not give any notification that loading a solution or project failed. However, there is a WorkspaceFailed event that we can use to be notified when there is a problem. This logs the diagnotic information from this event to help the user troubleshoot. Related: * dotnet/roslyn#19978 (comment) * #1686 * #1708 (comment)
The error is fixed in v2.18.3 |
Confirmed both issues are fixed under Mono. Thanks! |
MSBuildWorkspace.OpenSolutionAsync() and MSBuildWorkspace.OpenProjectAsync() do not give any notification that loading a solution or project failed. However, there is a WorkspaceFailed event that we can use to be notified when there is a problem. This logs the diagnotic information from this event to help the user troubleshoot. Related: * dotnet/roslyn#19978 (comment) * #1686 * #1708 (comment)
Functional impact
docfx metadata
is not usable on Linux.Minimal repro steps
Ubuntu 16.04
Mono from Mono repository
docfx v2.17.7
Clone docfx-seed repo
Run
mono /path/to/docfx.exe metadata
Expected result
Metadata should be created.
Actual result
If fails to create any data...
Further technical details
According to the error message,
Microsoft.VisualStudio.RemoteControl
is missing. This does not sound like something that would be included in Mono, so it either needs to be included in the docfx.zip or the dependency should be removed.The text was updated successfully, but these errors were encountered: