80 references to ProjectConfigurations
Microsoft.Build (11)
Construction\Solution\SolutionFile.cs (1)
527
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) &&
842
project.
ProjectConfigurations
.TryGetValue(selectedSolutionConfiguration, out ProjectConfigurationInSolution projectConfiguration);
1391
if (dependencyProject.
ProjectConfigurations
.TryGetValue(_selectedSolutionConfiguration, out ProjectConfigurationInSolution dependencyProjectConfiguration) &&
1690
(referencedProject.
ProjectConfigurations
.TryGetValue(solutionConfiguration.FullName, out ProjectConfigurationInSolution referencedProjectConfiguration)) &&
1838
if (project.
ProjectConfigurations
.TryGetValue(solutionConfiguration.FullName, out ProjectConfigurationInSolution projectConfiguration))
1928
if (project.
ProjectConfigurations
.TryGetValue(solutionConfiguration.FullName, out ProjectConfigurationInSolution projectConfiguration))
2002
if (project.
ProjectConfigurations
.TryGetValue(solutionConfiguration.FullName, out ProjectConfigurationInSolution projectConfiguration))
2206
if (!project.
ProjectConfigurations
.ContainsKey(fullSolutionConfigurationName))
Graph\GraphBuilder.cs (1)
330
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)
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();