fsprojects-archive / zzarchive-FSharp.Data.DbPedia

[ARCHIVED] An F# type provider for DBpedia
The Unlicense
13 stars 9 forks source link

Reference docs not building #3

Open dsyme opened 10 years ago

dsyme commented 10 years ago

The "build ReleaseDocs" target is not working. It looks like a missing assembly reference in "generate.fsx", possibly here: https://github.com/fsprojects/FSharp.Data.DbPedia/blob/master/docs/tools/generate.fsx#L73

Creating C:\GitHub\fsprojects\FSharp.Data.DbPedia\docs\output\reference
[0 sec] Reading assembly: C:\GitHub\fsprojects\FSharp.Data.DbPedia\docs\tools\../../bin\FSharp.Data.DbPedia.dll
[0 sec] Parsing assembly
System.InvalidOperationException: The entity or value 'FSharp.Data.JsonValue' does not exist or is in an unresolved assembly. You may need to add a reference to assembly 'FSharp.Data'
   at Microsoft.FSharp.Compiler.SourceCodeServices.Impl.dflt@86[a](String asmName, String path) in C:\GitHub\fsharp\FSharp.Compiler.Service\src\fsharp\vs\Typed.fs:line 36
tpetricek commented 10 years ago

I have no idea what has happened, but somehow F# Compiler Service changed how assembly resolution works and so things that worked previously require more effort now.

Try adding libDirs parameter (like here) and pointing it to the directory where FSharp.Data.DesignTime.dll is located. In Foogle Charts, I even had to add specific version of FSharp.Core.dll (with optdata and sigdata) to the lib folder.

This is a bit mysterious to me, so if anyone has any idea why it works/does not work, I would love to know that.