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