43 references to ProjectProperties
dotnet (43)
Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.cs (5)
200if (!globalProperties.ContainsKey(ProjectProperties.TargetFramework)) 213var targetFramework = projectInstance.GetPropertyValue(ProjectProperties.TargetFramework); 214var targetFrameworks = projectInstance.GetPropertyValue(ProjectProperties.TargetFrameworks); 237MSBuildArgs = [.. buildOptions.MSBuildArgs, $"-p:{ProjectProperties.TargetFramework}={selectedFramework}"] 298{ ProjectProperties.TargetFramework, selectedFramework }
Commands\Test\MTP\MSBuildHandler.cs (6)
96logMessageBuilder.AppendLine($"{ProjectProperties.ProjectFullPath}: {module.ProjectFullPath}"); 97logMessageBuilder.AppendLine($"{ProjectProperties.IsTestingPlatformApplication}: {module.IsTestingPlatformApplication}"); 98logMessageBuilder.AppendLine($"{ProjectProperties.TargetFramework}: {module.TargetFramework}"); 99logMessageBuilder.AppendLine($"{ProjectProperties.RunCommand}: {module.RunProperties.Command}"); 100logMessageBuilder.AppendLine($"{ProjectProperties.RunArguments}: {module.RunProperties.Arguments}"); 101logMessageBuilder.AppendLine($"{ProjectProperties.RunWorkingDirectory}: {module.RunProperties.WorkingDirectory}");
Commands\Test\MTP\MSBuildUtility.cs (1)
134perTfmArgs = perTfmArgs.Append($"-p:{ProjectProperties.TargetFramework}={tfm}");
Commands\Test\MTP\SolutionAndProjectUtility.cs (26)
203globalProperties.Add(ProjectProperties.TargetFramework, tfm); 208globalProperties.Add(ProjectProperties.Configuration, configuration); 213globalProperties.Add(ProjectProperties.Platform, platform); 249var targetFramework = projectInstance.GetPropertyValue(ProjectProperties.TargetFramework); 250var targetFrameworks = projectInstance.GetPropertyValue(ProjectProperties.TargetFrameworks); 252Logger.LogTrace($"Loaded project '{Path.GetFileName(projectFilePath)}' with TargetFramework '{targetFramework}', TargetFrameworks '{targetFrameworks}', IsTestProject '{projectInstance.GetPropertyValue(ProjectProperties.IsTestProject)}', and '{ProjectProperties.IsTestingPlatformApplication}' is '{projectInstance.GetPropertyValue(ProjectProperties.IsTestingPlatformApplication)}'."); 263if (!bool.TryParse(projectInstance.GetPropertyValue(ProjectProperties.TestTfmsInParallel), out bool testTfmsInParallel) && 264!bool.TryParse(projectInstance.GetPropertyValue(ProjectProperties.BuildInParallel), out testTfmsInParallel)) 282Logger.LogTrace($"Loaded inner project '{Path.GetFileName(projectFilePath)}' has '{ProjectProperties.IsTestingPlatformApplication}' = '{projectInstance.GetPropertyValue(ProjectProperties.IsTestingPlatformApplication)}' (TFM: '{framework}')."); 296Logger.LogTrace($"Loaded inner project '{Path.GetFileName(projectFilePath)}' has '{ProjectProperties.IsTestingPlatformApplication}' = '{projectInstance.GetPropertyValue(ProjectProperties.IsTestingPlatformApplication)}' (TFM: '{framework}')."); 364var targetFramework = projectInstance.GetPropertyValue(ProjectProperties.TargetFramework); 365var targetFrameworks = projectInstance.GetPropertyValue(ProjectProperties.TargetFrameworks); 369if (bool.TryParse(projectInstance.GetPropertyValue(ProjectProperties.TestTfmsInParallel), out bool parsed) || 370bool.TryParse(projectInstance.GetPropertyValue(ProjectProperties.BuildInParallel), out parsed)) 421msbuildArgsToAppend = msbuildArgsToAppend.Append($"-p:{ProjectProperties.TargetFramework}={tfm}"); 457_ = bool.TryParse(project.GetPropertyValue(ProjectProperties.IsTestProject), out bool isTestProject); 458_ = bool.TryParse(project.GetPropertyValue(ProjectProperties.IsTestingPlatformApplication), out bool isTestingPlatformApplication); 465string targetFramework = project.GetPropertyValue(ProjectProperties.TargetFramework); 466string projectFullPath = project.GetPropertyValue(ProjectProperties.ProjectFullPath); 493project.GetPropertyValue(ProjectProperties.TargetPath), 499var launchSettings = TryGetLaunchProfileSettings(Path.GetDirectoryName(projectFullPath)!, Path.GetFileNameWithoutExtension(projectFullPath), project.GetPropertyValue(ProjectProperties.AppDesignerFolder), buildOptions, profileName: null); 511return new TestModule(runProperties, PathUtility.FixFilePath(projectFullPath), targetFramework, isTestingPlatformApplication, launchSettings, project.GetPropertyValue(ProjectProperties.TargetPath), rootVariableName);
Commands\Test\MTP\TestApplication.cs (5)
557builder.Append($"{ProjectProperties.RunCommand}: {Module.RunProperties.Command}"); 562builder.Append($"{ProjectProperties.RunArguments}: {Module.RunProperties.Arguments}"); 567builder.Append($"{ProjectProperties.RunWorkingDirectory}: {Module.RunProperties.WorkingDirectory}"); 572builder.Append($"{ProjectProperties.ProjectFullPath}: {Module.ProjectFullPath}"); 577builder.Append($"{ProjectProperties.TargetFramework} : {Module.TargetFramework}");