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

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


  • dotnet run won't use bower packages
  • Dockers container image update
  • Can't connect to ASP.NET core through docker
  • How to run .Net project as part of jenkins job in Docker
  • Manually running container exists with code 145
  • On dotnet SDK and Docker containers
    • /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:

    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"]

  • AspCore using Docker on Mac
  • docker container exits immediately even with Console.ReadLine() in a .net core console application
  • How are people authenticated in their ASP.NET Core Web APIs on Ubuntu/Docker given the bug described below?
  • ASP.NET Core 1.0 RC1 Docker with dnu publish
  • Connectionstring from docker container to SQL Server dblocal in host
  • Host/Deploy ASP.NET MVC to docker using linux container
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.