Skip to content

Commit a0d8988

Browse files
authored
Merge pull request #5824 from ghogen/container-tools-nov
Container tools small fixes
2 parents 24b8263 + ba24df5 commit a0d8988

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

docs/containers/container-build.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ ms.date: 11/20/2019
77
ms.technology: vs-azure
88
ms.topic: conceptual
99
---
10-
# Build and debug containerized apps using Visual Studio or the command line
10+
# How Visual Studio builds containerized apps
1111

12-
Whether you're building from the Visual Studio IDE, or setting up a command-line build, you need to know how Visual Studio builds uses the Dockerfile to build your projects. For performance reasons, Visual Studio follows a special process for containerized apps. Understanding how Visual Studio builds your projects is especially important when you customize your build process by modifying the Dockerfile.
12+
Whether you're building from the Visual Studio IDE, or setting up a command-line build, you need to know how Visual Studio uses the Dockerfile to build your projects. For performance reasons, Visual Studio follows a special process for containerized apps. Understanding how Visual Studio builds your projects is especially important when you customize your build process by modifying the Dockerfile.
1313

1414
When Visual Studio builds a project that doesn't use Docker containers, it invokes MSBuild on the local machine and generates the output files in a folder (typically `bin`) under your local solution folder. For a containerized project, however, the build process takes account of the Dockerfile's instructions for building the containerized app. The Dockerfile that Visual Studio uses is divided into multiple stages. This process relies on Docker's *multistage build* feature.
1515

@@ -78,7 +78,7 @@ MSBuild MyProject.csproj /t:ContainerBuild /p:Configuration=Release
7878

7979
You'll see output similar to what you see in the **Output** window when you build your solution from the Visual Studio IDE. Always use `/p:Configuration=Release`, since in cases where Visual Studio uses the multistage build optimization, results when building the **Debug** configuration might not be as expected. See [Debugging](#debugging).
8080

81-
If you are using a Docker Compose project, use the command to build images:
81+
If you are using a Docker Compose project, use this command to build images:
8282

8383
```cmd
8484
msbuild /p:SolutionPath=<solution-name>.sln /p:Configuration=Release docker-compose.dcproj
@@ -93,7 +93,7 @@ msbuild /p:SolutionPath=<solution-name>.sln /p:Configuration=Release docker-comp
9393
- Pull the images in the first stage of the Dockerfile (the `base` stage in most Dockerfiles).
9494
- Build the Dockerfile and start the container.
9595

96-
Warmup will only happen in **Fast** mode, so the running container will have the app folder volume mounted and any changes to the app should not invalidate the container. This therefore improves the debugging performance significantly and decreases the wait time for long running tasks such as pulling large images.
96+
Warmup will only happen in **Fast** mode, so the running container will have the app folder volume-mounted. That means that any changes to the app won't invalidate the container. This therefore improves the debugging performance significantly and decreases the wait time for long running tasks such as pulling large images.
9797

9898
## Volume mapping
9999

docs/containers/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
href: container-tools-configure.md
3737
- name: Concepts
3838
items:
39-
- name: Building containerized apps
39+
- name: How Visual Studio builds containerized apps
4040
href: container-build.md
4141
- name: Troubleshooting
4242
href: troubleshooting-docker-errors.md

0 commit comments

Comments
 (0)