47 references to ProjectProperties
dotnet (47)
Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.cs (5)
753if (!globalProperties.ContainsKey(ProjectProperties.TargetFramework)) 768var targetFramework = projectInstance.GetPropertyValue(ProjectProperties.TargetFramework); 769var targetFrameworks = projectInstance.GetPropertyValue(ProjectProperties.TargetFrameworks); 792MSBuildArgs = [.. buildOptions.MSBuildArgs, $"-p:{ProjectProperties.TargetFramework}={selectedFramework}"] 854{ ProjectProperties.TargetFramework, selectedFramework }
Commands\Test\MTP\MSBuildHandler.cs (6)
103logMessageBuilder.AppendLine($"{ProjectProperties.ProjectFullPath}: {module.ProjectFullPath}"); 104logMessageBuilder.AppendLine($"{ProjectProperties.IsTestingPlatformApplication}: {module.IsTestingPlatformApplication}"); 105logMessageBuilder.AppendLine($"{ProjectProperties.TargetFramework}: {module.TargetFramework}"); 106logMessageBuilder.AppendLine($"{ProjectProperties.RunCommand}: {module.RunProperties.Command}"); 107logMessageBuilder.AppendLine($"{ProjectProperties.RunArguments}: {module.RunProperties.Arguments}"); 108logMessageBuilder.AppendLine($"{ProjectProperties.RunWorkingDirectory}: {module.RunProperties.WorkingDirectory}");
Commands\Test\MTP\MSBuildUtility.cs (1)
140perTfmArgs = perTfmArgs.Append($"-p:{ProjectProperties.TargetFramework}={tfm}");
Commands\Test\MTP\SolutionAndProjectUtility.cs (30)
203globalProperties.Add(ProjectProperties.TargetFramework, tfm); 208globalProperties.Add(ProjectProperties.Configuration, configuration); 213globalProperties.Add(ProjectProperties.Platform, platform); 295var targetFramework = projectInstance.GetPropertyValue(ProjectProperties.TargetFramework); 296var targetFrameworks = projectInstance.GetPropertyValue(ProjectProperties.TargetFrameworks); 298Logger.LogTrace($"Loaded project '{Path.GetFileName(projectFilePath)}' with TargetFramework '{targetFramework}', TargetFrameworks '{targetFrameworks}', IsTestProject '{projectInstance.GetPropertyValue(ProjectProperties.IsTestProject)}', and '{ProjectProperties.IsTestingPlatformApplication}' is '{projectInstance.GetPropertyValue(ProjectProperties.IsTestingPlatformApplication)}'."); 309if (!bool.TryParse(projectInstance.GetPropertyValue(ProjectProperties.TestTfmsInParallel), out bool testTfmsInParallel) && 310!bool.TryParse(projectInstance.GetPropertyValue(ProjectProperties.BuildInParallel), out testTfmsInParallel)) 328Logger.LogTrace($"Loaded inner project '{Path.GetFileName(projectFilePath)}' has '{ProjectProperties.IsTestingPlatformApplication}' = '{projectInstance.GetPropertyValue(ProjectProperties.IsTestingPlatformApplication)}' (TFM: '{framework}')."); 342Logger.LogTrace($"Loaded inner project '{Path.GetFileName(projectFilePath)}' has '{ProjectProperties.IsTestingPlatformApplication}' = '{projectInstance.GetPropertyValue(ProjectProperties.IsTestingPlatformApplication)}' (TFM: '{framework}')."); 368=> bool.TryParse(projectInstance.GetPropertyValue(ProjectProperties.IsTraversal), out bool isTraversal) && isTraversal; 396foreach (ProjectItemInstance projectReference in projectInstance.GetItems(ProjectProperties.ProjectReferenceItemName)) 405var configurationMetadata = projectReference.GetMetadataValue(ProjectProperties.Configuration); 406var platformMetadata = projectReference.GetMetadataValue(ProjectProperties.Platform); 460var targetFramework = projectInstance.GetPropertyValue(ProjectProperties.TargetFramework); 461var targetFrameworks = projectInstance.GetPropertyValue(ProjectProperties.TargetFrameworks); 465if (bool.TryParse(projectInstance.GetPropertyValue(ProjectProperties.TestTfmsInParallel), out bool parsed) || 466bool.TryParse(projectInstance.GetPropertyValue(ProjectProperties.BuildInParallel), out parsed)) 517msbuildArgsToAppend = msbuildArgsToAppend.Append($"-p:{ProjectProperties.TargetFramework}={tfm}"); 554_ = bool.TryParse(project.GetPropertyValue(ProjectProperties.IsTestProject), out bool isTestProject); 555_ = bool.TryParse(project.GetPropertyValue(ProjectProperties.IsTestingPlatformApplication), out bool isTestingPlatformApplication); 562string targetFramework = project.GetPropertyValue(ProjectProperties.TargetFramework); 563string projectFullPath = project.GetPropertyValue(ProjectProperties.ProjectFullPath); 595project.GetPropertyValue(ProjectProperties.TargetPath), 602var launchSettings = TryGetLaunchProfileSettings(Path.GetDirectoryName(projectFullPath)!, Path.GetFileNameWithoutExtension(projectFullPath), project.GetPropertyValue(ProjectProperties.AppDesignerFolder), buildOptions, profileName: null); 614return new TestModule(runProperties, PathUtility.FixFilePath(projectFullPath), targetFramework, isTestingPlatformApplication, launchSettings, project.GetPropertyValue(ProjectProperties.TargetPath), rootVariableName, runtimeEnvironmentVariables);
Commands\Test\MTP\TestApplication.cs (5)
943builder.Append($"{ProjectProperties.RunCommand}: {Module.RunProperties.Command}"); 948builder.Append($"{ProjectProperties.RunArguments}: {Module.RunProperties.Arguments}"); 953builder.Append($"{ProjectProperties.RunWorkingDirectory}: {Module.RunProperties.WorkingDirectory}"); 958builder.Append($"{ProjectProperties.ProjectFullPath}: {Module.ProjectFullPath}"); 963builder.Append($"{ProjectProperties.TargetFramework} : {Module.TargetFramework}");