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