Comments (4)
Hello,
I think this might be the same problem as in #616 (comment).
Could you try and reference the missing dll using the ?otherFlags
parameter?
Something like otherFlags = [ "-r:MyPath/ToMy/Assembly.dll" ]
from fsharp.formatting.
Adding references the way you suggested works fine, thanks. here is the solution. Note that i used <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
in my .fsproj
file so that the dependency dlls are put into the same folder as the compilation output of the library.
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 otherFlags
option sadly.
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"
]
)
from fsharp.formatting.
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)?
from fsharp.formatting.
For future reference, I found that setting libDirs
is enough when all dependencies are in one folder:
A combination of <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
in the fsproj file and setting libDirs
to the compilation output path leads to only one folder with all dependecies referenced. This might be easier especially for large projects with many dependencies:
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\"]
)
from fsharp.formatting.
Related Issues (20)
- Directory.Build.props is ignored if there are no projects or solutions HOT 3
- SEO-optimization for new theme HOT 4
- Suggestion: init command
- Dark mode borders: too much contrast?
- Namespace description overflows content box
- Output font size on mobile safari is too big HOT 6
- Using testcontainers in a fsx script gives wrong output HOT 7
- Create a keyword/glossary site map
- add .dib notebook support HOT 6
- --watch expectation HOT 1
- Suggestion: auto-expansion of `<details>…</details>` for direct links HOT 12
- Can FSharp.Formatting support documenting programs? HOT 1
- Enable `watch` server from arbitrary host HOT 4
- Is it possible to generate an HTML AST from Markdown? HOT 1
- Nesting Document Categories HOT 1
- Include images in documentation in generated content HOT 17
- Use signature-like for documenting the API HOT 6
- Making a change to `content/fsdocs-default.css` cause an infinite update loop
- Use `Ctrl+C` instead of allowing any key press to kill the process
- Replace `ApiDocMemberDetails` union with a record
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fsharp.formatting.