diff --git a/TestAssets/TestProjects/docker-compose/docker-compose.dcproj b/TestAssets/TestProjects/docker-compose/docker-compose.dcproj
new file mode 100644
index 000000000..17ed6f924
--- /dev/null
+++ b/TestAssets/TestProjects/docker-compose/docker-compose.dcproj
@@ -0,0 +1,13 @@
+
+
+
+ 2.0
+ Linux
+ LaunchBrowser
+ http://localhost:{ServicePort}
+ testwebapplication
+
+
+
+
+
\ No newline at end of file
diff --git a/TestAssets/TestProjects/docker-compose/docker-compose.yml b/TestAssets/TestProjects/docker-compose/docker-compose.yml
new file mode 100644
index 000000000..9903b7748
--- /dev/null
+++ b/TestAssets/TestProjects/docker-compose/docker-compose.yml
@@ -0,0 +1,8 @@
+version: '3.0'
+
+services:
+ testwebapplication:
+ image: testwebapplication
+ build:
+ context: .
+ dockerfile: testwebapplication/Dockerfile
diff --git a/build/BundledSdks.props b/build/BundledSdks.props
index e7dde28e6..b23f247e3 100644
--- a/build/BundledSdks.props
+++ b/build/BundledSdks.props
@@ -7,5 +7,6 @@
+
diff --git a/build/NugetConfigFile.targets b/build/NugetConfigFile.targets
index f6d1361e0..77318c3a9 100644
--- a/build/NugetConfigFile.targets
+++ b/build/NugetConfigFile.targets
@@ -30,6 +30,7 @@
+
]]>
diff --git a/test/dotnet-build.Tests/GivenDotnetBuildBuildsDcproj.cs b/test/dotnet-build.Tests/GivenDotnetBuildBuildsDcproj.cs
new file mode 100644
index 000000000..eb062eb71
--- /dev/null
+++ b/test/dotnet-build.Tests/GivenDotnetBuildBuildsDcproj.cs
@@ -0,0 +1,32 @@
+// Copyright (c) .NET Foundation and contributors. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+
+using FluentAssertions;
+using Microsoft.DotNet.Tools.Test.Utilities;
+using Xunit;
+
+namespace Microsoft.DotNet.Cli.Build.Tests
+{
+ public class GivenDotnetBuildBuildsDcproj : TestBase
+ {
+ [Fact]
+ public void ItPrintsBuildSummary()
+ {
+ var testAppName = "docker-compose";
+ var testInstance = TestAssets.Get(testAppName)
+ .CreateInstance(testAppName)
+ .WithSourceFiles()
+ .WithRestoreFiles();
+
+ string expectedBuildSummary = @"Build succeeded.
+ 0 Warning(s)
+ 0 Error(s)";
+
+ var cmd = new BuildCommand()
+ .WithWorkingDirectory(testInstance.Root)
+ .ExecuteWithCapturedOutput();
+ cmd.Should().Pass();
+ cmd.StdOut.Should().ContainVisuallySameFragment(expectedBuildSummary);
+ }
+ }
+}
\ No newline at end of file