Unable to load application or execute command 'Microsoft.AspNet.Server.Kestrel'. Available commands: web Unable to load application or execute command 'Microsoft.AspNet.Server.Kestrel'. Available commands: web docker docker

Unable to load application or execute command 'Microsoft.AspNet.Server.Kestrel'. Available commands: web


I was able to get it working by runnning this commands in the Dockerfile before the ENTRYPOINT:

ADD ./app#SOLUTIONWORKDIR path_to_your_sourcesRUN dnu restore#########WORKDIR /app/approotENTRYPOINT "./web"

Although the error message suggests that it is expecting the command "Microsoft.AspNet.Server.Kestrel" in

  "commands": {    "web": "Microsoft.AspNet.Server.Kestrel"  }

It would be very strange, but to check if that was the case anyway, I tried:

    "commands": {    "web": "Microsoft.AspNet.Server.Kestrel",    "Microsoft.AspNet.Server.Kestrel": "Microsoft.AspNet.Server.Kestrel"  }

And it didn't work.dnu restore fixed it, don't know the relation to the error message yet.