GithubHelp home page GithubHelp logo

Package restore for RC2 about efcore.pg HOT 11 CLOSED

npgsql avatar npgsql commented on August 20, 2024
Package restore for RC2

from efcore.pg.

Comments (11)

roji avatar roji commented on August 20, 2024 1

Hey Julie.

Not sure what is wrong, but I'm working on releasing Npgsql 3.1.0 and the EFCore provider, should be out in an hour or two! Hang on until then, I'll also try to run your test here before pushing to nuget.org

from efcore.pg.

roji avatar roji commented on August 20, 2024

So it's 3 hours later, 3AM over here and everything is finally released :/

No need for the npgsql-unstable feed, everything is on nuget.org. I did a test and managed to restore, build and run. I'm pretty sure netcoreapp1.0 requires you to depend on Microsoft.NETCore.App, here's what my project.json looks like:

"netcoreapp1.0": {
  "imports": [
    "dotnet5.6",
    "dnxcore50",
    "portable-net45+win8+wp8"
  ],
  "dependencies": {
    "Microsoft.NETCore.App": {
      "version": "1.0.0-*",
      "type": "platform"
    }
  }
}

Let me know if you run into any problems!

from efcore.pg.

franciscojunior avatar franciscojunior commented on August 20, 2024

Congratulations, @roji!!

You are awesome!!!

from efcore.pg.

roji avatar roji commented on August 20, 2024

Thanks @franciscojunior, let's see what people report though :)

from efcore.pg.

julielerman avatar julielerman commented on August 20, 2024

wow... I hope you have gone to bed! I got some wierd notfound errors on some of the dependencies but I don't think they were problematic for this package. I have some more migrating to do before I can run my sample and find out. :)

This is what I replaced the unstable myget source with:

from efcore.pg.

roji avatar roji commented on August 20, 2024

@julielerman you may want to totally clear your local nuget cache, you may be using some unstable rc3 packages which are already in there...

from efcore.pg.

julielerman avatar julielerman commented on August 20, 2024

given that I'm getting a stackoverflow when my app tries to open a connection to the postgresql db, I thought I would revisit the caching. I deleted the nuget.org cache folder and re-ran dotnet restore. Looks the same as last night. I cant judge if this is okay or not so sharing here:

log : Restoring packages for /Users/julialerman/Documents/MyEF7A/EF7WebAPI/src/project.json...
info : CACHE https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-cli/nuget/v3/flatcontainer/microsoft.netcore.dotnethostresolver/index.json
info : CACHE https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-core/nuget/v3/flatcontainer/microsoft.netcore.dotnethostresolver/index.json
info : CACHE https://myget-2e16.kxcdn.com/artifacts/aspnetvnext/nuget/v3/flatcontainer/microsoft.netcore.dotnethostresolver/index.json
info : CACHE https://www.myget.org/F/xunit/FindPackagesById()?id='Microsoft.NETCore.DotNetHostResolver'
info : GET https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-cli/nuget/v3/flatcontainer/npgsql.entityframeworkcore.postgresql/index.json
info : GET https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-core/nuget/v3/flatcontainer/npgsql.entityframeworkcore.postgresql/index.json
info : GET https://myget-2e16.kxcdn.com/artifacts/aspnetvnext/nuget/v3/flatcontainer/npgsql.entityframeworkcore.postgresql/index.json
info : CACHE https://www.myget.org/F/xunit/FindPackagesById()?id='Npgsql.EntityFrameworkCore.PostgreSQL'
info : GET https://api.nuget.org/v3-flatcontainer/microsoft.netcore.dotnethostresolver/index.json
info : GET https://api.nuget.org/v3-flatcontainer/npgsql.entityframeworkcore.postgresql/index.json
info : NotFound https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-core/nuget/v3/flatcontainer/npgsql.entityframeworkcore.postgresql/index.json 608ms
info : NotFound https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-cli/nuget/v3/flatcontainer/npgsql.entityframeworkcore.postgresql/index.json 663ms
info : OK https://api.nuget.org/v3-flatcontainer/microsoft.netcore.dotnethostresolver/index.json 342ms
info : CACHE https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-cli/nuget/v3/flatcontainer/microsoft.netcore.dotnethost/index.json
info : CACHE https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-core/nuget/v3/flatcontainer/microsoft.netcore.dotnethost/index.json
info : CACHE https://myget-2e16.kxcdn.com/artifacts/aspnetvnext/nuget/v3/flatcontainer/microsoft.netcore.dotnethost/index.json
info : CACHE https://www.myget.org/F/xunit/FindPackagesById()?id='Microsoft.NETCore.DotNetHost'
info : GET https://api.nuget.org/v3-flatcontainer/microsoft.netcore.dotnethost/index.json
info : OK https://api.nuget.org/v3-flatcontainer/npgsql.entityframeworkcore.postgresql/index.json 376ms
info : OK https://api.nuget.org/v3-flatcontainer/microsoft.netcore.dotnethost/index.json 242ms
info : NotFound https://myget-2e16.kxcdn.com/artifacts/aspnetvnext/nuget/v3/flatcontainer/npgsql.entityframeworkcore.postgresql/index.json 1070ms

from efcore.pg.

roji avatar roji commented on August 20, 2024

@julielerman I can see the aspnetvnext feed in there, that's not good - it probably means you're getting post-rc2 packages.

Here are some things to do:

  • I'd make sure your application's NuGet.Config is clean - you should only getting stable packages from nuget.org.
  • You've deleted the nuget HTTP cache, but try cleaing the package cache as well (%USERPROFILE%.nuget\packages).
  • Make sure don't have old version of the runtime and tools themselves, delete %LOCALAPPDATA%\Microsoft\dotnet and uninstall anything undesirable in the Windows programs list.
  • Finally, I'd also re-delete both the nuget HTTP cache as you've done before (%LOCALAPPDATA%\NuGet).

from efcore.pg.

julielerman avatar julielerman commented on August 20, 2024

oh! I see it. Guess I should have been more careful when copying someone else's nuget.config. Gonna go clean things up and restore again. FWIW, migrations seem to be connecting, so possibly the stackoverflow is from my code as I'm still trying to shift the sample from RC1 to RC2.
oh p.s. on a mac :)

from efcore.pg.

julielerman avatar julielerman commented on August 20, 2024

ahhh much better. Clean restore. Migrations are working. Now to get to the bottom of the stackoverflow when my app is opening the connection to the database ... totally different problem and I think a conflict with the old code and the new behavior. Just have to find the source... :)
THANKS and thanks for whipping the new provider up so quickly

Update: the stackoverflow was unrelated to the driver. Just coincidentally around the connection.

from efcore.pg.

roji avatar roji commented on August 20, 2024

Great! Give it hell and let me know if any problems.

from efcore.pg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.