docker – failed to compute cache key: not found – runs fine in visual studio

So I’ve generated a Dockerfile with VS, it runs in VS just fine and now I’m trying to build it from windows itself(docker buid . , I tried many combinations). Yet I get the following error

Error code

When I change copy to ./client.csproj it does continue and then I get
Second error with changed copy path

What am I doing wrong? I changed Docker linux to windows, changed WSL, restarted everything

Thanks in advance

Source: Docker Questions

LEAVE A COMMENT