1 implementation of GetProperty
NuGet.Build.Tasks.Console (1)
TargetFrameworkAdapter.cs (1)
32
public string
GetProperty
(string propertyName)
57 references to GetProperty
NuGet.Build.Tasks.Console (7)
MSBuildStaticGraphRestore.cs (6)
642
string outputPath = outerBuild.
GetProperty
("RestoreOutputPath") ?? outerBuild.
GetProperty
("MSBuildProjectExtensionsPath");
846
project.OuterBuild.
GetProperty
("RestoreSolutionDirectory"),
847
project.OuterBuild.
GetProperty
("RestoreRootConfigDirectory") ?? project.Directory,
848
UriUtility.GetAbsolutePath(project.Directory, project.OuterBuild.
GetProperty
("RestoreConfigFile")),
855
project.OuterBuild.
GetProperty
("MSBuildProjectName"),
RestoreProjectAdapter.cs (1)
53
var targetFramework = OuterBuild.
GetProperty
("TargetFramework") ?? string.Empty;
NuGet.Commands (50)
RestoreCommand\Utility\PackageSpecFactory.cs (50)
60
MSBuildStringUtility.Split($"{project.OuterBuild.
GetProperty
("RuntimeIdentifiers")};{project.OuterBuild.
GetProperty
("RuntimeIdentifier")}")
61
.Concat(project.TargetFrameworks.Values.SelectMany(i => MSBuildStringUtility.Split($"{i.
GetProperty
("RuntimeIdentifiers")};{i.
GetProperty
("RuntimeIdentifier")}")))
65
MSBuildStringUtility.Split(project.OuterBuild.
GetProperty
("RuntimeSupports"))
87
string? version = project.
GetProperty
("PackageVersion") ?? project.
GetProperty
("Version");
104
string? version = project.
GetProperty
("NETCoreSdkVersion");
153
project.TargetFrameworks.Count > 1 || !string.IsNullOrWhiteSpace(project.OuterBuild.
GetProperty
("TargetFrameworks"))),
155
outerBuild.
GetProperty
("MSBuildStartupDirectory"),
159
project.TargetFrameworks.Values.SelectMany(i => MSBuildStringUtility.Split(i.
GetProperty
("RestoreAdditionalProjectFallbackFolders"))),
160
project.TargetFrameworks.Values.SelectMany(i => MSBuildStringUtility.Split(i.
GetProperty
("RestoreAdditionalProjectFallbackFoldersExcludes"))),
185
restoreMetadata.ProjectWideWarningProperties = WarningProperties.GetWarningProperties(outerBuild.
GetProperty
("TreatWarningsAsErrors"), outerBuild.
GetProperty
("WarningsAsErrors"), outerBuild.
GetProperty
("NoWarn"), outerBuild.
GetProperty
("WarningsNotAsErrors"));
186
restoreMetadata.RestoreLockProperties = new RestoreLockProperties(outerBuild.
GetProperty
("RestorePackagesWithLockFile"), outerBuild.
GetProperty
("NuGetLockFilePath"), outerBuild.IsPropertyTrue("RestoreLockedMode"));
189
restoreMetadata.UsingMicrosoftNETSdk = MSBuildRestoreUtility.GetUsingMicrosoftNETSdk(outerBuild.
GetProperty
("UsingMicrosoftNETSdk"));
190
restoreMetadata.SdkAnalysisLevel = MSBuildRestoreUtility.GetSdkAnalysisLevel(outerBuild.
GetProperty
("SdkAnalysisLevel"));
199
ProjectStyle? projectStyleOrNull = GetProjectRestoreStyleFromProjectProperty(project.OuterBuild.
GetProperty
("RestoreProjectStyle"));
201
string? projectName = project.OuterBuild.
GetProperty
("MSBuildProjectName");
232
targetFrameworkMoniker: msBuildProjectInstance.
GetProperty
("TargetFrameworkMoniker"),
233
targetPlatformMoniker: msBuildProjectInstance.
GetProperty
("TargetPlatformMoniker"),
234
targetPlatformMinVersion: msBuildProjectInstance.
GetProperty
("TargetPlatformMinVersion"),
235
clrSupport: msBuildProjectInstance.
GetProperty
("CLRSupport"),
236
windowsTargetPlatformMinVersion: msBuildProjectInstance.
GetProperty
("WindowsTargetPlatformMinVersion"));
238
var packageTargetFallback = MSBuildStringUtility.Split(msBuildProjectInstance.
GetProperty
("PackageTargetFallback")).Select(NuGetFramework.Parse).ToList();
240
var assetTargetFallbackEnum = MSBuildStringUtility.Split(msBuildProjectInstance.
GetProperty
(nameof(TargetFrameworkInformation.AssetTargetFallback))).Select(NuGetFramework.Parse).ToList();
254
bool? restoreEnablePackagePruning = MSBuildStringUtility.GetBooleanOrNull(msBuildProjectInstance.
GetProperty
("RestoreEnablePackagePruning"));
269
RuntimeIdentifierGraphPath = msBuildProjectInstance.
GetProperty
(nameof(TargetFrameworkInformation.RuntimeIdentifierGraphPath)),
307
string? enableAudit = project.OuterBuild.
GetProperty
("NuGetAudit");
308
string? auditLevel = project.OuterBuild.
GetProperty
("NuGetAuditLevel");
334
string? auditMode = item.Value.
GetProperty
("NuGetAuditMode");
341
string? projectAuditMode = project.OuterBuild.
GetProperty
("NuGetAuditMode");
354
return project.
GetProperty
("TargetFramework") == null && project.
GetProperty
("TargetFrameworks") == null;
466
() => UriUtility.GetAbsolutePath(project.Directory, project.OuterBuild.
GetProperty
("RestorePackagesPath")),
514
MSBuildStringUtility.IsTrue(project.
GetProperty
("BuildingInsideVisualStudio"))
533
string? packageId = project.
GetProperty
("PackageId");
541
string? assemblyName = project.
GetProperty
("AssemblyName");
550
string? projectName = project.
GetProperty
("MSBuildProjectName");
800
() => UriUtility.GetAbsolutePath(project.Directory, project.OuterBuild.
GetProperty
("RestoreRepositoryPath")),
804
string? solutionDir = project.OuterBuild.
GetProperty
("SolutionPath");
852
project.TargetFrameworks.Values.SelectMany(i => MSBuildStringUtility.Split(i.
GetProperty
("RestoreAdditionalProjectSources"))),
936
string? outputPath = project.OuterBuild.
GetProperty
("RestoreOutputPath") ?? project.OuterBuild.
GetProperty
("MSBuildProjectExtensionsPath");
943
string? value = project.
GetProperty
(propertyName);
955
string? value = project.
GetProperty
(propertyName);
985
string? value = project.
GetProperty
(name);