80 references to ProjectConfigurations
Microsoft.Build (11)
Construction\Solution\SolutionFile.cs (1)
512return 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); 1321if (dependencyProject.ProjectConfigurations.TryGetValue(_selectedSolutionConfiguration, out ProjectConfigurationInSolution dependencyProjectConfiguration) && 1620(referencedProject.ProjectConfigurations.TryGetValue(solutionConfiguration.FullName, out ProjectConfigurationInSolution referencedProjectConfiguration)) && 1768if (project.ProjectConfigurations.TryGetValue(solutionConfiguration.FullName, out ProjectConfigurationInSolution projectConfiguration)) 1858if (project.ProjectConfigurations.TryGetValue(solutionConfiguration.FullName, out ProjectConfigurationInSolution projectConfiguration)) 1932if (project.ProjectConfigurations.TryGetValue(solutionConfiguration.FullName, out ProjectConfigurationInSolution projectConfiguration)) 2136if (!project.ProjectConfigurations.ContainsKey(fullSolutionConfigurationName))
Graph\GraphBuilder.cs (1)
321ProjectConfigurationInSolution projectConfiguration = SelectProjectConfiguration(currentSolutionConfiguration, project.ProjectConfigurations);
Microsoft.Build.Engine.OM.UnitTests (36)
Construction\SolutionFile_Tests.cs (36)
577Assert.Equal(6, csharpProject.ProjectConfigurations.Count); 579Assert.Equal("Debug|AnyCPU", csharpProject.ProjectConfigurations["Debug|Any CPU"].FullName); 580Assert.True(csharpProject.ProjectConfigurations["Debug|Any CPU"].IncludeInBuild); 582Assert.Equal("Release|AnyCPU", csharpProject.ProjectConfigurations["Debug|Mixed Platforms"].FullName); 583Assert.True(csharpProject.ProjectConfigurations["Debug|Mixed Platforms"].IncludeInBuild); 585Assert.Equal("Debug|AnyCPU", csharpProject.ProjectConfigurations["Debug|Win32"].FullName); 586Assert.False(csharpProject.ProjectConfigurations["Debug|Win32"].IncludeInBuild); 588Assert.Equal("Release|AnyCPU", csharpProject.ProjectConfigurations["Release|Any CPU"].FullName); 589Assert.True(csharpProject.ProjectConfigurations["Release|Any CPU"].IncludeInBuild); 591Assert.Equal("Release|AnyCPU", csharpProject.ProjectConfigurations["Release|Mixed Platforms"].FullName); 592Assert.True(csharpProject.ProjectConfigurations["Release|Mixed Platforms"].IncludeInBuild); 594Assert.Equal("Release|AnyCPU", csharpProject.ProjectConfigurations["Release|Win32"].FullName); 595Assert.False(csharpProject.ProjectConfigurations["Release|Win32"].IncludeInBuild); 597Assert.Equal(6, vcProject.ProjectConfigurations.Count); 599Assert.Equal("Debug|Win32", vcProject.ProjectConfigurations["Debug|Any CPU"].FullName); 600Assert.False(vcProject.ProjectConfigurations["Debug|Any CPU"].IncludeInBuild); 602Assert.Equal("Debug|Win32", vcProject.ProjectConfigurations["Debug|Mixed Platforms"].FullName); 603Assert.True(vcProject.ProjectConfigurations["Debug|Mixed Platforms"].IncludeInBuild); 605Assert.Equal("Debug|Win32", vcProject.ProjectConfigurations["Debug|Win32"].FullName); 606Assert.True(vcProject.ProjectConfigurations["Debug|Win32"].IncludeInBuild); 608Assert.Equal("Release|Win32", vcProject.ProjectConfigurations["Release|Any CPU"].FullName); 609Assert.False(vcProject.ProjectConfigurations["Release|Any CPU"].IncludeInBuild); 611Assert.Equal("Release|Win32", vcProject.ProjectConfigurations["Release|Mixed Platforms"].FullName); 612Assert.True(vcProject.ProjectConfigurations["Release|Mixed Platforms"].IncludeInBuild); 614Assert.Equal("Release|Win32", vcProject.ProjectConfigurations["Release|Win32"].FullName); 615Assert.True(vcProject.ProjectConfigurations["Release|Win32"].IncludeInBuild); 662Assert.Equal(2, winFormsApp1.ProjectConfigurations.Count); 664Assert.Equal("Debug|x86", winFormsApp1.ProjectConfigurations["Debug|Win32"].FullName); 665Assert.True(winFormsApp1.ProjectConfigurations["Debug|Win32"].IncludeInBuild); 667Assert.Equal("Release|x86", winFormsApp1.ProjectConfigurations["Release|Win32"].FullName); 668Assert.True(winFormsApp1.ProjectConfigurations["Debug|Win32"].IncludeInBuild); 670Assert.Equal(2, classLibrary1.ProjectConfigurations.Count); 672Assert.Equal("Debug|AnyCPU", classLibrary1.ProjectConfigurations["Debug|Any CPU"].FullName); 673Assert.False(classLibrary1.ProjectConfigurations["Debug|Any CPU"].IncludeInBuild); 675Assert.Equal("Release|AnyCPU", classLibrary1.ProjectConfigurations["Release|Any CPU"].FullName); 676Assert.False(classLibrary1.ProjectConfigurations["Release|Any CPU"].IncludeInBuild);
Microsoft.Build.Engine.UnitTests (33)
Construction\SolutionFile_OldParser_Tests.cs (33)
1962csProject.ProjectConfigurations.Count.ShouldBe(6); 1964csProject.ProjectConfigurations["Debug|Any CPU"].FullName.ShouldBe("Debug|AnyCPU"); 1965csProject.ProjectConfigurations["Debug|Any CPU"].IncludeInBuild.ShouldBeTrue(); 1967csProject.ProjectConfigurations["Debug|Mixed Platforms"].FullName.ShouldBe("Release|AnyCPU"); 1968csProject.ProjectConfigurations["Debug|Mixed Platforms"].IncludeInBuild.ShouldBeTrue(); 1970csProject.ProjectConfigurations["Debug|Win32"].FullName.ShouldBe("Debug|AnyCPU"); 1971csProject.ProjectConfigurations["Debug|Win32"].IncludeInBuild.ShouldBeFalse(); 1973csProject.ProjectConfigurations["Release|Any CPU"].FullName.ShouldBe("Release|AnyCPU"); 1974csProject.ProjectConfigurations["Release|Any CPU"].IncludeInBuild.ShouldBeTrue(); 1976csProject.ProjectConfigurations["Release|Mixed Platforms"].FullName.ShouldBe("Release|AnyCPU"); 1977csProject.ProjectConfigurations["Release|Mixed Platforms"].IncludeInBuild.ShouldBeTrue(); 1979csProject.ProjectConfigurations["Release|Win32"].FullName.ShouldBe("Release|AnyCPU"); 1980csProject.ProjectConfigurations["Release|Win32"].IncludeInBuild.ShouldBeFalse(); 1982vcProject.ProjectConfigurations.Count.ShouldBe(6); 1984vcProject.ProjectConfigurations["Debug|Any CPU"].FullName.ShouldBe("Debug|Win32"); 1985vcProject.ProjectConfigurations["Debug|Any CPU"].IncludeInBuild.ShouldBeFalse(); 1987vcProject.ProjectConfigurations["Debug|Mixed Platforms"].FullName.ShouldBe("Debug|Win32"); 1988vcProject.ProjectConfigurations["Debug|Mixed Platforms"].IncludeInBuild.ShouldBeTrue(); 1990vcProject.ProjectConfigurations["Debug|Win32"].FullName.ShouldBe("Debug|Win32"); 1991vcProject.ProjectConfigurations["Debug|Win32"].IncludeInBuild.ShouldBeTrue(); 1993vcProject.ProjectConfigurations["Release|Any CPU"].FullName.ShouldBe("Release|Win32"); 1994vcProject.ProjectConfigurations["Release|Any CPU"].IncludeInBuild.ShouldBeFalse(); 1996vcProject.ProjectConfigurations["Release|Mixed Platforms"].FullName.ShouldBe("Release|Win32"); 1997vcProject.ProjectConfigurations["Release|Mixed Platforms"].IncludeInBuild.ShouldBeTrue(); 1999vcProject.ProjectConfigurations["Release|Win32"].FullName.ShouldBe("Release|Win32"); 2000vcProject.ProjectConfigurations["Release|Win32"].IncludeInBuild.ShouldBeTrue(); 2048webProject.ProjectConfigurations.ShouldHaveSingleItem(); 2050webProject.ProjectConfigurations["Debug|.NET"].FullName.ShouldBe("Debug|.NET"); 2051webProject.ProjectConfigurations["Debug|.NET"].IncludeInBuild.ShouldBeTrue(); 2053exeProject.ProjectConfigurations.ShouldHaveSingleItem(); 2055exeProject.ProjectConfigurations["Debug|.NET"].FullName.ShouldBe("Debug"); 2056exeProject.ProjectConfigurations["Debug|.NET"].IncludeInBuild.ShouldBeFalse(); 2058missingWebProject.ProjectConfigurations.ShouldBeEmpty();