Share via


Container Tools build properties

You can customize how Visual Studio builds your container projects by setting the properties that MSBuild uses to build your project. For example, you can change the name of the Dockerfile, specify tags and labels for your images, provide additional arguments passed to Docker commands, and control whether Visual Studio does certain performance optimizations such as building outside of the container environment. You can also set debugging properties such as the name of the executable to launch, and the command line arguments to provide.

You can add the property setting to an existing PropertyGroup element, or if there isn't one, create a new PropertyGroup element.

Example

The following project file shows examples of some of these settings.

Next steps

For information on MSBuild properties generally, see MSBuild Properties.

See also

Docker Compose build properties

Container Tools launch settings

MSBuild reserved and well-known properties