Skip to content
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

issue using nuget package from FSI #44

Open
smoothdeveloper opened this issue Mar 29, 2019 · 3 comments
Open

issue using nuget package from FSI #44

smoothdeveloper opened this issue Mar 29, 2019 · 3 comments

Comments

@smoothdeveloper
Copy link
Collaborator

smoothdeveloper commented Mar 29, 2019

Thanks for this awesome library!

I'm having some trouble using it from FSI, or even in a project with recent tooling (vs2019, but I assume same issue happens in vs2017):

tp vs2019

it either throws internal error in Config type initializer, or complains about fparsec-cs not being loaded (not sure if it was a binding redirect issue, but should work from fsi at least)

Interestingly, when I'm referencing the build from my PR rather than published nuget, it fixes the issue.

I've not figured if this is an issue in paket generated script, but I'd first like to check if using new sdk to target .net 45 binaries for the TP assemblies is what fixes the issue in my case.

Have you encountered the errors above?

edit: #43

@rkosafo
Copy link
Contributor

rkosafo commented Mar 29, 2019

I'm unable to reproduce the error with a normal project in VS2017. Not using paket though. Which versions of the libraries are you using?

I tried the following

  • Create new .net project
  • Added: Rezoom.SQL.Provider.TSQL. It installs the previously stable version of the library.

There are problems using the most recent version of the library.

For the paket version, how did you set it up so I try reproducing this?

@rkosafo
Copy link
Contributor

rkosafo commented Mar 29, 2019

image

Above are the libraries installed in my test .net project. Please do confirm yours.

@smoothdeveloper
Copy link
Collaborator Author

paket.dependencies

source https://www.nuget.org/api/v2
storage: none
redirects: on
generate_load_scripts: on

framework: >= net45 , >= netstandard2.0

nuget Auto9G
nuget FSharp.Core redirects: force
nuget LicenseToCIL = 0.3.0
nuget Rezoom.SQL.Provider.SQLite
nuget Rezoom.SQL.Provider.TSQL
nuget Rezoom.SQL.Provider.Postgres

paket.lock (relevant snippets):

    FParsec (1.0.3)
    FParsec-Pipes (1.1.1)
    FSharp.Core (4.6.2) - redirects: force
    LicenseToCIL (0.3)
    Npgsql (4.0.5)
    Rezoom (1.0)
    Rezoom.SQL.Provider (0.7.2.40976)
    Rezoom.SQL.Provider.Postgres (0.7)
    Rezoom.SQL.Provider.SQLite (0.7)
    Rezoom.SQL.Provider.TSQL (0.7)

after paket install it will generate the files under .paket/load/* that makes it easy to pull all the dependencies from scripting environment.

I'm anyways able to work around, and expect things to get sorted out with recent dotnet SDK and TP SDK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants