问题
I created a .Net core 2.1 console application with Linux docker support using Visual Studio 2017. I can run the application using the following command line
docker run myApp arg1 arg2
I want to debug it in VS so I set the project docker-compose as the startup project and debug run "Docker Compose" in Visual Studio. However, is there a way to set up the command line arguments? (arg1 arg2 in my example).
回答1:
Unfortunately there is no easy way to do this right now because of the way VS handles debugging into docker containers.
See this issue for more info: https://github.com/Microsoft/DockerTools/issues/75
来源:https://stackoverflow.com/questions/52263380/how-to-pass-command-line-when-debugging-docker-compose-project-in-visual-studio