81 references to GetPropertyValue
dotnet (49)
Commands\Project\Convert\ProjectConvertCommand.cs (3)
469
var implicitValue = projectInstance.
GetPropertyValue
("_ImplicitFileBasedProgramUserSecretsId");
470
var actualValue = projectInstance.
GetPropertyValue
("UserSecretsId");
561
string projectValue = projectInstance.
GetPropertyValue
(name);
Commands\Run\RunCommand.cs (4)
644
if (string.IsNullOrWhiteSpace(project.
GetPropertyValue
("TargetFramework")) && string.IsNullOrEmpty(project.
GetPropertyValue
("TargetFrameworks")))
732
project.
GetPropertyValue
("MSBuildProjectFullPath"),
734
project.
GetPropertyValue
("OutputType")));
Commands\Run\RunCommandSelector.cs (2)
61
return projectInstance.
GetPropertyValue
(Constants.IntermediateOutputPath);
137
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)
511
if (!MSBuildUtilities.ConvertStringToBool(projectInstance.
GetPropertyValue
(FileBasedProgramCanSkipMSBuild), defaultValue: true))
576
var result = projectInstance.
GetPropertyValue
(singlePropertyName);
601
writer.WriteString(propertyName, projectInstance.
GetPropertyValue
(propertyName));
Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.cs (2)
336
var targetFramework = projectInstance.
GetPropertyValue
(ProjectProperties.TargetFramework);
337
var targetFrameworks = projectInstance.
GetPropertyValue
(ProjectProperties.TargetFrameworks);
Commands\Test\MTP\MSBuildUtility.cs (1)
398
project.
GetPropertyValue
(Constants.IntermediateOutputPath));
Commands\Test\MTP\SolutionAndProjectUtility.cs (21)
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;
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))
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);
588
project.
GetPropertyValue
("OutputType")));
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);
Extensions\ProjectInstanceExtensions.cs (5)
13
var projectGuidProperty = projectInstance.
GetPropertyValue
("ProjectGuid");
22
string projectTypeGuid = projectInstance.
GetPropertyValue
("DefaultProjectTypeGuid");
32
return (projectInstance.
GetPropertyValue
("Platforms") ?? "")
40
string foundConfig = projectInstance.
GetPropertyValue
("Configurations") ?? "Debug;Release";
76
return projectInstance.
GetPropertyValue
(propertyName)
ReleasePropertyProjectLocator.cs (2)
75
string propertyToCheckValue = project.
GetPropertyValue
(propertyToCheck);
183
string pReleasePropertyValue = projectData.
GetPropertyValue
(propertyToCheck);
dotnet-aot (5)
src\sdk\src\Cli\dotnet\Extensions\ProjectInstanceExtensions.cs (5)
13
var projectGuidProperty = projectInstance.
GetPropertyValue
("ProjectGuid");
22
string projectTypeGuid = projectInstance.
GetPropertyValue
("DefaultProjectTypeGuid");
32
return (projectInstance.
GetPropertyValue
("Platforms") ?? "")
40
string foundConfig = projectInstance.
GetPropertyValue
("Configurations") ?? "Debug;Release";
76
return projectInstance.
GetPropertyValue
(propertyName)
Microsoft.Build (10)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
688
_loggingService.LogComment(buildEventContext, MessageImportance.High, "ProjectCacheHitWithOutputs", buildRequest.ProjectInstance!.
GetPropertyValue
(ReservedPropertyNames.projectName));
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
1543
FileClassifier.Shared.RegisterKnownImmutableLocations(project.
GetPropertyValue
);
Construction\Solution\SolutionProjectGenerator.cs (2)
1155
string directProjectToolsVersion = traversalProject.
GetPropertyValue
("ProjectToolsVersion");
2143
properties[property.Item1] = EscapingUtilities.Escape(traversalProject.
GetPropertyValue
(property.Item1));
Graph\ProjectInterpretation.cs (6)
208
string targetFrameworksValue = projectInstanceForDiscovery.
GetPropertyValue
(PropertyNames.TargetFrameworks);
227
string targetFrameworkValue = projectInstanceForDiscovery.
GetPropertyValue
(PropertyNames.TargetFramework);
253
return project.
GetPropertyValue
(GetInnerBuildPropertyName(project));
258
return project.
GetPropertyValue
(PropertyNames.InnerBuildProperty);
263
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.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
MSBuild\ProjectFile\ProjectInstance.cs (1)
41
return projectInstance.
GetPropertyValue
(propertyName);
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, NormalizeSeparators(path))) : null;
62
=> project.
GetPropertyValue
(PropertyNames.TargetName);
68
=> project.
GetPropertyValue
(PropertyNames.IntermediateOutputPath) is { Length: >0 } path ? Path.Combine(project.Directory, NormalizeSeparators(path)) : null;
87
=> project.
GetPropertyValue
(propertyName).Split(';', StringSplitOptions.TrimEntries | StringSplitOptions.RemoveEmptyEntries);
93
=> project.
GetPropertyValue
(propertyName) is { Length: >0 } value ? bool.TryParse(value, out var result) && result : defaultValue;
Microsoft.DotNet.ProjectTools (1)
BuildService.cs (1)
115
public ValueTask<string> GetPropertyValueAsync(string propertyName) => new(inner.
GetPropertyValue
(propertyName));
MSBuild (4)
XMake.cs (4)
1386
outputStream.WriteLine(project.
GetPropertyValue
(getProperty[0]));
1391
jsonOutputFormatter.AddPropertiesInJsonFormat(getProperty, property => project.
GetPropertyValue
(property));
1419
outputStream.WriteLine(builtProject.
GetPropertyValue
(getProperty[0]));
1424
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)
34
var value = _projectInstance.
GetPropertyValue
(propertyName).Trim();