52 references to ProjectProperties
dotnet (52)
Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.cs (5)
756if (!globalProperties.ContainsKey(ProjectProperties.TargetFramework)) 772var targetFramework = projectInstance.GetPropertyValue(ProjectProperties.TargetFramework); 773var targetFrameworks = projectInstance.GetPropertyValue(ProjectProperties.TargetFrameworks); 796MSBuildArgs = [.. buildOptions.MSBuildArgs, $"-p:{ProjectProperties.TargetFramework}={selectedFramework}"] 858{ 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 (2)
154properties[ProjectProperties.TargetFramework] = targetFramework; 191perTfmArgs = perTfmArgs.Append($"-p:{ProjectProperties.TargetFramework}={tfm}");
Commands\Test\MTP\SolutionAndProjectUtility.cs (34)
203globalProperties.Add(ProjectProperties.TargetFramework, tfm); 208globalProperties.Add(ProjectProperties.Configuration, configuration); 213globalProperties.Add(ProjectProperties.Platform, platform); 336var targetFramework = projectInstance.GetPropertyValue(ProjectProperties.TargetFramework); 337var targetFrameworks = projectInstance.GetPropertyValue(ProjectProperties.TargetFrameworks); 339Logger.LogTrace($"Loaded project '{Path.GetFileName(projectFilePath)}' with TargetFramework '{targetFramework}', TargetFrameworks '{targetFrameworks}', IsTestProject '{projectInstance.GetPropertyValue(ProjectProperties.IsTestProject)}', and '{ProjectProperties.IsTestingPlatformApplication}' is '{projectInstance.GetPropertyValue(ProjectProperties.IsTestingPlatformApplication)}'."); 350if (!bool.TryParse(projectInstance.GetPropertyValue(ProjectProperties.TestTfmsInParallel), out bool testTfmsInParallel) && 351!bool.TryParse(projectInstance.GetPropertyValue(ProjectProperties.BuildInParallel), out testTfmsInParallel)) 369Logger.LogTrace($"Loaded inner project '{Path.GetFileName(projectFilePath)}' has '{ProjectProperties.IsTestingPlatformApplication}' = '{projectInstance.GetPropertyValue(ProjectProperties.IsTestingPlatformApplication)}' (TFM: '{framework}')."); 383Logger.LogTrace($"Loaded inner project '{Path.GetFileName(projectFilePath)}' has '{ProjectProperties.IsTestingPlatformApplication}' = '{projectInstance.GetPropertyValue(ProjectProperties.IsTestingPlatformApplication)}' (TFM: '{framework}')."); 409=> bool.TryParse(projectInstance.GetPropertyValue(ProjectProperties.IsTraversal), out bool isTraversal) && isTraversal; 437foreach (ProjectItemInstance projectReference in projectInstance.GetItems(ProjectProperties.ProjectReferenceItemName)) 446var configurationMetadata = projectReference.GetMetadataValue(ProjectProperties.Configuration); 447var platformMetadata = projectReference.GetMetadataValue(ProjectProperties.Platform); 501var targetFramework = projectInstance.GetPropertyValue(ProjectProperties.TargetFramework); 502var targetFrameworks = projectInstance.GetPropertyValue(ProjectProperties.TargetFrameworks); 506if (bool.TryParse(projectInstance.GetPropertyValue(ProjectProperties.TestTfmsInParallel), out bool parsed) || 507bool.TryParse(projectInstance.GetPropertyValue(ProjectProperties.BuildInParallel), out parsed)) 558msbuildArgsToAppend = msbuildArgsToAppend.Append($"-p:{ProjectProperties.TargetFramework}={tfm}"); 595_ = bool.TryParse(project.GetPropertyValue(ProjectProperties.IsTestProject), out bool isTestProject); 596_ = bool.TryParse(project.GetPropertyValue(ProjectProperties.IsTestingPlatformApplication), out bool isTestingPlatformApplication); 603string targetFramework = project.GetPropertyValue(ProjectProperties.TargetFramework); 604string projectFullPath = project.GetPropertyValue(ProjectProperties.ProjectFullPath); 636project.GetPropertyValue(ProjectProperties.TargetPath), 643var launchSettings = TryGetLaunchProfileSettings(Path.GetDirectoryName(projectFullPath)!, Path.GetFileNameWithoutExtension(projectFullPath), project.GetPropertyValue(ProjectProperties.AppDesignerFolder), buildOptions, profileName: null); 655_ = bool.TryParse(project.GetPropertyValue(ProjectProperties.UseArtifactsOutput), out bool useArtifactsOutput); 656string artifactsPath = project.GetPropertyValue(ProjectProperties.ArtifactsPath); 667project.GetPropertyValue(ProjectProperties.TargetPath), 672project.GetPropertyValue(ProjectProperties.ArtifactsProjectName), 673project.GetPropertyValue(ProjectProperties.ArtifactsPivots));
Commands\Test\MTP\TestApplication.cs (5)
1080builder.Append($"{ProjectProperties.RunCommand}: {Module.RunProperties.Command}"); 1085builder.Append($"{ProjectProperties.RunArguments}: {Module.RunProperties.Arguments}"); 1090builder.Append($"{ProjectProperties.RunWorkingDirectory}: {Module.RunProperties.WorkingDirectory}"); 1095builder.Append($"{ProjectProperties.ProjectFullPath}: {Module.ProjectFullPath}"); 1100builder.Append($"{ProjectProperties.TargetFramework} : {Module.TargetFramework}");