.net knows what version it is, it knows what deps your project has, etc.
Instead of declaring this effectively twice (once for .net and once for Docker), .net is handling everything.
I also see the big call out to cases where the dockerfile and project are not in the same directory, This looks like a more straight forward improvement.