Unable to locate dependency 'class library project(s)'

I have created ASP.NET Core webAPI project with following folder structure.

/src

  • Can't build ASP.NET Core app that references PCL in docker
  • System.IO.FileNotFoundException: Could not load file or assembly 'System.Net.Security, Version=4.0.0.0
  • Using Docker for Asp.Net 5.0 Development on Linux
  • How to remove docker support from an ASP.NET Core project?
  • ASP.net core dev container
  • MySQL -> .NET Core Dependency error (MySql.Data)
    • /WebApiProject
      • Dockerfile
    • /DomainProject
    • /CoreProject

    WebApiProject has dependency of DomainProject and CoreProject. Everything is working fine with dnu restore dependencies of DomainProject and CoreProject are resolved because both are peer folders. Also I am able to run my webApi by executing dnx web command.

    Now, I am trying to create docker image in my Ubuntu machine and for that I am referring below link:
    https://blogs.infosupport.com/build-deploy-test-aspnetcore-docker-linux-tfs2015/

    but when I try to create docker image i am getting below error message:

    Errors in /app/project.json

    “Unable to locate dependency DomainProject >= 1.0.0.*

    “Unable to locate dependency CoreProject >= 1.0.0.*

    Can someone help me to resolve this issue ?
    dnu restore is able resolve the dependency but during docker image create these dependency doesn’t resolved.

    Below is the my docker file

    FROM microsoft/aspnet:1.0.0-rc1-update1-coreclr
    
    RUN printf "deb http://ftp.us.debian.org/debian jessie main\n" >> /etc/apt/sources.list
    RUN apt-get -qq update && apt-get install -qqy sqlite3 libsqlite3-dev && rm -rf /var/lib/apt/lists/*
    
    COPY . /app
    WORKDIR /app
    RUN ["dnu", "restore"]
    
    EXPOSE 5001/tcp
    
    ENTRYPOINT ["dnx", "-p", "project.json", "web"]
    

  • Why does :latest aspnet core docker image run when the tag :1.1 fails?
  • System.IO.FileNotFoundException: Could not load file or assembly 'System.Net.Security, Version=4.0.0.0
  • Building a docker image (.NET Core) and uploading it to Google Container Engine?
  • Identity Server 4 running within docker container Exception: Unable to load DLL 'System.Security.Cryptography.Native.OpenSsl'
  • How to remove docker support from an ASP.NET Core project?
  • What is the correct ENTRYPOINT for Asp.net Core RC2 Dockerfile
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.