1 implementation of GetProperty
NuGet.Build.Tasks.Console (1)
TargetFrameworkAdapter.cs (1)
32public string GetProperty(string propertyName)
57 references to GetProperty
NuGet.Build.Tasks.Console (7)
MSBuildStaticGraphRestore.cs (6)
642string outputPath = outerBuild.GetProperty("RestoreOutputPath") ?? outerBuild.GetProperty("MSBuildProjectExtensionsPath"); 846project.OuterBuild.GetProperty("RestoreSolutionDirectory"), 847project.OuterBuild.GetProperty("RestoreRootConfigDirectory") ?? project.Directory, 848UriUtility.GetAbsolutePath(project.Directory, project.OuterBuild.GetProperty("RestoreConfigFile")), 855project.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")); 199ProjectStyle? projectStyleOrNull = GetProjectRestoreStyleFromProjectProperty(project.OuterBuild.GetProperty("RestoreProjectStyle")); 201string? projectName = project.OuterBuild.GetProperty("MSBuildProjectName"); 232targetFrameworkMoniker: msBuildProjectInstance.GetProperty("TargetFrameworkMoniker"), 233targetPlatformMoniker: msBuildProjectInstance.GetProperty("TargetPlatformMoniker"), 234targetPlatformMinVersion: msBuildProjectInstance.GetProperty("TargetPlatformMinVersion"), 235clrSupport: msBuildProjectInstance.GetProperty("CLRSupport"), 236windowsTargetPlatformMinVersion: msBuildProjectInstance.GetProperty("WindowsTargetPlatformMinVersion")); 238var packageTargetFallback = MSBuildStringUtility.Split(msBuildProjectInstance.GetProperty("PackageTargetFallback")).Select(NuGetFramework.Parse).ToList(); 240var assetTargetFallbackEnum = MSBuildStringUtility.Split(msBuildProjectInstance.GetProperty(nameof(TargetFrameworkInformation.AssetTargetFallback))).Select(NuGetFramework.Parse).ToList(); 254bool? restoreEnablePackagePruning = MSBuildStringUtility.GetBooleanOrNull(msBuildProjectInstance.GetProperty("RestoreEnablePackagePruning")); 269RuntimeIdentifierGraphPath = msBuildProjectInstance.GetProperty(nameof(TargetFrameworkInformation.RuntimeIdentifierGraphPath)), 307string? enableAudit = project.OuterBuild.GetProperty("NuGetAudit"); 308string? auditLevel = project.OuterBuild.GetProperty("NuGetAuditLevel"); 334string? auditMode = item.Value.GetProperty("NuGetAuditMode"); 341string? projectAuditMode = project.OuterBuild.GetProperty("NuGetAuditMode"); 354return project.GetProperty("TargetFramework") == null && project.GetProperty("TargetFrameworks") == null; 466() => UriUtility.GetAbsolutePath(project.Directory, project.OuterBuild.GetProperty("RestorePackagesPath")), 514MSBuildStringUtility.IsTrue(project.GetProperty("BuildingInsideVisualStudio")) 533string? packageId = project.GetProperty("PackageId"); 541string? assemblyName = project.GetProperty("AssemblyName"); 550string? projectName = project.GetProperty("MSBuildProjectName"); 800() => UriUtility.GetAbsolutePath(project.Directory, project.OuterBuild.GetProperty("RestoreRepositoryPath")), 804string? solutionDir = project.OuterBuild.GetProperty("SolutionPath"); 852project.TargetFrameworks.Values.SelectMany(i => MSBuildStringUtility.Split(i.GetProperty("RestoreAdditionalProjectSources"))), 936string? outputPath = project.OuterBuild.GetProperty("RestoreOutputPath") ?? project.OuterBuild.GetProperty("MSBuildProjectExtensionsPath"); 943string? value = project.GetProperty(propertyName); 955string? value = project.GetProperty(propertyName); 985string? value = project.GetProperty(name);