80 references to ProjectConfigurations
Microsoft.Build (11)
Construction\Solution\SolutionFile.cs (1)
528
return project.ProjectType != SolutionProjectType.SolutionFolder && project.
ProjectConfigurations
.Count > 0;
Construction\Solution\SolutionProjectGenerator.cs (9)
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) &&
1633
(referencedProject.
ProjectConfigurations
.TryGetValue(solutionConfiguration.FullName, out ProjectConfigurationInSolution referencedProjectConfiguration)) &&
1781
if (project.
ProjectConfigurations
.TryGetValue(solutionConfiguration.FullName, out ProjectConfigurationInSolution projectConfiguration))
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)
321
ProjectConfigurationInSolution projectConfiguration = SelectProjectConfiguration(currentSolutionConfiguration, project.
ProjectConfigurations
);
Microsoft.Build.Engine.OM.UnitTests (36)
Construction\SolutionFile_Tests.cs (36)
600
Assert.Equal(6, csharpProject.
ProjectConfigurations
.Count);
602
Assert.Equal("Debug|AnyCPU", csharpProject.
ProjectConfigurations
["Debug|Any CPU"].FullName);
603
Assert.True(csharpProject.
ProjectConfigurations
["Debug|Any CPU"].IncludeInBuild);
605
Assert.Equal("Release|AnyCPU", csharpProject.
ProjectConfigurations
["Debug|Mixed Platforms"].FullName);
606
Assert.True(csharpProject.
ProjectConfigurations
["Debug|Mixed Platforms"].IncludeInBuild);
608
Assert.Equal("Debug|AnyCPU", csharpProject.
ProjectConfigurations
["Debug|Win32"].FullName);
609
Assert.False(csharpProject.
ProjectConfigurations
["Debug|Win32"].IncludeInBuild);
611
Assert.Equal("Release|AnyCPU", csharpProject.
ProjectConfigurations
["Release|Any CPU"].FullName);
612
Assert.True(csharpProject.
ProjectConfigurations
["Release|Any CPU"].IncludeInBuild);
614
Assert.Equal("Release|AnyCPU", csharpProject.
ProjectConfigurations
["Release|Mixed Platforms"].FullName);
615
Assert.True(csharpProject.
ProjectConfigurations
["Release|Mixed Platforms"].IncludeInBuild);
617
Assert.Equal("Release|AnyCPU", csharpProject.
ProjectConfigurations
["Release|Win32"].FullName);
618
Assert.False(csharpProject.
ProjectConfigurations
["Release|Win32"].IncludeInBuild);
620
Assert.Equal(6, vcProject.
ProjectConfigurations
.Count);
622
Assert.Equal("Debug|Win32", vcProject.
ProjectConfigurations
["Debug|Any CPU"].FullName);
623
Assert.False(vcProject.
ProjectConfigurations
["Debug|Any CPU"].IncludeInBuild);
625
Assert.Equal("Debug|Win32", vcProject.
ProjectConfigurations
["Debug|Mixed Platforms"].FullName);
626
Assert.True(vcProject.
ProjectConfigurations
["Debug|Mixed Platforms"].IncludeInBuild);
628
Assert.Equal("Debug|Win32", vcProject.
ProjectConfigurations
["Debug|Win32"].FullName);
629
Assert.True(vcProject.
ProjectConfigurations
["Debug|Win32"].IncludeInBuild);
631
Assert.Equal("Release|Win32", vcProject.
ProjectConfigurations
["Release|Any CPU"].FullName);
632
Assert.False(vcProject.
ProjectConfigurations
["Release|Any CPU"].IncludeInBuild);
634
Assert.Equal("Release|Win32", vcProject.
ProjectConfigurations
["Release|Mixed Platforms"].FullName);
635
Assert.True(vcProject.
ProjectConfigurations
["Release|Mixed Platforms"].IncludeInBuild);
637
Assert.Equal("Release|Win32", vcProject.
ProjectConfigurations
["Release|Win32"].FullName);
638
Assert.True(vcProject.
ProjectConfigurations
["Release|Win32"].IncludeInBuild);
686
Assert.Equal(2, winFormsApp1.
ProjectConfigurations
.Count);
688
Assert.Equal("Debug|x86", winFormsApp1.
ProjectConfigurations
["Debug|Win32"].FullName);
689
Assert.True(winFormsApp1.
ProjectConfigurations
["Debug|Win32"].IncludeInBuild);
691
Assert.Equal("Release|x86", winFormsApp1.
ProjectConfigurations
["Release|Win32"].FullName);
692
Assert.True(winFormsApp1.
ProjectConfigurations
["Debug|Win32"].IncludeInBuild);
694
Assert.Equal(2, classLibrary1.
ProjectConfigurations
.Count);
696
Assert.Equal("Debug|AnyCPU", classLibrary1.
ProjectConfigurations
["Debug|Any CPU"].FullName);
697
Assert.False(classLibrary1.
ProjectConfigurations
["Debug|Any CPU"].IncludeInBuild);
699
Assert.Equal("Release|AnyCPU", classLibrary1.
ProjectConfigurations
["Release|Any CPU"].FullName);
700
Assert.False(classLibrary1.
ProjectConfigurations
["Release|Any CPU"].IncludeInBuild);
Microsoft.Build.Engine.UnitTests (33)
Construction\SolutionFile_OldParser_Tests.cs (33)
1962
csProject.
ProjectConfigurations
.Count.ShouldBe(6);
1964
csProject.
ProjectConfigurations
["Debug|Any CPU"].FullName.ShouldBe("Debug|AnyCPU");
1965
csProject.
ProjectConfigurations
["Debug|Any CPU"].IncludeInBuild.ShouldBeTrue();
1967
csProject.
ProjectConfigurations
["Debug|Mixed Platforms"].FullName.ShouldBe("Release|AnyCPU");
1968
csProject.
ProjectConfigurations
["Debug|Mixed Platforms"].IncludeInBuild.ShouldBeTrue();
1970
csProject.
ProjectConfigurations
["Debug|Win32"].FullName.ShouldBe("Debug|AnyCPU");
1971
csProject.
ProjectConfigurations
["Debug|Win32"].IncludeInBuild.ShouldBeFalse();
1973
csProject.
ProjectConfigurations
["Release|Any CPU"].FullName.ShouldBe("Release|AnyCPU");
1974
csProject.
ProjectConfigurations
["Release|Any CPU"].IncludeInBuild.ShouldBeTrue();
1976
csProject.
ProjectConfigurations
["Release|Mixed Platforms"].FullName.ShouldBe("Release|AnyCPU");
1977
csProject.
ProjectConfigurations
["Release|Mixed Platforms"].IncludeInBuild.ShouldBeTrue();
1979
csProject.
ProjectConfigurations
["Release|Win32"].FullName.ShouldBe("Release|AnyCPU");
1980
csProject.
ProjectConfigurations
["Release|Win32"].IncludeInBuild.ShouldBeFalse();
1982
vcProject.
ProjectConfigurations
.Count.ShouldBe(6);
1984
vcProject.
ProjectConfigurations
["Debug|Any CPU"].FullName.ShouldBe("Debug|Win32");
1985
vcProject.
ProjectConfigurations
["Debug|Any CPU"].IncludeInBuild.ShouldBeFalse();
1987
vcProject.
ProjectConfigurations
["Debug|Mixed Platforms"].FullName.ShouldBe("Debug|Win32");
1988
vcProject.
ProjectConfigurations
["Debug|Mixed Platforms"].IncludeInBuild.ShouldBeTrue();
1990
vcProject.
ProjectConfigurations
["Debug|Win32"].FullName.ShouldBe("Debug|Win32");
1991
vcProject.
ProjectConfigurations
["Debug|Win32"].IncludeInBuild.ShouldBeTrue();
1993
vcProject.
ProjectConfigurations
["Release|Any CPU"].FullName.ShouldBe("Release|Win32");
1994
vcProject.
ProjectConfigurations
["Release|Any CPU"].IncludeInBuild.ShouldBeFalse();
1996
vcProject.
ProjectConfigurations
["Release|Mixed Platforms"].FullName.ShouldBe("Release|Win32");
1997
vcProject.
ProjectConfigurations
["Release|Mixed Platforms"].IncludeInBuild.ShouldBeTrue();
1999
vcProject.
ProjectConfigurations
["Release|Win32"].FullName.ShouldBe("Release|Win32");
2000
vcProject.
ProjectConfigurations
["Release|Win32"].IncludeInBuild.ShouldBeTrue();
2048
webProject.
ProjectConfigurations
.ShouldHaveSingleItem();
2050
webProject.
ProjectConfigurations
["Debug|.NET"].FullName.ShouldBe("Debug|.NET");
2051
webProject.
ProjectConfigurations
["Debug|.NET"].IncludeInBuild.ShouldBeTrue();
2053
exeProject.
ProjectConfigurations
.ShouldHaveSingleItem();
2055
exeProject.
ProjectConfigurations
["Debug|.NET"].FullName.ShouldBe("Debug");
2056
exeProject.
ProjectConfigurations
["Debug|.NET"].IncludeInBuild.ShouldBeFalse();
2058
missingWebProject.
ProjectConfigurations
.ShouldBeEmpty();