1 implementation of GetProperty
NuGet.Build.Tasks.Console (1)
TargetFrameworkAdapter.cs (1)
30public string? GetProperty(string propertyName)
57 references to GetProperty
NuGet.Build.Tasks.Console (7)
MSBuildStaticGraphRestore.cs (6)
635string outputPath = outerBuild.GetProperty("RestoreOutputPath") ?? outerBuild.GetProperty("MSBuildProjectExtensionsPath"); 836project.OuterBuild.GetProperty("RestoreSolutionDirectory"), 837project.OuterBuild.GetProperty("RestoreRootConfigDirectory") ?? project.Directory, 838UriUtility.GetAbsolutePath(project.Directory, project.OuterBuild.GetProperty("RestoreConfigFile")), 845project.OuterBuild.GetProperty("MSBuildProjectName"),
RestoreProjectAdapter.cs (1)
53var targetFramework = OuterBuild.GetProperty("TargetFramework") ?? string.Empty;
NuGet.Commands (50)
RestoreCommand\Utility\PackageSpecFactory.cs (50)
60MSBuildStringUtility.Split($"{project.OuterBuild.GetProperty("RuntimeIdentifiers")};{project.OuterBuild.GetProperty("RuntimeIdentifier")}") 61.Concat(project.TargetFrameworks.Values.SelectMany(i => MSBuildStringUtility.Split($"{i.GetProperty("RuntimeIdentifiers")};{i.GetProperty("RuntimeIdentifier")}"))) 65MSBuildStringUtility.Split(project.OuterBuild.GetProperty("RuntimeSupports")) 87string? version = project.GetProperty("PackageVersion") ?? project.GetProperty("Version"); 104string? version = project.GetProperty("NETCoreSdkVersion"); 153project.TargetFrameworks.Count > 1 || !string.IsNullOrWhiteSpace(project.OuterBuild.GetProperty("TargetFrameworks"))), 155outerBuild.GetProperty("MSBuildStartupDirectory"), 159project.TargetFrameworks.Values.SelectMany(i => MSBuildStringUtility.Split(i.GetProperty("RestoreAdditionalProjectFallbackFolders"))), 160project.TargetFrameworks.Values.SelectMany(i => MSBuildStringUtility.Split(i.GetProperty("RestoreAdditionalProjectFallbackFoldersExcludes"))), 185restoreMetadata.ProjectWideWarningProperties = WarningProperties.GetWarningProperties(outerBuild.GetProperty("TreatWarningsAsErrors"), outerBuild.GetProperty("WarningsAsErrors"), outerBuild.GetProperty("NoWarn"), outerBuild.GetProperty("WarningsNotAsErrors")); 186restoreMetadata.RestoreLockProperties = new RestoreLockProperties(outerBuild.GetProperty("RestorePackagesWithLockFile"), outerBuild.GetProperty("NuGetLockFilePath"), outerBuild.IsPropertyTrue("RestoreLockedMode")); 189restoreMetadata.UsingMicrosoftNETSdk = MSBuildRestoreUtility.GetUsingMicrosoftNETSdk(outerBuild.GetProperty("UsingMicrosoftNETSdk")); 190restoreMetadata.SdkAnalysisLevel = MSBuildRestoreUtility.GetSdkAnalysisLevel(outerBuild.GetProperty("SdkAnalysisLevel")); 198ProjectStyle? projectStyleOrNull = GetProjectRestoreStyleFromProjectProperty(project.OuterBuild.GetProperty("RestoreProjectStyle")); 200string? projectName = project.OuterBuild.GetProperty("MSBuildProjectName"); 231targetFrameworkMoniker: msBuildProjectInstance.GetProperty("TargetFrameworkMoniker"), 232targetPlatformMoniker: msBuildProjectInstance.GetProperty("TargetPlatformMoniker"), 233targetPlatformMinVersion: msBuildProjectInstance.GetProperty("TargetPlatformMinVersion"), 234clrSupport: msBuildProjectInstance.GetProperty("CLRSupport"), 235windowsTargetPlatformMinVersion: msBuildProjectInstance.GetProperty("WindowsTargetPlatformMinVersion")); 237var packageTargetFallback = MSBuildStringUtility.Split(msBuildProjectInstance.GetProperty("PackageTargetFallback")).Select(NuGetFramework.Parse).ToList(); 239var assetTargetFallbackEnum = MSBuildStringUtility.Split(msBuildProjectInstance.GetProperty(nameof(TargetFrameworkInformation.AssetTargetFallback))).Select(NuGetFramework.Parse).ToList(); 253bool? restoreEnablePackagePruning = MSBuildStringUtility.GetBooleanOrNull(msBuildProjectInstance.GetProperty("RestoreEnablePackagePruning")); 268RuntimeIdentifierGraphPath = msBuildProjectInstance.GetProperty(nameof(TargetFrameworkInformation.RuntimeIdentifierGraphPath)), 293string? enableAudit = project.OuterBuild.GetProperty("NuGetAudit"); 294string? auditLevel = project.OuterBuild.GetProperty("NuGetAuditLevel"); 320string? auditMode = item.Value.GetProperty("NuGetAuditMode"); 327string? projectAuditMode = project.OuterBuild.GetProperty("NuGetAuditMode"); 340return project.GetProperty("TargetFramework") == null && project.GetProperty("TargetFrameworks") == null; 452() => UriUtility.GetAbsolutePath(project.Directory, project.OuterBuild.GetProperty("RestorePackagesPath")), 500MSBuildStringUtility.IsTrue(project.GetProperty("BuildingInsideVisualStudio")) 519string? packageId = project.GetProperty("PackageId"); 527string? assemblyName = project.GetProperty("AssemblyName"); 536string? projectName = project.GetProperty("MSBuildProjectName"); 786() => UriUtility.GetAbsolutePath(project.Directory, project.OuterBuild.GetProperty("RestoreRepositoryPath")), 790string? solutionDir = project.OuterBuild.GetProperty("SolutionPath"); 838project.TargetFrameworks.Values.SelectMany(i => MSBuildStringUtility.Split(i.GetProperty("RestoreAdditionalProjectSources"))), 922string? outputPath = project.OuterBuild.GetProperty("RestoreOutputPath") ?? project.OuterBuild.GetProperty("MSBuildProjectExtensionsPath"); 929string? value = project.GetProperty(propertyName); 941string? value = project.GetProperty(propertyName); 971string? value = project.GetProperty(name);