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