71 references to GetPropertyValue
dotnet (46)
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)
643
if (string.IsNullOrWhiteSpace(project.
GetPropertyValue
("TargetFramework")) && string.IsNullOrEmpty(project.
GetPropertyValue
("TargetFrameworks")))
730
project.
GetPropertyValue
("MSBuildProjectFullPath"),
732
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)
526
if (!MSBuildUtilities.ConvertStringToBool(projectInstance.
GetPropertyValue
(FileBasedProgramCanSkipMSBuild), defaultValue: true))
591
var result = projectInstance.
GetPropertyValue
(singlePropertyName);
616
writer.WriteString(propertyName, projectInstance.
GetPropertyValue
(propertyName));
Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.cs (2)
176
var targetFramework = projectInstance.
GetPropertyValue
(ProjectProperties.TargetFramework);
177
var targetFrameworks = projectInstance.
GetPropertyValue
(ProjectProperties.TargetFrameworks);
Commands\Test\MTP\SolutionAndProjectUtility.cs (20)
248
var targetFramework = projectInstance.
GetPropertyValue
(ProjectProperties.TargetFramework);
249
var targetFrameworks = projectInstance.
GetPropertyValue
(ProjectProperties.TargetFrameworks);
251
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)}'.");
262
if (!bool.TryParse(projectInstance.
GetPropertyValue
(ProjectProperties.TestTfmsInParallel), out bool testTfmsInParallel) &&
263
!bool.TryParse(projectInstance.
GetPropertyValue
(ProjectProperties.BuildInParallel), out testTfmsInParallel))
281
Logger.LogTrace($"Loaded inner project '{Path.GetFileName(projectFilePath)}' has '{ProjectProperties.IsTestingPlatformApplication}' = '{projectInstance.
GetPropertyValue
(ProjectProperties.IsTestingPlatformApplication)}' (TFM: '{framework}').");
295
Logger.LogTrace($"Loaded inner project '{Path.GetFileName(projectFilePath)}' has '{ProjectProperties.IsTestingPlatformApplication}' = '{projectInstance.
GetPropertyValue
(ProjectProperties.IsTestingPlatformApplication)}' (TFM: '{framework}').");
360
var targetFramework = projectInstance.
GetPropertyValue
(ProjectProperties.TargetFramework);
361
var targetFrameworks = projectInstance.
GetPropertyValue
(ProjectProperties.TargetFrameworks);
365
if (bool.TryParse(projectInstance.
GetPropertyValue
(ProjectProperties.TestTfmsInParallel), out bool parsed) ||
366
bool.TryParse(projectInstance.
GetPropertyValue
(ProjectProperties.BuildInParallel), out parsed))
447
_ = bool.TryParse(project.
GetPropertyValue
(ProjectProperties.IsTestProject), out bool isTestProject);
448
_ = bool.TryParse(project.
GetPropertyValue
(ProjectProperties.IsTestingPlatformApplication), out bool isTestingPlatformApplication);
455
string targetFramework = project.
GetPropertyValue
(ProjectProperties.TargetFramework);
456
string projectFullPath = project.
GetPropertyValue
(ProjectProperties.ProjectFullPath);
476
project.
GetPropertyValue
("OutputType")));
483
project.
GetPropertyValue
(ProjectProperties.TargetPath),
489
var launchSettings = TryGetLaunchProfileSettings(Path.GetDirectoryName(projectFullPath)!, Path.GetFileNameWithoutExtension(projectFullPath), project.
GetPropertyValue
(ProjectProperties.AppDesignerFolder), buildOptions, profileName: null);
501
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)
71
string propertyToCheckValue = project.
GetPropertyValue
(propertyToCheck);
179
string pReleasePropertyValue = projectData.
GetPropertyValue
(propertyToCheck);
Microsoft.Build (10)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
679
_loggingService.LogComment(buildEventContext, MessageImportance.High, "ProjectCacheHitWithOutputs", buildRequest.ProjectInstance!.
GetPropertyValue
(ReservedPropertyNames.projectName));
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
1540
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 (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.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)
266
project.
GetPropertyValue
(CSharpDirective.IncludeOrExclude.MappingPropertyName),
522
bool value = flag ??= MSBuildUtilities.ConvertStringToBool(project.
GetPropertyValue
(flagName));
MSBuild (2)
XMake.cs (2)
1338
outputStream.WriteLine(builtProject.
GetPropertyValue
(getProperty[0]));
1343
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();