42 references to ProjectProperties
dotnet (42)
Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.cs (4)
151if (!globalProperties.ContainsKey(ProjectProperties.TargetFramework)) 174var targetFramework = projectInstance.GetPropertyValue(ProjectProperties.TargetFramework); 175var targetFrameworks = projectInstance.GetPropertyValue(ProjectProperties.TargetFrameworks); 198MSBuildArgs = [.. buildOptions.MSBuildArgs, $"-p:{ProjectProperties.TargetFramework}={selectedFramework}"]
Commands\Test\MTP\MSBuildHandler.cs (6)
92logMessageBuilder.AppendLine($"{ProjectProperties.ProjectFullPath}: {module.ProjectFullPath}"); 93logMessageBuilder.AppendLine($"{ProjectProperties.IsTestingPlatformApplication}: {module.IsTestingPlatformApplication}"); 94logMessageBuilder.AppendLine($"{ProjectProperties.TargetFramework}: {module.TargetFramework}"); 95logMessageBuilder.AppendLine($"{ProjectProperties.RunCommand}: {module.RunProperties.Command}"); 96logMessageBuilder.AppendLine($"{ProjectProperties.RunArguments}: {module.RunProperties.Arguments}"); 97logMessageBuilder.AppendLine($"{ProjectProperties.RunWorkingDirectory}: {module.RunProperties.WorkingDirectory}");
Commands\Test\MTP\MSBuildUtility.cs (1)
127perTfmArgs = perTfmArgs.Append($"-p:{ProjectProperties.TargetFramework}={tfm}");
Commands\Test\MTP\SolutionAndProjectUtility.cs (26)
202globalProperties.Add(ProjectProperties.TargetFramework, tfm); 207globalProperties.Add(ProjectProperties.Configuration, configuration); 212globalProperties.Add(ProjectProperties.Platform, platform); 246var targetFramework = projectInstance.GetPropertyValue(ProjectProperties.TargetFramework); 247var targetFrameworks = projectInstance.GetPropertyValue(ProjectProperties.TargetFrameworks); 249Logger.LogTrace($"Loaded project '{Path.GetFileName(projectFilePath)}' with TargetFramework '{targetFramework}', TargetFrameworks '{targetFrameworks}', IsTestProject '{projectInstance.GetPropertyValue(ProjectProperties.IsTestProject)}', and '{ProjectProperties.IsTestingPlatformApplication}' is '{projectInstance.GetPropertyValue(ProjectProperties.IsTestingPlatformApplication)}'."); 260if (!bool.TryParse(projectInstance.GetPropertyValue(ProjectProperties.TestTfmsInParallel), out bool testTfmsInParallel) && 261!bool.TryParse(projectInstance.GetPropertyValue(ProjectProperties.BuildInParallel), out testTfmsInParallel)) 279Logger.LogTrace($"Loaded inner project '{Path.GetFileName(projectFilePath)}' has '{ProjectProperties.IsTestingPlatformApplication}' = '{projectInstance.GetPropertyValue(ProjectProperties.IsTestingPlatformApplication)}' (TFM: '{framework}')."); 293Logger.LogTrace($"Loaded inner project '{Path.GetFileName(projectFilePath)}' has '{ProjectProperties.IsTestingPlatformApplication}' = '{projectInstance.GetPropertyValue(ProjectProperties.IsTestingPlatformApplication)}' (TFM: '{framework}')."); 358var targetFramework = projectInstance.GetPropertyValue(ProjectProperties.TargetFramework); 359var targetFrameworks = projectInstance.GetPropertyValue(ProjectProperties.TargetFrameworks); 363if (bool.TryParse(projectInstance.GetPropertyValue(ProjectProperties.TestTfmsInParallel), out bool parsed) || 364bool.TryParse(projectInstance.GetPropertyValue(ProjectProperties.BuildInParallel), out parsed)) 414msbuildArgsToAppend = msbuildArgsToAppend.Append($"-p:{ProjectProperties.TargetFramework}={tfm}"); 444_ = bool.TryParse(project.GetPropertyValue(ProjectProperties.IsTestProject), out bool isTestProject); 445_ = bool.TryParse(project.GetPropertyValue(ProjectProperties.IsTestingPlatformApplication), out bool isTestingPlatformApplication); 452string targetFramework = project.GetPropertyValue(ProjectProperties.TargetFramework); 453string projectFullPath = project.GetPropertyValue(ProjectProperties.ProjectFullPath); 480project.GetPropertyValue(ProjectProperties.TargetPath), 486var launchSettings = TryGetLaunchProfileSettings(Path.GetDirectoryName(projectFullPath)!, Path.GetFileNameWithoutExtension(projectFullPath), project.GetPropertyValue(ProjectProperties.AppDesignerFolder), buildOptions, profileName: null); 498return new TestModule(runProperties, PathUtility.FixFilePath(projectFullPath), targetFramework, isTestingPlatformApplication, launchSettings, project.GetPropertyValue(ProjectProperties.TargetPath), rootVariableName);
Commands\Test\MTP\TestApplication.cs (5)
394builder.Append($"{ProjectProperties.RunCommand}: {Module.RunProperties.Command}"); 399builder.Append($"{ProjectProperties.RunArguments}: {Module.RunProperties.Arguments}"); 404builder.Append($"{ProjectProperties.RunWorkingDirectory}: {Module.RunProperties.WorkingDirectory}"); 409builder.Append($"{ProjectProperties.ProjectFullPath}: {Module.ProjectFullPath}"); 414builder.Append($"{ProjectProperties.TargetFramework} : {Module.TargetFramework}");