1 instantiation of SolutionProjectGenerator
Microsoft.Build (1)
Construction\Solution\SolutionProjectGenerator.cs (1)
219
SolutionProjectGenerator projectGenerator = new
SolutionProjectGenerator
(
56 references to SolutionProjectGenerator
Microsoft.Build (8)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
635
if (globalProperties.TryGetValue(
SolutionProjectGenerator
.CurrentSolutionConfigurationContents, out string? solutionConfigurationXml)
Construction\Solution\SolutionProjectGenerator.cs (1)
219
SolutionProjectGenerator
projectGenerator = new SolutionProjectGenerator(
Evaluation\Evaluator.cs (1)
1725
var solutionPath = _data.GetProperty(
SolutionProjectGenerator
.SolutionPathPropertyName)?.EvaluatedValue;
Graph\GraphBuilder.cs (3)
291
string solutionConfigurationXml =
SolutionProjectGenerator
.GetSolutionConfiguration(Solution, currentSolutionConfiguration);
305
solutionGlobalPropertiesBuilder[
SolutionProjectGenerator
.SolutionPathPropertyName] = EscapingUtilities.Escape(Path.Combine(Solution.SolutionFileDirectory, Path.GetFileName(Solution.FullPath)));
323
if (!
SolutionProjectGenerator
.WouldProjectBuild(Solution, currentSolutionConfiguration.FullName, project, projectConfiguration))
Graph\ProjectInterpretation.cs (1)
102
string solutionConfigurationXml = requesterInstance.GetEngineRequiredPropertyValue(
SolutionProjectGenerator
.CurrentSolutionConfigurationContents);
Instance\ProjectInstance.cs (1)
2899
ProjectInstance[] instances =
SolutionProjectGenerator
.Generate(sp, globalProperties, toolsVersion, projectBuildEventContext, loggingService, targetNames, sdkResolverService, submissionId);
Microsoft.Build.Engine.UnitTests (48)
Construction\SolutionFilter_Tests.cs (1)
141
ProjectInstance[] instances =
SolutionProjectGenerator
.Generate(solution, null, null, _buildEventContext, mockLogger);
Construction\SolutionProjectGenerator_Tests.cs (44)
78
ProjectInstance[] instances =
SolutionProjectGenerator
.Generate(SolutionFile.Parse(sln.Path), null, null, _buildEventContext, CreateMockLoggingService());
307
SolutionProjectGenerator
.AddErrorWarningMessageElement(target, XMakeElements.message, true, "SolutionVenusProjectNoClean");
308
SolutionProjectGenerator
.AddErrorWarningMessageElement(target, XMakeElements.warning, true, "SolutionParseUnknownProjectType", "proj1.csproj");
309
SolutionProjectGenerator
.AddErrorWarningMessageElement(target, XMakeElements.error, true, "SolutionInvalidSolutionConfiguration");
372
ProjectInstance[] instances =
SolutionProjectGenerator
.Generate(solution, null, "3.5", _buildEventContext, CreateMockLoggingService());
409
ProjectInstance[] instances =
SolutionProjectGenerator
.Generate(solution, null, "3.5", _buildEventContext, CreateMockLoggingService());
438
ProjectInstance[] instances =
SolutionProjectGenerator
.Generate(solution, null, null, _buildEventContext, CreateMockLoggingService());
482
ProjectInstance[] instances =
SolutionProjectGenerator
.Generate(solution, null, null, _buildEventContext, CreateMockLoggingService());
519
ProjectInstance[] instances =
SolutionProjectGenerator
.Generate(solution, null, null, _buildEventContext, CreateMockLoggingService());
631
ProjectInstance[] instances =
SolutionProjectGenerator
.Generate(sp, null, null, _buildEventContext, CreateMockLoggingService());
653
ProjectInstance[] instances1 =
SolutionProjectGenerator
.Generate(sp1, null, null, _buildEventContext, CreateMockLoggingService());
717
ProjectInstance[] instances =
SolutionProjectGenerator
.Generate(sp, null, null, _buildEventContext, CreateMockLoggingService());
779
ProjectInstance[] instances =
SolutionProjectGenerator
.Generate(sp, null, null, _buildEventContext, CreateMockLoggingService());
849
SolutionProjectGenerator
.AddPropertyGroupForSolutionConfiguration(projectXml, solution, solutionConfiguration);
1051
var instances =
SolutionProjectGenerator
.Generate(solution, null, null, _buildEventContext, CreateMockLoggingService());
1102
SolutionProjectGenerator
.AddPropertyGroupForSolutionConfiguration(projectXml, solution, solutionConfiguration);
1172
SolutionProjectGenerator
.AddPropertyGroupForSolutionConfiguration(projectXml, solution, solutionConfiguration);
1217
SolutionProjectGenerator
.AddPropertyGroupForSolutionConfiguration(projectXml, solution, solutionConfiguration);
1274
var instance =
SolutionProjectGenerator
.Generate(solution, null, ObjectModelHelpers.MSBuildDefaultToolsVersion, _buildEventContext, CreateMockLoggingService())[0];
1342
ProjectInstance[] instances =
SolutionProjectGenerator
.Generate(solution, null, ObjectModelHelpers.MSBuildDefaultToolsVersion, _buildEventContext, CreateMockLoggingService());
1484
ProjectInstance[] instances =
SolutionProjectGenerator
.Generate(solution, null, "invalid", _buildEventContext, CreateMockLoggingService());
1527
ProjectInstance[] instances =
SolutionProjectGenerator
.Generate(solution, null, null, BuildEventContext.Invalid, CreateMockLoggingService());
1607
ProjectInstance[] instances =
SolutionProjectGenerator
.Generate(solution, null, null, BuildEventContext.Invalid, CreateMockLoggingService());
1639
ProjectInstance[] instances =
SolutionProjectGenerator
.Generate(solution, null, null, BuildEventContext.Invalid, CreateMockLoggingService());
1852
Assert.Equal("Debug|Mixed Platforms",
SolutionProjectGenerator
.PredictActiveSolutionConfigurationName(solution, globalProperties));
1855
Assert.Equal("Release|Mixed Platforms",
SolutionProjectGenerator
.PredictActiveSolutionConfigurationName(solution, globalProperties));
1858
Assert.Equal("Release|Win32",
SolutionProjectGenerator
.PredictActiveSolutionConfigurationName(solution, globalProperties));
1861
Assert.Null(
SolutionProjectGenerator
.PredictActiveSolutionConfigurationName(solution, globalProperties));
1900
ProjectInstance[] instances =
SolutionProjectGenerator
.Generate(solution, null, null, BuildEventContext.Invalid, CreateMockLoggingService());
1957
ProjectInstance[] instances =
SolutionProjectGenerator
.Generate(solution, null, null, BuildEventContext.Invalid, CreateMockLoggingService());
2038
ProjectInstance[] instances =
SolutionProjectGenerator
.Generate(solution, globalProperties, null, BuildEventContext.Invalid, CreateMockLoggingService());
2307
ProjectInstance[] instances =
SolutionProjectGenerator
.Generate(solution, globalProperties, null, BuildEventContext.Invalid, collection.LoggingService);
2353
ProjectInstance[] instances =
SolutionProjectGenerator
.Generate(solution, null, null, BuildEventContext.Invalid, CreateMockLoggingService(), new List<string> { "One" });
2357
instances =
SolutionProjectGenerator
.Generate(solution, null, null, BuildEventContext.Invalid, CreateMockLoggingService(), new List<string> { "Two", "Three", "Four" });
2363
instances =
SolutionProjectGenerator
.Generate(solution, null, null, BuildEventContext.Invalid, CreateMockLoggingService(), new List<string> { "Build" });
2367
instances =
SolutionProjectGenerator
.Generate(solution, null, null, BuildEventContext.Invalid, CreateMockLoggingService(), new List<string> { "Five", "Rebuild" });
2372
instances =
SolutionProjectGenerator
.Generate(solution, null, null, BuildEventContext.Invalid, CreateMockLoggingService(), new List<string> { "My_Project:Six" });
2408
ProjectInstance[] instances =
SolutionProjectGenerator
.Generate(solution, null, null, BuildEventContext.Invalid, CreateMockLoggingService(), null);
2488
instances =
SolutionProjectGenerator
.Generate(solution, globalProperties, null, BuildEventContext.Invalid, CreateMockLoggingService(), targetNames);
2495
instances =
SolutionProjectGenerator
.Generate(solution, globalProperties, null, BuildEventContext.Invalid, CreateMockLoggingService(), new[] { "Foo" });
2543
ProjectInstance projectInstance =
SolutionProjectGenerator
.Generate(solutionFile, null, null, BuildEventContext.Invalid, CreateMockLoggingService(), new[] { "MyTarget" }).FirstOrDefault();
2604
ProjectInstance projectInstance =
SolutionProjectGenerator
.Generate(solutionFile, null, null, BuildEventContext.Invalid, CreateMockLoggingService(), targetsToBuild).FirstOrDefault();
2721
ProjectInstance projectInstance =
SolutionProjectGenerator
.Generate(solutionFile, globalProperties, null, BuildEventContext.Invalid, CreateMockLoggingService(), new[] { "Build" }).FirstOrDefault();
2831
ProjectInstance[] instances =
SolutionProjectGenerator
.Generate(solution, globalProperties, toolsVersion, BuildEventContext.Invalid, CreateMockLoggingService());
Graph\GraphLoadedFromSolution_tests.cs (1)
537
SolutionProjectGenerator
.SolutionPathPropertyName
ProjectCache\ProjectCacheTests.cs (2)
589
{
SolutionProjectGenerator
.CurrentSolutionConfigurationContents, solutionConfigurationGlobalProperty },
1487
{
SolutionProjectGenerator
.CurrentSolutionConfigurationContents, solutionConfigurationGlobalProperty }