78 references to ProjectConfigurations
Microsoft.Build (9)
Construction\Solution\SolutionFile.cs (1)
512
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);
1321
if (dependencyProject.
ProjectConfigurations
.TryGetValue(_selectedSolutionConfiguration, out ProjectConfigurationInSolution dependencyProjectConfiguration) &&
1858
if (project.
ProjectConfigurations
.TryGetValue(solutionConfiguration.FullName, out ProjectConfigurationInSolution projectConfiguration))
1932
if (project.
ProjectConfigurations
.TryGetValue(solutionConfiguration.FullName, out ProjectConfigurationInSolution projectConfiguration))
2136
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)
577
Assert.Equal(6, csharpProject.
ProjectConfigurations
.Count);
579
Assert.Equal("Debug|AnyCPU", csharpProject.
ProjectConfigurations
["Debug|Any CPU"].FullName);
580
Assert.True(csharpProject.
ProjectConfigurations
["Debug|Any CPU"].IncludeInBuild);
582
Assert.Equal("Release|AnyCPU", csharpProject.
ProjectConfigurations
["Debug|Mixed Platforms"].FullName);
583
Assert.True(csharpProject.
ProjectConfigurations
["Debug|Mixed Platforms"].IncludeInBuild);
585
Assert.Equal("Debug|AnyCPU", csharpProject.
ProjectConfigurations
["Debug|Win32"].FullName);
586
Assert.False(csharpProject.
ProjectConfigurations
["Debug|Win32"].IncludeInBuild);
588
Assert.Equal("Release|AnyCPU", csharpProject.
ProjectConfigurations
["Release|Any CPU"].FullName);
589
Assert.True(csharpProject.
ProjectConfigurations
["Release|Any CPU"].IncludeInBuild);
591
Assert.Equal("Release|AnyCPU", csharpProject.
ProjectConfigurations
["Release|Mixed Platforms"].FullName);
592
Assert.True(csharpProject.
ProjectConfigurations
["Release|Mixed Platforms"].IncludeInBuild);
594
Assert.Equal("Release|AnyCPU", csharpProject.
ProjectConfigurations
["Release|Win32"].FullName);
595
Assert.False(csharpProject.
ProjectConfigurations
["Release|Win32"].IncludeInBuild);
597
Assert.Equal(6, vcProject.
ProjectConfigurations
.Count);
599
Assert.Equal("Debug|Win32", vcProject.
ProjectConfigurations
["Debug|Any CPU"].FullName);
600
Assert.False(vcProject.
ProjectConfigurations
["Debug|Any CPU"].IncludeInBuild);
602
Assert.Equal("Debug|Win32", vcProject.
ProjectConfigurations
["Debug|Mixed Platforms"].FullName);
603
Assert.True(vcProject.
ProjectConfigurations
["Debug|Mixed Platforms"].IncludeInBuild);
605
Assert.Equal("Debug|Win32", vcProject.
ProjectConfigurations
["Debug|Win32"].FullName);
606
Assert.True(vcProject.
ProjectConfigurations
["Debug|Win32"].IncludeInBuild);
608
Assert.Equal("Release|Win32", vcProject.
ProjectConfigurations
["Release|Any CPU"].FullName);
609
Assert.False(vcProject.
ProjectConfigurations
["Release|Any CPU"].IncludeInBuild);
611
Assert.Equal("Release|Win32", vcProject.
ProjectConfigurations
["Release|Mixed Platforms"].FullName);
612
Assert.True(vcProject.
ProjectConfigurations
["Release|Mixed Platforms"].IncludeInBuild);
614
Assert.Equal("Release|Win32", vcProject.
ProjectConfigurations
["Release|Win32"].FullName);
615
Assert.True(vcProject.
ProjectConfigurations
["Release|Win32"].IncludeInBuild);
662
Assert.Equal(2, winFormsApp1.
ProjectConfigurations
.Count);
664
Assert.Equal("Debug|x86", winFormsApp1.
ProjectConfigurations
["Debug|Win32"].FullName);
665
Assert.True(winFormsApp1.
ProjectConfigurations
["Debug|Win32"].IncludeInBuild);
667
Assert.Equal("Release|x86", winFormsApp1.
ProjectConfigurations
["Release|Win32"].FullName);
668
Assert.True(winFormsApp1.
ProjectConfigurations
["Debug|Win32"].IncludeInBuild);
670
Assert.Equal(2, classLibrary1.
ProjectConfigurations
.Count);
672
Assert.Equal("Debug|AnyCPU", classLibrary1.
ProjectConfigurations
["Debug|Any CPU"].FullName);
673
Assert.False(classLibrary1.
ProjectConfigurations
["Debug|Any CPU"].IncludeInBuild);
675
Assert.Equal("Release|AnyCPU", classLibrary1.
ProjectConfigurations
["Release|Any CPU"].FullName);
676
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();