Replies: 5 comments
-
Did you enable container support when you created the project or are you adding a docker file later? |
Beta Was this translation helpful? Give feedback.
-
I have created a project with a docker support |
Beta Was this translation helpful? Give feedback.
-
I'm not actually on the team that works on these tools, but my best guess would be that it's working by accident. In the
Since I've built locally (I believe F5 will do this, even if you're launching in a container), the mounted Edit: maybe it's not an accident. The docs say that the |
Beta Was this translation helpful? Give feedback.
-
@vadimt2 FYI the best place to get support for the container tools is https://github.com/microsoft/DockerTools/issues But while I'm here, as @amcasey said the default behavior in the container tools is to not build the entire image, instead using volume mounts to make for a faster F5 experience. If you prefer having the entire Dockerfile built for each F5, you can set the MSBuild property |
Beta Was this translation helpful? Give feedback.
-
Is there an existing issue for this?
Describe the bug
visual studio is ignoring the Docker file
Expected Behavior
when you click on the play button, it should run copy and etc.
but all the code is comment and it's still running, it doesn't event restoring the nugets
-> when you build docker with cmd it's working!
Steps To Reproduce
Use the latest vs 2022
create a docker file simillar to:
and run
Exceptions (if any)
No response
.NET Version
8
Anything else?
No response
Beta Was this translation helpful? Give feedback.
All reactions