-
Notifications
You must be signed in to change notification settings - Fork 158
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
Package references cannot be resolved when trying to build API documentation programmatically #833
Comments
Hello, I think this might be the same problem as in #616 (comment). Could you try and reference the missing dll using the |
Hi @nojaf, thanks for the response, I'll give this a spin. However, the referenced assemblies are not contained in the compilation output, so I guess the standard way is referencing these packages from the nuget cache (i do not use paket)? |
Adding references the way you suggested works fine, thanks. here is the solution. Note that i used I hoped that the references would not be necessary then, because the dependency dlls are in the same folder, but i still have to set the ApiDocs.GenerateHtml(
inputs = [
ApiDocInput.FromFile(
@"path\to\bin\Debug\netstandard2.0\Plotly.NET.dll"
)
],
output = @"C:\Users\schne\source\repos\plotly\Plotly.NET\src",
collectionName = "Plotly.NET",
substitutions = [],
otherFlags = [
@"-r:path\to\bin\Debug\netstandard2.0\Giraffe.ViewEngine.StrongName.dll"
@"-r:path\to\bin\Debug\netstandard2.0\DynamicObj.dll"
@"-r:path\to\bin\Debug\netstandard2.0\Newtonsoft.Json.dll"
]
) |
For future reference, I found that setting A combination of ApiDocs.GenerateHtml(
inputs = [
ApiDocInput.FromFile(
@"C:\Users\schne\source\repos\plotly\Plotly.NET\src\Plotly.NET\bin\Debug\netstandard2.0\Plotly.NET.dll"
)
],
output = @"C:\Users\schne\source\repos\plotly\Plotly.NET\src",
collectionName = "Plotly.NET",
substitutions = [],
libDirs = [ @"C:\Users\schne\source\repos\plotly\Plotly.NET\src\Plotly.NET\bin\Debug\netstandard2.0\"]
) |
Hi there,
I am trying to build API documentation for Plotly.NET programmatically, following the instructions from the docs. However, this fails for every project where there are external dependencies. Here is for example the error for Plotly.NET, which depends on a few packages, one of them bein
DynamicObj
:code:
Full error
I have tried browsing the source code of the command tool for hints how these references can be resolved by the tool, but had no success. Is there a way to make sure these references can be resolved?
The text was updated successfully, but these errors were encountered: