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