1 implementation of GetProperty
NuGet.Build.Tasks.Console (1)
TargetFrameworkAdapter.cs (1)
30
public string?
GetProperty
(string propertyName)
57 references to GetProperty
NuGet.Build.Tasks.Console (7)
MSBuildStaticGraphRestore.cs (6)
635
string outputPath = outerBuild.
GetProperty
("RestoreOutputPath") ?? outerBuild.
GetProperty
("MSBuildProjectExtensionsPath");
836
project.OuterBuild.
GetProperty
("RestoreSolutionDirectory"),
837
project.OuterBuild.
GetProperty
("RestoreRootConfigDirectory") ?? project.Directory,
838
UriUtility.GetAbsolutePath(project.Directory, project.OuterBuild.
GetProperty
("RestoreConfigFile")),
845
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"));
198
ProjectStyle? projectStyleOrNull = GetProjectRestoreStyleFromProjectProperty(project.OuterBuild.
GetProperty
("RestoreProjectStyle"));
200
string? projectName = project.OuterBuild.
GetProperty
("MSBuildProjectName");
231
targetFrameworkMoniker: msBuildProjectInstance.
GetProperty
("TargetFrameworkMoniker"),
232
targetPlatformMoniker: msBuildProjectInstance.
GetProperty
("TargetPlatformMoniker"),
233
targetPlatformMinVersion: msBuildProjectInstance.
GetProperty
("TargetPlatformMinVersion"),
234
clrSupport: msBuildProjectInstance.
GetProperty
("CLRSupport"),
235
windowsTargetPlatformMinVersion: msBuildProjectInstance.
GetProperty
("WindowsTargetPlatformMinVersion"));
237
var packageTargetFallback = MSBuildStringUtility.Split(msBuildProjectInstance.
GetProperty
("PackageTargetFallback")).Select(NuGetFramework.Parse).ToList();
239
var assetTargetFallbackEnum = MSBuildStringUtility.Split(msBuildProjectInstance.
GetProperty
(nameof(TargetFrameworkInformation.AssetTargetFallback))).Select(NuGetFramework.Parse).ToList();
253
bool? restoreEnablePackagePruning = MSBuildStringUtility.GetBooleanOrNull(msBuildProjectInstance.
GetProperty
("RestoreEnablePackagePruning"));
268
RuntimeIdentifierGraphPath = msBuildProjectInstance.
GetProperty
(nameof(TargetFrameworkInformation.RuntimeIdentifierGraphPath)),
293
string? enableAudit = project.OuterBuild.
GetProperty
("NuGetAudit");
294
string? auditLevel = project.OuterBuild.
GetProperty
("NuGetAuditLevel");
320
string? auditMode = item.Value.
GetProperty
("NuGetAuditMode");
327
string? projectAuditMode = project.OuterBuild.
GetProperty
("NuGetAuditMode");
340
return project.
GetProperty
("TargetFramework") == null && project.
GetProperty
("TargetFrameworks") == null;
452
() => UriUtility.GetAbsolutePath(project.Directory, project.OuterBuild.
GetProperty
("RestorePackagesPath")),
500
MSBuildStringUtility.IsTrue(project.
GetProperty
("BuildingInsideVisualStudio"))
519
string? packageId = project.
GetProperty
("PackageId");
527
string? assemblyName = project.
GetProperty
("AssemblyName");
536
string? projectName = project.
GetProperty
("MSBuildProjectName");
786
() => UriUtility.GetAbsolutePath(project.Directory, project.OuterBuild.
GetProperty
("RestoreRepositoryPath")),
790
string? solutionDir = project.OuterBuild.
GetProperty
("SolutionPath");
838
project.TargetFrameworks.Values.SelectMany(i => MSBuildStringUtility.Split(i.
GetProperty
("RestoreAdditionalProjectSources"))),
922
string? outputPath = project.OuterBuild.
GetProperty
("RestoreOutputPath") ?? project.OuterBuild.
GetProperty
("MSBuildProjectExtensionsPath");
929
string? value = project.
GetProperty
(propertyName);
941
string? value = project.
GetProperty
(propertyName);
971
string? value = project.
GetProperty
(name);