fsprojects / ProjectScaffold

A prototypical .NET solution (file system layout and tooling), recommended for F# projects
http://fsprojects.github.io/ProjectScaffold
The Unlicense
515 stars 154 forks source link

Type provider from FSharp.Data crashes Fake #232

Closed quant1729 closed 7 years ago

quant1729 commented 8 years ago

Hello,

Today I started using project scaffold and immediately faced this issue. If I add to my code some reference to JsonProvider from FSharp.Data, I immediately get build crashing with error:

Binding session to 'D:\Username\Documents\Visual Studio 2015\Projects\A\pac kages\build\FSharp.Formatting\lib/net40\FSharp.MetadataFormat.dll'... Binding session to 'D:\Username\Documents\Visual Studio 2015\Projects\A\pac kages\build\FSharp.Formatting\lib/net40\RazorEngine.dll'...

error FS0193: The module/namespace 'FSharp.Data' from compilation unit 'FSharp.D ata' did not contain the namespace, module or type 'JsonProvider,Sample="data/file.json"'

error FS0193: The module/namespace 'FSharp.Data' from compilation unit 'FSharp.D ata' did not contain the namespace, module or type 'JsonProvider,Sample="data/file2.json"' Stopped due to error

Running build failed. Error: System.Exception: generating reference documentation failed at FSI_0001.Build.buildDocumentationTarget(String fsiargs, String target) at FSI_0001.Build.clo@225-19.Invoke(Unit _arg1) at Fake.TargetHelper.runSingleTarget(TargetTemplate`1 target) in C:\code\fake \src\app\FakeLib\TargetHelper.fs:line 483

Please advise.

Best regards, Pavel.

quant1729 commented 8 years ago

Hello?

sergey-tihon commented 8 years ago

Please try to use full path to the JSON files "data/file.json"

quant1729 commented 8 years ago

Thank you. will try it. Reporting one more issue in a separate ticket.

dsyme commented 7 years ago

This is a FAKE or FSharp.Data issue, not a scaffolding issue