diff --git a/src/Build/Construction/Solution/SolutionProjectGenerator.cs b/src/Build/Construction/Solution/SolutionProjectGenerator.cs index e51789bbb38..1947ac8344f 100644 --- a/src/Build/Construction/Solution/SolutionProjectGenerator.cs +++ b/src/Build/Construction/Solution/SolutionProjectGenerator.cs @@ -658,19 +658,6 @@ internal static bool WouldProjectBuild(SolutionFile solutionFile, string selecte if (projectConfiguration == null) { - if (project.ProjectType == SolutionProjectType.WebProject) - { - // Sometimes web projects won't have the configuration we need (Release typically.) But they should still build if there is - // a solution configuration for it - foreach (SolutionConfigurationInSolution configuration in solutionFile.SolutionConfigurations) - { - if (String.Equals(configuration.FullName, selectedSolutionConfiguration, StringComparison.OrdinalIgnoreCase)) - { - return true; - } - } - } - // No configuration, so it can't build. return false; }