14 instantiations of SolutionFile
Microsoft.Build (1)
Construction\Solution\SolutionFile.cs (1)
283
var solution = new
SolutionFile
{ FullPath = solutionFile };
Microsoft.Build.Engine.UnitTests (13)
Construction\SolutionFile_NewParser_Tests.cs (1)
142
SolutionFile solutionFile = new
SolutionFile
{ FullPath = solutionPath };
Construction\SolutionFile_OldParser_Tests.cs (8)
35
SolutionFile p = new
SolutionFile
();
59
SolutionFile p = new
SolutionFile
();
76
SolutionFile p = new
SolutionFile
();
95
SolutionFile p = new
SolutionFile
();
151
SolutionFile p = new
SolutionFile
();
714
SolutionFile p = new
SolutionFile
();
776
SolutionFile p = new
SolutionFile
();
802
SolutionFile sp = new
SolutionFile
();
Construction\SolutionProjectGenerator_Tests.cs (4)
627
SolutionFile sp = new
SolutionFile
();
648
SolutionFile sp1 = new
SolutionFile
();
712
SolutionFile sp = new
SolutionFile
();
1048
var solution = new
SolutionFile
{ FullPath = solutionFile };
143 references to SolutionFile
Microsoft.Build (27)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
687
(string configuration, string platform) =
SolutionFile
.ParseConfigurationName(projectConfiguration.InnerText, definingProjectPath, 0, solutionConfigurationXml);
Construction\Solution\ProjectInSolution.cs (2)
119
internal ProjectInSolution(
SolutionFile
solution)
248
internal
SolutionFile
ParentSolution { get; set; }
Construction\Solution\SolutionFile.cs (3)
281
public static
SolutionFile
Parse(string solutionFile)
283
var
solution = new SolutionFile { FullPath = solutionFile };
330
/// Maps <see cref="SolutionModel"/> to <see cref="
SolutionFile
" />.
Construction\Solution\SolutionProjectGenerator.cs (10)
121
private readonly
SolutionFile
_solutionFile;
172
SolutionFile
solution,
210
SolutionFile
solution,
236
internal static void AddPropertyGroupForSolutionConfiguration(ProjectRootElement msbuildProject,
SolutionFile
solutionFile, SolutionConfigurationInSolution solutionConfiguration)
257
internal static string GetSolutionConfiguration(
SolutionFile
solutionFile, SolutionConfigurationInSolution solutionConfiguration)
355
internal static string PredictActiveSolutionConfigurationName(
SolutionFile
solutionFile, IDictionary<string, string> globalProperties)
628
private static string DetermineLikelyActiveSolutionConfiguration(
SolutionFile
solutionFile, IDictionary<string, string> globalProperties)
651
internal static bool WouldProjectBuild(
SolutionFile
solutionFile, string selectedSolutionConfiguration, ProjectInSolution project, ProjectConfigurationInSolution projectConfiguration)
699
_solutionFile.Version >=
SolutionFile
.slnFileMinVersion,
740
if (
SolutionFile
.IsBuildableProject(project))
Graph\GraphBuilder.cs (4)
41
public
SolutionFile
Solution { get; private set; }
274
Solution =
SolutionFile
.Parse(solutionEntryPoint.ProjectFile);
316
if (!
SolutionFile
.IsBuildableProject(project))
376
SolutionConfigurationInSolution SelectSolutionConfiguration(
SolutionFile
solutionFile, IDictionary<string, string> globalProperties)
Graph\ProjectGraph.cs (2)
68
internal
SolutionFile
Solution { get; }
653
if (!
SolutionFile
.IsBuildableProject(project))
Instance\ProjectInstance.cs (5)
2607
solutionFileName =
SolutionFile
.ParseSolutionFromSolutionFilter(projectFile, out _);
2610
if (
SolutionFile
.ShouldUseNewParser(solutionFileName))
2620
SolutionFile
.GetSolutionFileAndVisualStudioMajorVersions(solutionFileName, out int solutionVersion, out int visualStudioVersion);
2884
SolutionFile
sp =
SolutionFile
.Parse(projectFile);
Microsoft.Build.Engine.OM.UnitTests (11)
Construction\SolutionFile_Tests.cs (11)
96
SolutionFile
solution = ParseSolutionHelper(solutionFileContents, convertToSlnx);
140
SolutionFile
solution = ParseSolutionHelper(solutionFileContents);
187
SolutionFile
solution = ParseSolutionHelper(solutionFileContents, convertToSlnx);
269
SolutionFile
solution = ParseSolutionHelper(solutionFileContents, convertToSlnx);
354
SolutionFile
solution = ParseSolutionHelper(solutionFileContents, convertToSlnx);
435
SolutionFile
solution = ParseSolutionHelper(solutionFileContents, convertToSlnx);
497
SolutionFile
solution = ParseSolutionHelper(solutionFileContents, convertToSlnx);
572
SolutionFile
solution = ParseSolutionHelper(solutionFileContents, convertToSlnx);
657
SolutionFile
solution = ParseSolutionHelper(solutionFileContents, convertToSlnx);
683
private static
SolutionFile
ParseSolutionHelper(string solutionFileContents, bool convertToSlnx = false)
693
return
SolutionFile
.Parse(solutionPath);
Microsoft.Build.Engine.UnitTests (102)
Construction\SolutionFile_NewParser_Tests.cs (3)
83
SolutionFile
solution = ParseSolutionHelper(solutionFileContents.Replace('`', '"'), convertToSlnx);
132
internal static
SolutionFile
ParseSolutionHelper(string solutionFileContents, bool convertToSlnx = false)
142
SolutionFile
solutionFile = new SolutionFile { FullPath = solutionPath };
Construction\SolutionFile_OldParser_Tests.cs (50)
35
SolutionFile
p = new SolutionFile();
59
SolutionFile
p = new SolutionFile();
76
SolutionFile
p = new SolutionFile();
95
SolutionFile
p = new SolutionFile();
137
SolutionFile
solution = ParseSolutionHelper(solutionFileContents);
151
SolutionFile
p = new SolutionFile();
203
SolutionFile
solution = ParseSolutionHelper(solutionFileContents);
277
SolutionFile
solution = ParseSolutionHelper(solutionFileContents);
331
SolutionFile
solution = ParseSolutionHelper(solutionFileContents);
392
SolutionFile
solution = ParseSolutionHelper(solutionFileContents);
419
SolutionFile
solutionPriorToDev12 = ParseSolutionHelper(solutionFileContentsPriorToDev12);
435
SolutionFile
solutionDev12 = ParseSolutionHelper(solutionFileContentsDev12);
453
SolutionFile
solutionDev12Corrupted1 = ParseSolutionHelper(solutionFileContentsDev12Corrupted1);
468
SolutionFile
solutionDev12Corrupted2 = ParseSolutionHelper(solutionFileContentsDev12Corrupted2);
483
SolutionFile
solutionDev12Corrupted3 = ParseSolutionHelper(solutionFileContentsDev12Corrupted3);
498
SolutionFile
solutionDev12Corrupted4 = ParseSolutionHelper(solutionFileContentsDev12Corrupted4);
513
SolutionFile
solutionDev12Corrupted5 = ParseSolutionHelper(solutionFileContentsDev12Corrupted5);
528
SolutionFile
solutionDev12Corrupted6 = ParseSolutionHelper(solutionFileContentsDev12Corrupted6);
607
SolutionFile
solution = ParseSolutionHelper(solutionFileContents);
665
SolutionFile
solution = ParseSolutionHelper(solutionFileContents);
700
SolutionFile
solution = ParseSolutionHelper(solutionFileContents);
714
SolutionFile
p = new SolutionFile();
757
SolutionFile
solution = ParseSolutionHelper(solutionFileContents);
776
SolutionFile
p = new SolutionFile();
797
internal static
SolutionFile
ParseSolutionHelper(string solutionFileContents)
802
SolutionFile
sp = new SolutionFile();
859
SolutionFile
solution = ParseSolutionHelper(solutionFileContents);
873
SolutionFile
solution = ParseSolutionHelper(solutionFileContents);
887
SolutionFile
solution = ParseSolutionHelper(solutionFileContents);
979
SolutionFile
solution = ParseSolutionHelper(solutionFileContents);
1067
SolutionFile
solution = ParseSolutionHelper(solutionFileContents);
1384
SolutionFile
solution = ParseSolutionHelper(solutionFileContents);
1390
SolutionFile
.IsBuildableProject(solution.ProjectsInOrder[0]).ShouldBeFalse();
1394
SolutionFile
.IsBuildableProject(solution.ProjectsInOrder[1]).ShouldBeTrue();
1398
SolutionFile
.IsBuildableProject(solution.ProjectsInOrder[2]).ShouldBeFalse();
1402
SolutionFile
.IsBuildableProject(solution.ProjectsInOrder[3]).ShouldBeTrue();
1406
SolutionFile
.IsBuildableProject(solution.ProjectsInOrder[4]).ShouldBeFalse();
1412
SolutionFile
.IsBuildableProject(solution.ProjectsInOrder[5]).ShouldBeTrue();
1464
SolutionFile
solution = ParseSolutionHelper(solutionFileContents);
1539
SolutionFile
solution = ParseSolutionHelper(solutionFileContents.Replace('`', '"'));
1622
SolutionFile
solution = ParseSolutionHelper(solutionFileContents);
1691
SolutionFile
solution = ParseSolutionHelper(solutionFileContents);
1751
SolutionFile
solution = ParseSolutionHelper(solutionFileContents);
1890
SolutionFile
solution = ParseSolutionHelper(solutionFileContents);
1957
SolutionFile
solution = ParseSolutionHelper(solutionFileContents);
2042
SolutionFile
solution = ParseSolutionHelper(solutionFileContents);
2097
SolutionFile
solution = ParseSolutionHelper(solutionFileContents);
2166
SolutionFile
solution = ParseSolutionHelper(solutionFileContents);
2243
SolutionFile
solution = ParseSolutionHelper(solutionFileContents);
2425
SolutionFile
solution = ParseSolutionHelper(solutionFileContents);
Construction\SolutionFilter_Tests.cs (5)
139
SolutionFile
solution =
SolutionFile
.Parse(filterFile.Path);
214
InvalidProjectFileException e = Should.Throw<InvalidProjectFileException>(() =>
SolutionFile
.Parse(slnf.Path));
273
SolutionFile
sp =
SolutionFile
.Parse(slnf.Path);
Construction\SolutionProjectGenerator_Tests.cs (38)
78
ProjectInstance[] instances = SolutionProjectGenerator.Generate(
SolutionFile
.Parse(sln.Path), null, null, _buildEventContext, CreateMockLoggingService());
370
SolutionFile
solution = ParseSolutionHelper(solutionFileContents, useNewParser);
407
SolutionFile
solution = ParseSolutionHelper(solutionFileContents, useNewParser);
436
SolutionFile
solution = SolutionFile_OldParser_Tests.ParseSolutionHelper(solutionFileContents);
480
SolutionFile
solution = ParseSolutionHelper(solutionFileContents, useNewParser);
517
SolutionFile
solution = ParseSolutionHelper(solutionFileContents, useNewParser);
627
SolutionFile
sp = new SolutionFile();
648
SolutionFile
sp1 = new SolutionFile();
712
SolutionFile
sp = new SolutionFile();
778
SolutionFile
sp = SolutionFile_OldParser_Tests.ParseSolutionHelper(solutionFileContents);
843
SolutionFile
solution = ParseSolutionHelper(solutionFileContents, useNewParser);
1048
var
solution = new SolutionFile { FullPath = solutionFile };
1096
SolutionFile
solution = ParseSolutionHelper(solutionFileContents, useNewParser);
1166
SolutionFile
solution = ParseSolutionHelper(solutionFileContents, useNewParser);
1211
SolutionFile
solution = ParseSolutionHelper(solutionFileContents, useNewParser);
1272
SolutionFile
solution = ParseSolutionHelper(solutionFileContents, useNewParser);
1340
SolutionFile
solution = ParseSolutionHelper(solutionFileContents, useNewParser);
1477
SolutionFile
solution = ParseSolutionHelper(solutionFileContents, useNewParser);
1525
SolutionFile
solution = ParseSolutionHelper(solutionFileContents, useNewParser);
1599
SolutionFile
solution = SolutionFile_OldParser_Tests.ParseSolutionHelper(solutionFileContents);
1637
SolutionFile
solution = SolutionFile_OldParser_Tests.ParseSolutionHelper(solutionFileContents);
1848
SolutionFile
solution = SolutionFile_OldParser_Tests.ParseSolutionHelper(solutionFileContents);
1895
SolutionFile
solution = ParseSolutionHelper(solutionFileContents, useNewParser);
1945
SolutionFile
solution = null;
2037
SolutionFile
solution = ParseSolutionHelper(solutionFileContents, useNewParser);
2297
SolutionFile
solution = ParseSolutionHelper(solutionFileContents, useNewParser);
2351
SolutionFile
solution = ParseSolutionHelper(solutionFileContents, useNewParser);
2406
SolutionFile
solution = ParseSolutionHelper(solutionFileContents, useNewParser);
2455
SolutionFile
solution = ParseSolutionHelper(solutionFileContents, useNewParser);
2541
var
solutionFile =
SolutionFile
.Parse(solutionFilePath);
2600
var
solutionFile =
SolutionFile
.Parse(solutionFilePath);
2719
var
solutionFile =
SolutionFile
.Parse(solutionFilePath);
2753
SolutionFile
solution = ParseSolutionHelper(solutionFileContents, useNewParser);
2829
SolutionFile
solution = ParseSolutionHelper(solutionFileContents, useNewParser);
2876
private
SolutionFile
ParseSolutionHelper(string solutionFileContents, bool useNewParser)
Graph\ProjectGraph_Tests.cs (6)
818
SolutionFile
solutionFile =
SolutionFile
.Parse(slnFile.Path);
2871
SolutionFile
solutionFile =
SolutionFile
.Parse(slnFile.Path);
2916
SolutionFile
solutionFile =
SolutionFile
.Parse(slnFile.Path);
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
MSBuild\MSBuildProjectLoader.cs (2)
188
var
solutionFile = MSB.Construction.
SolutionFile
.Parse(absoluteSolutionPath);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
BuildHost.cs (1)
150
foreach (var project in
SolutionFile
.Parse(solutionFilePath).ProjectsInOrder)