80 references to ProjectConfigurations
Microsoft.Build (11)
Construction\Solution\SolutionFile.cs (1)
527return project.ProjectType != SolutionProjectType.SolutionFolder && project.ProjectConfigurations.Count > 0;
Construction\Solution\SolutionProjectGenerator.cs (9)
273if (project.ProjectConfigurations.TryGetValue(solutionConfiguration.FullName, out ProjectConfigurationInSolution projectConfiguration)) 295if (dependencyProject.ProjectConfigurations.TryGetValue(solutionConfiguration.FullName, out ProjectConfigurationInSolution dependencyProjectConfiguration) && 795project.ProjectConfigurations.TryGetValue(selectedSolutionConfiguration, out ProjectConfigurationInSolution projectConfiguration); 1334if (dependencyProject.ProjectConfigurations.TryGetValue(_selectedSolutionConfiguration, out ProjectConfigurationInSolution dependencyProjectConfiguration) && 1633(referencedProject.ProjectConfigurations.TryGetValue(solutionConfiguration.FullName, out ProjectConfigurationInSolution referencedProjectConfiguration)) && 1781if (project.ProjectConfigurations.TryGetValue(solutionConfiguration.FullName, out ProjectConfigurationInSolution projectConfiguration)) 1871if (project.ProjectConfigurations.TryGetValue(solutionConfiguration.FullName, out ProjectConfigurationInSolution projectConfiguration)) 1945if (project.ProjectConfigurations.TryGetValue(solutionConfiguration.FullName, out ProjectConfigurationInSolution projectConfiguration)) 2149if (!project.ProjectConfigurations.ContainsKey(fullSolutionConfigurationName))
Graph\GraphBuilder.cs (1)
322ProjectConfigurationInSolution projectConfiguration = SelectProjectConfiguration(currentSolutionConfiguration, project.ProjectConfigurations);
Microsoft.Build.Engine.OM.UnitTests (36)
Construction\SolutionFile_Tests.cs (36)
601Assert.Equal(6, csharpProject.ProjectConfigurations.Count); 603Assert.Equal("Debug|AnyCPU", csharpProject.ProjectConfigurations["Debug|Any CPU"].FullName); 604Assert.True(csharpProject.ProjectConfigurations["Debug|Any CPU"].IncludeInBuild); 606Assert.Equal("Release|AnyCPU", csharpProject.ProjectConfigurations["Debug|Mixed Platforms"].FullName); 607Assert.True(csharpProject.ProjectConfigurations["Debug|Mixed Platforms"].IncludeInBuild); 609Assert.Equal("Debug|AnyCPU", csharpProject.ProjectConfigurations["Debug|Win32"].FullName); 610Assert.False(csharpProject.ProjectConfigurations["Debug|Win32"].IncludeInBuild); 612Assert.Equal("Release|AnyCPU", csharpProject.ProjectConfigurations["Release|Any CPU"].FullName); 613Assert.True(csharpProject.ProjectConfigurations["Release|Any CPU"].IncludeInBuild); 615Assert.Equal("Release|AnyCPU", csharpProject.ProjectConfigurations["Release|Mixed Platforms"].FullName); 616Assert.True(csharpProject.ProjectConfigurations["Release|Mixed Platforms"].IncludeInBuild); 618Assert.Equal("Release|AnyCPU", csharpProject.ProjectConfigurations["Release|Win32"].FullName); 619Assert.False(csharpProject.ProjectConfigurations["Release|Win32"].IncludeInBuild); 621Assert.Equal(6, vcProject.ProjectConfigurations.Count); 623Assert.Equal("Debug|Win32", vcProject.ProjectConfigurations["Debug|Any CPU"].FullName); 624Assert.False(vcProject.ProjectConfigurations["Debug|Any CPU"].IncludeInBuild); 626Assert.Equal("Debug|Win32", vcProject.ProjectConfigurations["Debug|Mixed Platforms"].FullName); 627Assert.True(vcProject.ProjectConfigurations["Debug|Mixed Platforms"].IncludeInBuild); 629Assert.Equal("Debug|Win32", vcProject.ProjectConfigurations["Debug|Win32"].FullName); 630Assert.True(vcProject.ProjectConfigurations["Debug|Win32"].IncludeInBuild); 632Assert.Equal("Release|Win32", vcProject.ProjectConfigurations["Release|Any CPU"].FullName); 633Assert.False(vcProject.ProjectConfigurations["Release|Any CPU"].IncludeInBuild); 635Assert.Equal("Release|Win32", vcProject.ProjectConfigurations["Release|Mixed Platforms"].FullName); 636Assert.True(vcProject.ProjectConfigurations["Release|Mixed Platforms"].IncludeInBuild); 638Assert.Equal("Release|Win32", vcProject.ProjectConfigurations["Release|Win32"].FullName); 639Assert.True(vcProject.ProjectConfigurations["Release|Win32"].IncludeInBuild); 687Assert.Equal(2, winFormsApp1.ProjectConfigurations.Count); 689Assert.Equal("Debug|x86", winFormsApp1.ProjectConfigurations["Debug|Win32"].FullName); 690Assert.True(winFormsApp1.ProjectConfigurations["Debug|Win32"].IncludeInBuild); 692Assert.Equal("Release|x86", winFormsApp1.ProjectConfigurations["Release|Win32"].FullName); 693Assert.True(winFormsApp1.ProjectConfigurations["Debug|Win32"].IncludeInBuild); 695Assert.Equal(2, classLibrary1.ProjectConfigurations.Count); 697Assert.Equal("Debug|AnyCPU", classLibrary1.ProjectConfigurations["Debug|Any CPU"].FullName); 698Assert.False(classLibrary1.ProjectConfigurations["Debug|Any CPU"].IncludeInBuild); 700Assert.Equal("Release|AnyCPU", classLibrary1.ProjectConfigurations["Release|Any CPU"].FullName); 701Assert.False(classLibrary1.ProjectConfigurations["Release|Any CPU"].IncludeInBuild);
Microsoft.Build.Engine.UnitTests (33)
Construction\SolutionFile_OldParser_Tests.cs (33)
1963csProject.ProjectConfigurations.Count.ShouldBe(6); 1965csProject.ProjectConfigurations["Debug|Any CPU"].FullName.ShouldBe("Debug|AnyCPU"); 1966csProject.ProjectConfigurations["Debug|Any CPU"].IncludeInBuild.ShouldBeTrue(); 1968csProject.ProjectConfigurations["Debug|Mixed Platforms"].FullName.ShouldBe("Release|AnyCPU"); 1969csProject.ProjectConfigurations["Debug|Mixed Platforms"].IncludeInBuild.ShouldBeTrue(); 1971csProject.ProjectConfigurations["Debug|Win32"].FullName.ShouldBe("Debug|AnyCPU"); 1972csProject.ProjectConfigurations["Debug|Win32"].IncludeInBuild.ShouldBeFalse(); 1974csProject.ProjectConfigurations["Release|Any CPU"].FullName.ShouldBe("Release|AnyCPU"); 1975csProject.ProjectConfigurations["Release|Any CPU"].IncludeInBuild.ShouldBeTrue(); 1977csProject.ProjectConfigurations["Release|Mixed Platforms"].FullName.ShouldBe("Release|AnyCPU"); 1978csProject.ProjectConfigurations["Release|Mixed Platforms"].IncludeInBuild.ShouldBeTrue(); 1980csProject.ProjectConfigurations["Release|Win32"].FullName.ShouldBe("Release|AnyCPU"); 1981csProject.ProjectConfigurations["Release|Win32"].IncludeInBuild.ShouldBeFalse(); 1983vcProject.ProjectConfigurations.Count.ShouldBe(6); 1985vcProject.ProjectConfigurations["Debug|Any CPU"].FullName.ShouldBe("Debug|Win32"); 1986vcProject.ProjectConfigurations["Debug|Any CPU"].IncludeInBuild.ShouldBeFalse(); 1988vcProject.ProjectConfigurations["Debug|Mixed Platforms"].FullName.ShouldBe("Debug|Win32"); 1989vcProject.ProjectConfigurations["Debug|Mixed Platforms"].IncludeInBuild.ShouldBeTrue(); 1991vcProject.ProjectConfigurations["Debug|Win32"].FullName.ShouldBe("Debug|Win32"); 1992vcProject.ProjectConfigurations["Debug|Win32"].IncludeInBuild.ShouldBeTrue(); 1994vcProject.ProjectConfigurations["Release|Any CPU"].FullName.ShouldBe("Release|Win32"); 1995vcProject.ProjectConfigurations["Release|Any CPU"].IncludeInBuild.ShouldBeFalse(); 1997vcProject.ProjectConfigurations["Release|Mixed Platforms"].FullName.ShouldBe("Release|Win32"); 1998vcProject.ProjectConfigurations["Release|Mixed Platforms"].IncludeInBuild.ShouldBeTrue(); 2000vcProject.ProjectConfigurations["Release|Win32"].FullName.ShouldBe("Release|Win32"); 2001vcProject.ProjectConfigurations["Release|Win32"].IncludeInBuild.ShouldBeTrue(); 2049webProject.ProjectConfigurations.ShouldHaveSingleItem(); 2051webProject.ProjectConfigurations["Debug|.NET"].FullName.ShouldBe("Debug|.NET"); 2052webProject.ProjectConfigurations["Debug|.NET"].IncludeInBuild.ShouldBeTrue(); 2054exeProject.ProjectConfigurations.ShouldHaveSingleItem(); 2056exeProject.ProjectConfigurations["Debug|.NET"].FullName.ShouldBe("Debug"); 2057exeProject.ProjectConfigurations["Debug|.NET"].IncludeInBuild.ShouldBeFalse(); 2059missingWebProject.ProjectConfigurations.ShouldBeEmpty();