diff --git a/test/E2ETests/Common/DeploymentUtility.cs b/test/E2ETests/Common/DeploymentUtility.cs index d15d3a5555..46e9a52e07 100644 --- a/test/E2ETests/Common/DeploymentUtility.cs +++ b/test/E2ETests/Common/DeploymentUtility.cs @@ -180,7 +180,10 @@ namespace E2ETests startParameters.ApplicationHostConfigTemplateContent.Replace("[ApplicationPhysicalPath]", Path.Combine(startParameters.ApplicationPath, "wwwroot")); } - IISExpressHelper.CopyAspNetLoader(startParameters.ApplicationPath); + if (!startParameters.BundleApplicationBeforeStart) + { + IISExpressHelper.CopyAspNetLoader(startParameters.ApplicationPath); + } if (!string.IsNullOrWhiteSpace(startParameters.ApplicationHostConfigTemplateContent)) {