85 references to GetPropertyValue
dotnet (53)
Commands\Project\Convert\ProjectConvertCommand.cs (3)
469
var implicitValue = projectInstance.
GetPropertyValue
("_ImplicitFileBasedProgramUserSecretsId");
470
var actualValue = projectInstance.
GetPropertyValue
("UserSecretsId");
561
string projectValue = projectInstance.
GetPropertyValue
(name);
Commands\Run\RunCommand.cs (4)
602
if (string.IsNullOrWhiteSpace(project.
GetPropertyValue
("TargetFramework")) && string.IsNullOrEmpty(project.
GetPropertyValue
("TargetFrameworks")))
690
project.
GetPropertyValue
("MSBuildProjectFullPath"),
692
project.
GetPropertyValue
("OutputType")));
Commands\Run\RunCommandSelector.cs (2)
61
return projectInstance.
GetPropertyValue
(Constants.IntermediateOutputPath);
137
string targetFrameworks = projectInstance.
GetPropertyValue
("TargetFrameworks");
Commands\Run\RunProperties.cs (6)
51
Command: project.
GetPropertyValue
("RunCommand"),
52
Arguments: project.
GetPropertyValue
("RunArguments"),
53
WorkingDirectory: project.
GetPropertyValue
("RunWorkingDirectory"),
54
RuntimeIdentifier: project.
GetPropertyValue
("RuntimeIdentifier"),
55
DefaultAppHostRuntimeIdentifier: project.
GetPropertyValue
("DefaultAppHostRuntimeIdentifier"),
56
TargetFrameworkVersion: project.
GetPropertyValue
("TargetFrameworkVersion"));
Commands\Run\VirtualProjectBuildingCommand.cs (3)
454
if (!MSBuildUtilities.ConvertStringToBool(projectInstance.
GetPropertyValue
(FileBasedProgramCanSkipMSBuild), defaultValue: true))
519
var result = projectInstance.
GetPropertyValue
(singlePropertyName);
544
writer.WriteString(propertyName, projectInstance.
GetPropertyValue
(propertyName));
Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.cs (2)
772
var targetFramework = projectInstance.
GetPropertyValue
(ProjectProperties.TargetFramework);
773
var targetFrameworks = projectInstance.
GetPropertyValue
(ProjectProperties.TargetFrameworks);
Commands\Test\MTP\MSBuildUtility.cs (1)
492
project.
GetPropertyValue
(Constants.IntermediateOutputPath));
Commands\Test\MTP\SolutionAndProjectUtility.cs (25)
336
var targetFramework = projectInstance.
GetPropertyValue
(ProjectProperties.TargetFramework);
337
var targetFrameworks = projectInstance.
GetPropertyValue
(ProjectProperties.TargetFrameworks);
339
Logger.LogTrace($"Loaded project '{Path.GetFileName(projectFilePath)}' with TargetFramework '{targetFramework}', TargetFrameworks '{targetFrameworks}', IsTestProject '{projectInstance.
GetPropertyValue
(ProjectProperties.IsTestProject)}', and '{ProjectProperties.IsTestingPlatformApplication}' is '{projectInstance.
GetPropertyValue
(ProjectProperties.IsTestingPlatformApplication)}'.");
350
if (!bool.TryParse(projectInstance.
GetPropertyValue
(ProjectProperties.TestTfmsInParallel), out bool testTfmsInParallel) &&
351
!bool.TryParse(projectInstance.
GetPropertyValue
(ProjectProperties.BuildInParallel), out testTfmsInParallel))
369
Logger.LogTrace($"Loaded inner project '{Path.GetFileName(projectFilePath)}' has '{ProjectProperties.IsTestingPlatformApplication}' = '{projectInstance.
GetPropertyValue
(ProjectProperties.IsTestingPlatformApplication)}' (TFM: '{framework}').");
383
Logger.LogTrace($"Loaded inner project '{Path.GetFileName(projectFilePath)}' has '{ProjectProperties.IsTestingPlatformApplication}' = '{projectInstance.
GetPropertyValue
(ProjectProperties.IsTestingPlatformApplication)}' (TFM: '{framework}').");
409
=> bool.TryParse(projectInstance.
GetPropertyValue
(ProjectProperties.IsTraversal), out bool isTraversal) && isTraversal;
501
var targetFramework = projectInstance.
GetPropertyValue
(ProjectProperties.TargetFramework);
502
var targetFrameworks = projectInstance.
GetPropertyValue
(ProjectProperties.TargetFrameworks);
506
if (bool.TryParse(projectInstance.
GetPropertyValue
(ProjectProperties.TestTfmsInParallel), out bool parsed) ||
507
bool.TryParse(projectInstance.
GetPropertyValue
(ProjectProperties.BuildInParallel), out parsed))
595
_ = bool.TryParse(project.
GetPropertyValue
(ProjectProperties.IsTestProject), out bool isTestProject);
596
_ = bool.TryParse(project.
GetPropertyValue
(ProjectProperties.IsTestingPlatformApplication), out bool isTestingPlatformApplication);
603
string targetFramework = project.
GetPropertyValue
(ProjectProperties.TargetFramework);
604
string projectFullPath = project.
GetPropertyValue
(ProjectProperties.ProjectFullPath);
629
project.
GetPropertyValue
("OutputType")));
636
project.
GetPropertyValue
(ProjectProperties.TargetPath),
643
var launchSettings = TryGetLaunchProfileSettings(Path.GetDirectoryName(projectFullPath)!, Path.GetFileNameWithoutExtension(projectFullPath), project.
GetPropertyValue
(ProjectProperties.AppDesignerFolder), buildOptions, profileName: null);
655
_ = bool.TryParse(project.
GetPropertyValue
(ProjectProperties.UseArtifactsOutput), out bool useArtifactsOutput);
656
string artifactsPath = project.
GetPropertyValue
(ProjectProperties.ArtifactsPath);
667
project.
GetPropertyValue
(ProjectProperties.TargetPath),
672
project.
GetPropertyValue
(ProjectProperties.ArtifactsProjectName),
673
project.
GetPropertyValue
(ProjectProperties.ArtifactsPivots));
Extensions\ProjectInstanceExtensions.cs (5)
13
var projectGuidProperty = projectInstance.
GetPropertyValue
("ProjectGuid");
22
string projectTypeGuid = projectInstance.
GetPropertyValue
("DefaultProjectTypeGuid");
32
return (projectInstance.
GetPropertyValue
("Platforms") ?? "")
40
string foundConfig = projectInstance.
GetPropertyValue
("Configurations") ?? "Debug;Release";
76
return projectInstance.
GetPropertyValue
(propertyName)
ReleasePropertyProjectLocator.cs (2)
75
string propertyToCheckValue = project.
GetPropertyValue
(propertyToCheck);
183
string pReleasePropertyValue = projectData.
GetPropertyValue
(propertyToCheck);
dotnet-aot (5)
src\sdk\src\Cli\dotnet\Extensions\ProjectInstanceExtensions.cs (5)
13
var projectGuidProperty = projectInstance.
GetPropertyValue
("ProjectGuid");
22
string projectTypeGuid = projectInstance.
GetPropertyValue
("DefaultProjectTypeGuid");
32
return (projectInstance.
GetPropertyValue
("Platforms") ?? "")
40
string foundConfig = projectInstance.
GetPropertyValue
("Configurations") ?? "Debug;Release";
76
return projectInstance.
GetPropertyValue
(propertyName)
Microsoft.Build (10)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
692
_loggingService.LogComment(buildEventContext, MessageImportance.High, "ProjectCacheHitWithOutputs", buildRequest.ProjectInstance!.
GetPropertyValue
(ReservedPropertyNames.projectName));
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
1564
FileClassifier.Shared.RegisterKnownImmutableLocations(project.
GetPropertyValue
);
Construction\Solution\SolutionProjectGenerator.cs (2)
1155
string directProjectToolsVersion = traversalProject.
GetPropertyValue
("ProjectToolsVersion");
2143
properties[property.Item1] = EscapingUtilities.Escape(traversalProject.
GetPropertyValue
(property.Item1));
Graph\ProjectInterpretation.cs (6)
208
string targetFrameworksValue = projectInstanceForDiscovery.
GetPropertyValue
(PropertyNames.TargetFrameworks);
227
string targetFrameworkValue = projectInstanceForDiscovery.
GetPropertyValue
(PropertyNames.TargetFramework);
253
return project.
GetPropertyValue
(GetInnerBuildPropertyName(project));
258
return project.
GetPropertyValue
(PropertyNames.InnerBuildProperty);
263
return project.
GetPropertyValue
(project.
GetPropertyValue
(PropertyNames.InnerBuildPropertyValues));
Microsoft.CodeAnalysis.ExternalAccess.HotReload (1)
Api\HotReloadMSBuildWorkspace.ProjectFileInfoProvider.cs (1)
45
getBuildProjects(projectPath).instances.SelectAsArray(static instance => instance.
GetPropertyValue
(PropertyNames.TargetPath)));
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
MSBuild\ProjectFile\ProjectInstance.cs (1)
41
return projectInstance.
GetPropertyValue
(propertyName);
Microsoft.DotNet.HotReload.Watch (8)
Build\ProjectGraphUtilities.cs (8)
23
=> project.
GetPropertyValue
(PropertyNames.TargetFramework);
32
return new FrameworkName(projectNode.ProjectInstance.
GetPropertyValue
(PropertyNames.TargetFrameworkMoniker)).Version;
50
=> IsNetCoreApp(projectNode.ProjectInstance.
GetPropertyValue
(PropertyNames.TargetFrameworkIdentifier));
59
=> project.
GetPropertyValue
(PropertyNames.TargetPath) is { Length: >0 } path ? Path.GetDirectoryName(Path.Combine(project.Directory, NormalizeSeparators(path))) : null;
62
=> project.
GetPropertyValue
(PropertyNames.TargetName);
68
=> project.
GetPropertyValue
(PropertyNames.IntermediateOutputPath) is { Length: >0 } path ? Path.Combine(project.Directory, NormalizeSeparators(path)) : null;
87
=> project.
GetPropertyValue
(propertyName).Split(';', StringSplitOptions.TrimEntries | StringSplitOptions.RemoveEmptyEntries);
93
=> project.
GetPropertyValue
(propertyName) is { Length: >0 } value ? bool.TryParse(value, out var result) && result : defaultValue;
Microsoft.DotNet.ProjectTools (1)
BuildService.cs (1)
115
public ValueTask<string> GetPropertyValueAsync(string propertyName) => new(inner.
GetPropertyValue
(propertyName));
MSBuild (4)
XMake.cs (4)
1386
outputStream.WriteLine(project.
GetPropertyValue
(getProperty[0]));
1391
jsonOutputFormatter.AddPropertiesInJsonFormat(getProperty, property => project.
GetPropertyValue
(property));
1419
outputStream.WriteLine(builtProject.
GetPropertyValue
(getProperty[0]));
1424
jsonOutputFormatter.AddPropertiesInJsonFormat(getProperty, property => builtProject.
GetPropertyValue
(property));
NuGet.Build.Tasks.Console (2)
MSBuildProjectInstance.cs (1)
54
protected override string GetPropertyValue(string name) => _projectInstance.
GetPropertyValue
(name);
TargetFrameworkAdapter.cs (1)
34
var value = _projectInstance.
GetPropertyValue
(propertyName).Trim();