When you creating a project with a space in the name, it results in the docker run -it {tag} command failing due to this line not escaping the space correctly.
Test case:
$ mkdir "my app"
$ cd "my app"
$ dotnet new console
Adding the Dockerize tool to the .csporj
$ dotnet dockerize -t myapp
$ docker run -it myapp
produces the result of
/bin/sh: 1: /projectBinaries/my: not found
Manually modifying the dockerfile and rebuilding it to have an \ before any spaces results in the docker run command working as expected.