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