78 references to ProjectConfigurations
Microsoft.Build (9)
Construction\Solution\SolutionFile.cs (1)
528return project.ProjectType != SolutionProjectType.SolutionFolder && project.ProjectConfigurations.Count > 0;
Construction\Solution\SolutionProjectGenerator.cs (7)
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) && 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)
321ProjectConfigurationInSolution projectConfiguration = SelectProjectConfiguration(currentSolutionConfiguration, project.ProjectConfigurations);
Microsoft.Build.Engine.OM.UnitTests (36)
Construction\SolutionFile_Tests.cs (36)
600Assert.Equal(6, csharpProject.ProjectConfigurations.Count); 602Assert.Equal("Debug|AnyCPU", csharpProject.ProjectConfigurations["Debug|Any CPU"].FullName); 603Assert.True(csharpProject.ProjectConfigurations["Debug|Any CPU"].IncludeInBuild); 605Assert.Equal("Release|AnyCPU", csharpProject.ProjectConfigurations["Debug|Mixed Platforms"].FullName); 606Assert.True(csharpProject.ProjectConfigurations["Debug|Mixed Platforms"].IncludeInBuild); 608Assert.Equal("Debug|AnyCPU", csharpProject.ProjectConfigurations["Debug|Win32"].FullName); 609Assert.False(csharpProject.ProjectConfigurations["Debug|Win32"].IncludeInBuild); 611Assert.Equal("Release|AnyCPU", csharpProject.ProjectConfigurations["Release|Any CPU"].FullName); 612Assert.True(csharpProject.ProjectConfigurations["Release|Any CPU"].IncludeInBuild); 614Assert.Equal("Release|AnyCPU", csharpProject.ProjectConfigurations["Release|Mixed Platforms"].FullName); 615Assert.True(csharpProject.ProjectConfigurations["Release|Mixed Platforms"].IncludeInBuild); 617Assert.Equal("Release|AnyCPU", csharpProject.ProjectConfigurations["Release|Win32"].FullName); 618Assert.False(csharpProject.ProjectConfigurations["Release|Win32"].IncludeInBuild); 620Assert.Equal(6, vcProject.ProjectConfigurations.Count); 622Assert.Equal("Debug|Win32", vcProject.ProjectConfigurations["Debug|Any CPU"].FullName); 623Assert.False(vcProject.ProjectConfigurations["Debug|Any CPU"].IncludeInBuild); 625Assert.Equal("Debug|Win32", vcProject.ProjectConfigurations["Debug|Mixed Platforms"].FullName); 626Assert.True(vcProject.ProjectConfigurations["Debug|Mixed Platforms"].IncludeInBuild); 628Assert.Equal("Debug|Win32", vcProject.ProjectConfigurations["Debug|Win32"].FullName); 629Assert.True(vcProject.ProjectConfigurations["Debug|Win32"].IncludeInBuild); 631Assert.Equal("Release|Win32", vcProject.ProjectConfigurations["Release|Any CPU"].FullName); 632Assert.False(vcProject.ProjectConfigurations["Release|Any CPU"].IncludeInBuild); 634Assert.Equal("Release|Win32", vcProject.ProjectConfigurations["Release|Mixed Platforms"].FullName); 635Assert.True(vcProject.ProjectConfigurations["Release|Mixed Platforms"].IncludeInBuild); 637Assert.Equal("Release|Win32", vcProject.ProjectConfigurations["Release|Win32"].FullName); 638Assert.True(vcProject.ProjectConfigurations["Release|Win32"].IncludeInBuild); 686Assert.Equal(2, winFormsApp1.ProjectConfigurations.Count); 688Assert.Equal("Debug|x86", winFormsApp1.ProjectConfigurations["Debug|Win32"].FullName); 689Assert.True(winFormsApp1.ProjectConfigurations["Debug|Win32"].IncludeInBuild); 691Assert.Equal("Release|x86", winFormsApp1.ProjectConfigurations["Release|Win32"].FullName); 692Assert.True(winFormsApp1.ProjectConfigurations["Debug|Win32"].IncludeInBuild); 694Assert.Equal(2, classLibrary1.ProjectConfigurations.Count); 696Assert.Equal("Debug|AnyCPU", classLibrary1.ProjectConfigurations["Debug|Any CPU"].FullName); 697Assert.False(classLibrary1.ProjectConfigurations["Debug|Any CPU"].IncludeInBuild); 699Assert.Equal("Release|AnyCPU", classLibrary1.ProjectConfigurations["Release|Any CPU"].FullName); 700Assert.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();