1 implementation of GetProperty
NuGet.Build.Tasks.Console (1)
TargetFrameworkAdapter.cs (1)
30
public string?
GetProperty
(string propertyName)
53 references to GetProperty
NuGet.Build.Tasks.Console (4)
MSBuildStaticGraphRestore.cs (3)
817
project.OuterBuild.
GetProperty
("RestoreSolutionDirectory"),
818
project.OuterBuild.
GetProperty
("RestoreRootConfigDirectory") ?? project.Directory,
819
UriUtility.GetAbsolutePath(project.Directory, project.OuterBuild.
GetProperty
("RestoreConfigFile")),
RestoreProjectAdapter.cs (1)
53
var targetFramework = OuterBuild.
GetProperty
("TargetFramework") ?? string.Empty;
NuGet.Commands (49)
RestoreCommand\Utility\PackageSpecFactory.cs (49)
81
MSBuildStringUtility.Split($"{project.OuterBuild.
GetProperty
("RuntimeIdentifiers")};{project.OuterBuild.
GetProperty
("RuntimeIdentifier")}")
82
.Concat(project.TargetFrameworks.Values.SelectMany(i => MSBuildStringUtility.Split($"{i.
GetProperty
("RuntimeIdentifiers")};{i.
GetProperty
("RuntimeIdentifier")}")))
86
MSBuildStringUtility.Split(project.OuterBuild.
GetProperty
("RuntimeSupports"))
245
string? version = project.
GetProperty
("PackageVersion") ?? project.
GetProperty
("Version");
262
string? version = project.
GetProperty
("NETCoreSdkVersion");
310
project.TargetFrameworks.Count > 1 || !string.IsNullOrWhiteSpace(project.OuterBuild.
GetProperty
("TargetFrameworks"))),
314
project.TargetFrameworks.Values.SelectMany(i => MSBuildStringUtility.Split(i.
GetProperty
("RestoreAdditionalProjectFallbackFolders"))),
315
project.TargetFrameworks.Values.SelectMany(i => MSBuildStringUtility.Split(i.
GetProperty
("RestoreAdditionalProjectFallbackFoldersExcludes")))),
344
restoreMetadata.ProjectWideWarningProperties = WarningProperties.GetWarningProperties(outerBuild.
GetProperty
("TreatWarningsAsErrors"), outerBuild.
GetProperty
("WarningsAsErrors"), outerBuild.
GetProperty
("NoWarn"), outerBuild.
GetProperty
("WarningsNotAsErrors"));
345
restoreMetadata.RestoreLockProperties = new RestoreLockProperties(outerBuild.
GetProperty
("RestorePackagesWithLockFile"), outerBuild.
GetProperty
("NuGetLockFilePath"), outerBuild.IsPropertyTrue("RestoreLockedMode"));
348
restoreMetadata.UsingMicrosoftNETSdk = MSBuildRestoreUtility.GetUsingMicrosoftNETSdk(outerBuild.
GetProperty
("UsingMicrosoftNETSdk"));
349
restoreMetadata.SdkAnalysisLevel = MSBuildRestoreUtility.GetSdkAnalysisLevel(outerBuild.
GetProperty
("SdkAnalysisLevel"));
357
ProjectStyle? projectStyleOrNull = GetProjectRestoreStyleFromProjectProperty(project.OuterBuild.
GetProperty
("RestoreProjectStyle"));
359
string? projectName = project.OuterBuild.
GetProperty
("MSBuildProjectName");
390
targetFrameworkMoniker: msBuildProjectInstance.
GetProperty
("TargetFrameworkMoniker"),
391
targetPlatformMoniker: msBuildProjectInstance.
GetProperty
("TargetPlatformMoniker"),
392
targetPlatformMinVersion: msBuildProjectInstance.
GetProperty
("TargetPlatformMinVersion"),
393
clrSupport: msBuildProjectInstance.
GetProperty
("CLRSupport"),
394
windowsTargetPlatformMinVersion: msBuildProjectInstance.
GetProperty
("WindowsTargetPlatformMinVersion"));
396
var packageTargetFallback = MSBuildStringUtility.Split(msBuildProjectInstance.
GetProperty
("PackageTargetFallback")).Select(NuGetFramework.Parse).ToList();
398
var assetTargetFallbackEnum = MSBuildStringUtility.Split(msBuildProjectInstance.
GetProperty
(nameof(TargetFrameworkInformation.AssetTargetFallback))).Select(NuGetFramework.Parse).ToList();
412
bool? restoreEnablePackagePruning = MSBuildStringUtility.GetBooleanOrNull(msBuildProjectInstance.
GetProperty
("RestoreEnablePackagePruning"));
427
RuntimeIdentifierGraphPath = msBuildProjectInstance.
GetProperty
(nameof(TargetFrameworkInformation.RuntimeIdentifierGraphPath)),
452
string? enableAudit = project.OuterBuild.
GetProperty
("NuGetAudit");
453
string? auditLevel = project.OuterBuild.
GetProperty
("NuGetAuditLevel");
479
string? auditMode = item.Value.
GetProperty
("NuGetAuditMode");
486
string? projectAuditMode = project.OuterBuild.
GetProperty
("NuGetAuditMode");
499
return project.
GetProperty
("TargetFrameworks") == null && project.
GetProperty
("TargetFramework") == null;
640
() => project.OuterBuild.
GetProperty
("RestorePackagesPath"));
655
MSBuildStringUtility.IsTrue(project.
GetProperty
("BuildingInsideVisualStudio"))
674
string? packageId = project.
GetProperty
("PackageId");
682
string? assemblyName = project.
GetProperty
("AssemblyName");
691
string? projectName = project.
GetProperty
("MSBuildProjectName");
940
() => UriUtility.GetAbsolutePath(project.Directory, project.OuterBuild.
GetProperty
("RestoreRepositoryPath")),
943
string? solutionDir = project.OuterBuild.
GetProperty
("SolutionPath");
990
project.TargetFrameworks.Values.SelectMany(i => MSBuildStringUtility.Split(i.
GetProperty
("RestoreAdditionalProjectSources"))))
1084
string? outputPath = project.OuterBuild.
GetProperty
("RestoreOutputPath") ?? project.OuterBuild.
GetProperty
("MSBuildProjectExtensionsPath");
1091
string? value = project.
GetProperty
(propertyName);
1103
string? value = project.
GetProperty
(propertyName);
1133
string? value = project.
GetProperty
(name);