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"))),
186
restoreMetadata.ProjectWideWarningProperties = WarningProperties.GetWarningProperties(outerBuild.
GetProperty
("TreatWarningsAsErrors"), outerBuild.
GetProperty
("WarningsAsErrors"), outerBuild.
GetProperty
("NoWarn"), outerBuild.
GetProperty
("WarningsNotAsErrors"));
187
restoreMetadata.RestoreLockProperties = new RestoreLockProperties(outerBuild.
GetProperty
("RestorePackagesWithLockFile"), outerBuild.
GetProperty
("NuGetLockFilePath"), outerBuild.IsPropertyTrue("RestoreLockedMode"));
190
restoreMetadata.UsingMicrosoftNETSdk = MSBuildRestoreUtility.GetUsingMicrosoftNETSdk(outerBuild.
GetProperty
("UsingMicrosoftNETSdk"));
191
restoreMetadata.SdkAnalysisLevel = MSBuildRestoreUtility.GetSdkAnalysisLevel(outerBuild.
GetProperty
("SdkAnalysisLevel"));
200
ProjectStyle? projectStyleOrNull = GetProjectRestoreStyleFromProjectProperty(project.OuterBuild.
GetProperty
("RestoreProjectStyle"));
202
string? projectName = project.OuterBuild.
GetProperty
("MSBuildProjectName");
233
targetFrameworkMoniker: msBuildProjectInstance.
GetProperty
("TargetFrameworkMoniker"),
234
targetPlatformMoniker: msBuildProjectInstance.
GetProperty
("TargetPlatformMoniker"),
235
targetPlatformMinVersion: msBuildProjectInstance.
GetProperty
("TargetPlatformMinVersion"),
236
clrSupport: msBuildProjectInstance.
GetProperty
("CLRSupport"),
237
windowsTargetPlatformMinVersion: msBuildProjectInstance.
GetProperty
("WindowsTargetPlatformMinVersion"));
239
var packageTargetFallback = MSBuildStringUtility.Split(msBuildProjectInstance.
GetProperty
("PackageTargetFallback")).Select(NuGetFramework.Parse).ToList();
241
var assetTargetFallbackEnum = MSBuildStringUtility.Split(msBuildProjectInstance.
GetProperty
(nameof(TargetFrameworkInformation.AssetTargetFallback))).Select(NuGetFramework.Parse).ToList();
255
bool? restoreEnablePackagePruning = MSBuildStringUtility.GetBooleanOrNull(msBuildProjectInstance.
GetProperty
("RestoreEnablePackagePruning"));
270
RuntimeIdentifierGraphPath = msBuildProjectInstance.
GetProperty
(nameof(TargetFrameworkInformation.RuntimeIdentifierGraphPath)),
308
string? enableAudit = project.OuterBuild.
GetProperty
("NuGetAudit");
309
string? auditLevel = project.OuterBuild.
GetProperty
("NuGetAuditLevel");
335
string? auditMode = item.Value.
GetProperty
("NuGetAuditMode");
342
string? projectAuditMode = project.OuterBuild.
GetProperty
("NuGetAuditMode");
355
return project.
GetProperty
("TargetFramework") == null && project.
GetProperty
("TargetFrameworks") == null;
467
() => UriUtility.GetAbsolutePath(project.Directory, project.OuterBuild.
GetProperty
("RestorePackagesPath")),
515
MSBuildStringUtility.IsTrue(project.
GetProperty
("BuildingInsideVisualStudio"))
534
string? packageId = project.
GetProperty
("PackageId");
542
string? assemblyName = project.
GetProperty
("AssemblyName");
551
string? projectName = project.
GetProperty
("MSBuildProjectName");
802
() => UriUtility.GetAbsolutePath(project.Directory, project.OuterBuild.
GetProperty
("RestoreRepositoryPath")),
806
string? solutionDir = project.OuterBuild.
GetProperty
("SolutionPath");
854
project.TargetFrameworks.Values.SelectMany(i => MSBuildStringUtility.Split(i.
GetProperty
("RestoreAdditionalProjectSources"))),
938
string? outputPath = project.OuterBuild.
GetProperty
("RestoreOutputPath") ?? project.OuterBuild.
GetProperty
("MSBuildProjectExtensionsPath");
945
string? value = project.
GetProperty
(propertyName);
957
string? value = project.
GetProperty
(propertyName);
987
string? value = project.
GetProperty
(name);