JordanMarr / SqlHydra

SqlHydra is a suite of NuGet packages for working with databases in F# including code generation tools and query expressions.
MIT License
212 stars 21 forks source link

Could not find file '...\schema.json'. #1

Closed eferfolja closed 3 years ago

eferfolja commented 3 years ago

First, let me say: great library and thanks for your hard work :pray: Using it with Dapper.FSharp is awesome.

I am testing the library SqlHydra.SqlServer (following the readme), and I get the following error (in AdventureWorks.fs):

namespace rec globalmodule SqlServerGeneratorFailure =
    let (!CompilationError) =
        "Could not find file 'C:\dev\MyTest\schema.json'."

I suspected my connection string but... If (instead of using the Nuget package) I clone the repo and replace the connection in myriad.toml with my connection, everything works.

If is needed I can paste my configs (they are pretty basic as I am following the readme). But I guess there is something wrong with the nuget package.

JordanMarr commented 3 years ago

Thank you for testing. Would it be possible to post a small reproduction solution to GitHub so that I can study it? Which OS are you running it on?

JordanMarr commented 3 years ago

No need to upload a repro project - I was able to reproduce it with a brand new project. it is indeed a problem with the nuget package.

Stayed tuned…

eferfolja commented 3 years ago

I was just about to reply to you with a link to a repro project... Great that you could reproduce it.

Will stay tuned :wink:

JordanMarr commented 3 years ago

I had an epiphany while fighting NuGet last night that this whole thing should just be a dotnet tool. https://twitter.com/jordan_n_marr/status/1397248838105174020?s=20

Closing this issue due to total rewrite. 😁