https://github.com/dotnet/dotnet-docker-samples/tree/master/aspnetapp
Docker command docker build -t aspnetapp
.
I am getting an error for docker bui
I'm suprised no one said this already. This was caused by not having the latest sdk installed. In my case docker was looking for the file
C:\Program Files\dotnet\sdk\3.1.302\NuGet.targets
However this file did not exist on my machine instead I had a different minor version.
C:\Program Files\dotnet\sdk\3.1.301\NuGet.targets
I'm sure they're away to get it working using an older version, but in my case I just updated the downloaded the latest sdk