Code Monkey home page Code Monkey logo

Comments (2)

MichaelSimons avatar MichaelSimons commented on June 10, 2024 1

@aligin, You don't by chance have an older microsoft/dotnet image cached on your machine? I just want to rule out the obvious 😃

I ran the microsoft/dotnet:latest image, did a dotnet new, modified the generated project.json to have your dependencies and frameworks. I had to remove the Monq.IdentityServer4.EntityFrameworkCore.Users reference. I was then able to successfully run dotnet restore. I checked the project.lock.json and noticed the Libuv referenced by Microsoft.ASPNetCore.Server.Kestrel is older than yours so I am wondering why your repo is trying to pull a newer version

Here is a snippet of my project.lock.json

      "Microsoft.AspNetCore.Server.Kestrel/1.0.0-rc2-final": {
        "type": "package",
        "dependencies": {
          "Libuv": "1.9.0-rc2-20896",
          "Microsoft.AspNetCore.Hosting": "1.0.0-rc2-final",
          "Microsoft.Extensions.Logging.Abstractions": "1.0.0-rc2-final",
          "Microsoft.Extensions.PlatformAbstractions": "1.0.0-rc2-final",
          "System.Buffers": "4.0.0-rc2-24027",
          "System.Collections": "4.0.11-rc2-24027",
          "System.Diagnostics.Debug": "4.0.11-rc2-24027",
          "System.Globalization": "4.0.11-rc2-24027",
          "System.IO": "4.1.0-rc2-24027",
          "System.Linq": "4.1.0-rc2-24027",
          "System.Net.Primitives": "4.0.11-rc2-24027",
          "System.Numerics.Vectors": "4.1.1-rc2-24027",
          "System.Runtime.Extensions": "4.1.0-rc2-24027",
          "System.Runtime.InteropServices": "4.1.0-rc2-24027",
          "System.Text.Encoding": "4.0.11-rc2-24027",
          "System.Threading": "4.0.11-rc2-24027",
          "System.Threading.Tasks": "4.0.11-rc2-24027",
          "System.Threading.Tasks.Extensions": "4.0.0-rc2-24027",
          "System.Threading.Thread": "4.0.0-rc2-24027",
          "System.Threading.ThreadPool": "4.0.10-rc2-24027",
          "System.Threading.Timer": "4.0.1-rc2-24027"
        },

Can you share what your NuGet.config looks like?

from dotnet-docker.

aligin avatar aligin commented on June 10, 2024 1

@MichaelSimons You are lifesaver. After you've noticed about the project.lock.json I realized that the problem in my deploying process. In the Dockerfile I copy project.json to docker dir, then make dotnat restore, so the project.lock.json is generated in docker container and then I copy my working dir entirely with project.lock.json generated from VisualStudio, so the project.lock.json is overwriting. Why VS has generated the "Libuv/1.9.0-rc2-20901" I don't know. Maybe old Nuget cache.

Thanks a lot.

from dotnet-docker.

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.