69 references to GetPropertyValue
dotnet (46)
Commands\Project\Convert\ProjectConvertCommand.cs (3)
467
var implicitValue = projectInstance.
GetPropertyValue
("_ImplicitFileBasedProgramUserSecretsId");
468
var actualValue = projectInstance.
GetPropertyValue
("UserSecretsId");
559
string projectValue = projectInstance.
GetPropertyValue
(name);
Commands\Run\RunCommand.cs (4)
633
if (string.IsNullOrWhiteSpace(project.
GetPropertyValue
("TargetFramework")) && string.IsNullOrEmpty(project.
GetPropertyValue
("TargetFrameworks")))
715
project.
GetPropertyValue
("MSBuildProjectFullPath"),
717
project.
GetPropertyValue
("OutputType")));
Commands\Run\RunCommandSelector.cs (2)
57
return projectInstance.
GetPropertyValue
(Constants.IntermediateOutputPath);
123
string targetFrameworks = projectInstance.
GetPropertyValue
("TargetFrameworks");
Commands\Run\RunProperties.cs (6)
26
Command: project.
GetPropertyValue
("RunCommand"),
27
Arguments: project.
GetPropertyValue
("RunArguments"),
28
WorkingDirectory: project.
GetPropertyValue
("RunWorkingDirectory"),
29
RuntimeIdentifier: project.
GetPropertyValue
("RuntimeIdentifier"),
30
DefaultAppHostRuntimeIdentifier: project.
GetPropertyValue
("DefaultAppHostRuntimeIdentifier"),
31
TargetFrameworkVersion: project.
GetPropertyValue
("TargetFrameworkVersion"));
Commands\Run\VirtualProjectBuildingCommand.cs (3)
524
if (!MSBuildUtilities.ConvertStringToBool(projectInstance.
GetPropertyValue
(FileBasedProgramCanSkipMSBuild), defaultValue: true))
588
var result = projectInstance.
GetPropertyValue
(singlePropertyName);
613
writer.WriteString(propertyName, projectInstance.
GetPropertyValue
(propertyName));
Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.cs (2)
174
var targetFramework = projectInstance.
GetPropertyValue
(ProjectProperties.TargetFramework);
175
var targetFrameworks = projectInstance.
GetPropertyValue
(ProjectProperties.TargetFrameworks);
Commands\Test\MTP\SolutionAndProjectUtility.cs (20)
246
var targetFramework = projectInstance.
GetPropertyValue
(ProjectProperties.TargetFramework);
247
var targetFrameworks = projectInstance.
GetPropertyValue
(ProjectProperties.TargetFrameworks);
249
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)}'.");
260
if (!bool.TryParse(projectInstance.
GetPropertyValue
(ProjectProperties.TestTfmsInParallel), out bool testTfmsInParallel) &&
261
!bool.TryParse(projectInstance.
GetPropertyValue
(ProjectProperties.BuildInParallel), out testTfmsInParallel))
279
Logger.LogTrace($"Loaded inner project '{Path.GetFileName(projectFilePath)}' has '{ProjectProperties.IsTestingPlatformApplication}' = '{projectInstance.
GetPropertyValue
(ProjectProperties.IsTestingPlatformApplication)}' (TFM: '{framework}').");
293
Logger.LogTrace($"Loaded inner project '{Path.GetFileName(projectFilePath)}' has '{ProjectProperties.IsTestingPlatformApplication}' = '{projectInstance.
GetPropertyValue
(ProjectProperties.IsTestingPlatformApplication)}' (TFM: '{framework}').");
358
var targetFramework = projectInstance.
GetPropertyValue
(ProjectProperties.TargetFramework);
359
var targetFrameworks = projectInstance.
GetPropertyValue
(ProjectProperties.TargetFrameworks);
363
if (bool.TryParse(projectInstance.
GetPropertyValue
(ProjectProperties.TestTfmsInParallel), out bool parsed) ||
364
bool.TryParse(projectInstance.
GetPropertyValue
(ProjectProperties.BuildInParallel), out parsed))
444
_ = bool.TryParse(project.
GetPropertyValue
(ProjectProperties.IsTestProject), out bool isTestProject);
445
_ = bool.TryParse(project.
GetPropertyValue
(ProjectProperties.IsTestingPlatformApplication), out bool isTestingPlatformApplication);
452
string targetFramework = project.
GetPropertyValue
(ProjectProperties.TargetFramework);
453
string projectFullPath = project.
GetPropertyValue
(ProjectProperties.ProjectFullPath);
473
project.
GetPropertyValue
("OutputType")));
480
project.
GetPropertyValue
(ProjectProperties.TargetPath),
486
var launchSettings = TryGetLaunchProfileSettings(Path.GetDirectoryName(projectFullPath)!, Path.GetFileNameWithoutExtension(projectFullPath), project.
GetPropertyValue
(ProjectProperties.AppDesignerFolder), buildOptions, profileName: null);
498
return new TestModule(runProperties, PathUtility.FixFilePath(projectFullPath), targetFramework, isTestingPlatformApplication, launchSettings, project.
GetPropertyValue
(ProjectProperties.TargetPath), rootVariableName);
Extensions\ProjectInstanceExtensions.cs (4)
12
var projectGuidProperty = projectInstance.
GetPropertyValue
("ProjectGuid");
21
string projectTypeGuid = projectInstance.
GetPropertyValue
("DefaultProjectTypeGuid");
31
return (projectInstance.
GetPropertyValue
("Platforms") ?? "")
39
string foundConfig = projectInstance.
GetPropertyValue
("Configurations") ?? "Debug;Release";
ReleasePropertyProjectLocator.cs (2)
69
string propertyToCheckValue = project.
GetPropertyValue
(propertyToCheck);
176
string pReleasePropertyValue = projectData.
GetPropertyValue
(propertyToCheck);
Microsoft.Build (8)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
685
_loggingService.LogComment(buildEventContext, MessageImportance.High, "ProjectCacheHitWithOutputs", buildRequest.ProjectInstance!.
GetPropertyValue
(ReservedPropertyNames.projectName));
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
1528
FileClassifier.Shared.RegisterKnownImmutableLocations(project.
GetPropertyValue
);
Construction\Solution\SolutionProjectGenerator.cs (2)
1150
string directProjectToolsVersion = traversalProject.
GetPropertyValue
("ProjectToolsVersion");
2138
properties[property.Item1] = EscapingUtilities.Escape(traversalProject.
GetPropertyValue
(property.Item1));
Graph\ProjectInterpretation.cs (4)
211
return project.
GetPropertyValue
(GetInnerBuildPropertyName(project));
216
return project.
GetPropertyValue
(PropertyNames.InnerBuildProperty);
221
return project.
GetPropertyValue
(project.
GetPropertyValue
(PropertyNames.InnerBuildPropertyValues));
Microsoft.CodeAnalysis.ExternalAccess.HotReload (1)
Api\HotReloadMSBuildWorkspace.ProjectFileInfoProvider.cs (1)
45
getBuildProjects(projectPath).instances.SelectAsArray(static instance => instance.
GetPropertyValue
(PropertyNames.TargetPath)));
Microsoft.DotNet.HotReload.Watch (8)
Build\ProjectGraphUtilities.cs (8)
23
=> project.
GetPropertyValue
(PropertyNames.TargetFramework);
32
return new FrameworkName(projectNode.ProjectInstance.
GetPropertyValue
(PropertyNames.TargetFrameworkMoniker)).Version;
50
=> IsNetCoreApp(projectNode.ProjectInstance.
GetPropertyValue
(PropertyNames.TargetFrameworkIdentifier));
59
=> project.
GetPropertyValue
(PropertyNames.TargetPath) is { Length: >0 } path ? Path.GetDirectoryName(Path.Combine(project.Directory, path)) : null;
62
=> projectNode.ProjectInstance.
GetPropertyValue
(PropertyNames.TargetName);
65
=> project.
GetPropertyValue
(PropertyNames.IntermediateOutputPath) is { Length: >0 } path ? Path.Combine(project.Directory, path) : null;
83
=> project.
GetPropertyValue
(propertyName).Split(';', StringSplitOptions.TrimEntries | StringSplitOptions.RemoveEmptyEntries);
89
=> project.
GetPropertyValue
(propertyName) is { Length: >0 } value ? bool.TryParse(value, out var result) && result : defaultValue;
Microsoft.DotNet.ProjectTools (2)
VirtualProjectBuilder.cs (2)
260
project.
GetPropertyValue
(CSharpDirective.IncludeOrExclude.MappingPropertyName),
513
bool value = flag ??= MSBuildUtilities.ConvertStringToBool(project.
GetPropertyValue
(flagName));
MSBuild (2)
XMake.cs (2)
1169
outputStream.WriteLine(builtProject.
GetPropertyValue
(getProperty[0]));
1174
jsonOutputFormatter.AddPropertiesInJsonFormat(getProperty, property => builtProject.
GetPropertyValue
(property));
NuGet.Build.Tasks.Console (2)
MSBuildProjectInstance.cs (1)
54
protected override string GetPropertyValue(string name) => _projectInstance.
GetPropertyValue
(name);
TargetFrameworkAdapter.cs (1)
32
var value = _projectInstance.
GetPropertyValue
(propertyName).Trim();