Run the .NET Core SDK docker image and share your working directory containing your .csproj file at /home
in the container.
On Linux/macOS:
docker run --interactive --tty --rm --volume "$(pwd):/home" mcr.microsoft.com/dotnet/core/sdk:2.2 /bin/bash
On Windows: