1 write to Name
Microsoft.Build.Framework (1)
Sdk\SdkReference.cs (1)
27
Name
= name;
66 references to Name
Microsoft.Build (21)
BackEnd\Components\SdkResolution\CachingSdkResolverService.cs (4)
44
MSBuildEventSource.Log.CachedSdkResolverServiceResolveSdkStart(sdk.
Name
, solutionPath ?? string.Empty, projectPath ?? string.Empty);
62
sdk.
Name
,
79
loggingContext.LogWarning(null, new BuildEventFileInfo(sdkReferenceLocation), "ReferencingMultipleVersionsOfTheSameSdk", sdk.
Name
, result.Version, result.ElementLocation, sdk.Version);
82
MSBuildEventSource.Log.CachedSdkResolverServiceResolveSdkStop(sdk.
Name
, solutionPath ?? string.Empty, projectPath ?? string.Empty, result.Success, wasResultCached);
BackEnd\Components\SdkResolution\DefaultSdkResolver.cs (2)
33
string sdkPath = Path.Combine(BuildEnvironmentHelper.Instance.MSBuildSDKsPath, sdk.
Name
, "Sdk");
37
: factory.IndicateFailure([ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("DefaultSDKResolverError", sdk.
Name
, sdkPath)], null);
BackEnd\Components\SdkResolution\OutOfProcNodeSdkResolverService.cs (4)
71
MSBuildEventSource.Log.OutOfProcSdkResolverServiceRequestSdkPathFromMainNodeStart(submissionId, sdk.
Name
, solutionPath, projectPath);
75
sdk.
Name
,
88
loggingContext.LogWarning(null, new BuildEventFileInfo(sdkReferenceLocation), "ReferencingMultipleVersionsOfTheSameSdk", sdk.
Name
, sdkResult.Version, sdkResult.ElementLocation, sdk.Version);
91
MSBuildEventSource.Log.OutOfProcSdkResolverServiceRequestSdkPathFromMainNodeStop(submissionId, sdk.
Name
, solutionPath, projectPath, _lastResponse.Success, wasResultCached);
BackEnd\Components\SdkResolution\SdkResolverRequest.cs (1)
73
return new SdkResolverRequest(submissionId, sdkReference.
Name
, sdkReference.Version, sdkReference.MinimumVersion, buildEventContext, elementLocation, solutionPath, projectPath, interactive, isRunningInVisualStudio);
BackEnd\Components\SdkResolution\SdkResolverService.cs (5)
183
if (manifest.ResolvableSdkRegex.IsMatch(sdk.
Name
))
190
ErrorUtilities.ThrowInternalError("Timeout exceeded matching sdk \"{0}\" to <ResolvableSdkPattern> from sdk resolver manifest {1}.", ex, sdk.
Name
, manifest.DisplayName);
252
loggingContext.LogError(new BuildEventFileInfo(sdkReferenceLocation), "FailedToResolveSDK", sdk.
Name
, string.Join($"{Environment.NewLine} ", errors));
347
MSBuildEventSource.Log.SdkResolverResolveSdkStop(sdkResolver.Name, sdk.
Name
, solutionPath ?? string.Empty, projectPath ?? string.Empty, result?.Path ?? string.Empty, result?.Success ?? false);
363
loggingContext.LogWarning(null, new BuildEventFileInfo(sdkReferenceLocation), "SdkResultVersionDifferentThanReference", sdk.
Name
, sdk.Version, result.Version);
BackEnd\Components\SdkResolution\TranslationHelpers.cs (1)
22
name = sdkReference.
Name
;
Construction\ProjectImportElement.cs (2)
93
if (UpdateSdkReference(SdkReference?.
Name
, version: value, SdkReference?.MinimumVersion))
108
if (UpdateSdkReference(SdkReference?.
Name
, SdkReference?.Version, minimumVersion: value))
Evaluation\Evaluator.cs (2)
1738
if (HasProperty(sdkReference.
Name
, compareInfo) ||
1780
EvaluateProperty(sdkReference.
Name
, sdkReferenceOrigin, _expander, mode),
Microsoft.Build.Engine.OM.UnitTests (2)
ObjectModelRemoting\Helpers\ViewValidation.evaluation.cs (2)
266
Assert.Equal(real.
Name
, view.
Name
);
Microsoft.Build.Engine.UnitTests (31)
BackEnd\SdkResolverService_Tests.cs (8)
62
result.SdkReference.
Name
.ShouldBe("notfound");
117
e.Sdk.
Name
.ShouldBe("1sdkName");
571
result.Key.ShouldBe(sdk.
Name
);
760
if (sdk.
Name
.StartsWith("1"))
779
if (sdk.
Name
.StartsWith("2"))
798
if (sdk.
Name
.StartsWith("11"))
817
if (sdk.
Name
.StartsWith("2"))
836
if (sdkReference.
Name
.Equals("notfound"))
Construction\ProjectImportElement_Tests.cs (14)
32
importElement.SdkReference.
Name
.ShouldBe("My.Sdk");
42
importElement.SdkReference.
Name
.ShouldBe("My.Sdk");
48
importElement.SdkReference.
Name
.ShouldBe("Some.Other.Sdk");
69
importElement.SdkReference.
Name
.ShouldBe("My.Sdk");
78
importElement.SdkReference.
Name
.ShouldBe("My.Sdk");
85
importElement.SdkReference.
Name
.ShouldBe("My.Sdk");
106
importElement.SdkReference.
Name
.ShouldBe("My.Sdk");
113
importElement.SdkReference.
Name
.ShouldBe("My.Sdk");
120
importElement.SdkReference.
Name
.ShouldBe("My.Sdk");
130
importElement.SdkReference.
Name
.ShouldBe("Some.Other.Sdk");
138
importElement.SdkReference.
Name
.ShouldBe("Some.Other.Sdk");
146
importElement.SdkReference.
Name
.ShouldBe("Some.Other.Sdk");
152
importElement.SdkReference.
Name
.ShouldBe("Some.Other.Sdk");
158
importElement.SdkReference.
Name
.ShouldBe("Some.Other.Sdk");
Evaluation\ProjectSdkImplicitImport_Tests.cs (4)
456
sdk.
Name
.ShouldBe(SdkName);
530
importingElement.SdkReference.
Name
.ShouldBe(SdkName);
788
private const string ErrorName = ResolverName + "/Error/" + nameof(SdkReference.
Name
);
805
return sdk.
Name
switch
InternalEngineHelpers.cs (5)
48
_resultMap = new Dictionary<string, SdkResult> { [result.SdkReference.
Name
] = result };
72
ResolvedCalls.AddOrUpdate(sdkReference.
Name
, k => 1, (k, c) => c + 1);
74
return _resultMap.TryGetValue(sdkReference.
Name
, out var result)
148
return _mapping.ContainsKey(sdkReference.
Name
)
149
? factory.IndicateSuccess(_mapping[sdkReference.
Name
], null)
Microsoft.Build.Framework (7)
Sdk\SdkReference.cs (7)
66
return string.Equals(
Name
, other.
Name
, StringComparison.OrdinalIgnoreCase) &&
136
var hashCode = (
Name
!= null ?
Name
.ToLowerInvariant().GetHashCode() : 0);
148
return
Name
;
152
$"{
Name
}/min={MinimumVersion}" :
153
$"{
Name
}/{Version}";
Microsoft.Build.Framework.UnitTests (4)
SdkReference_Tests.cs (4)
21
sdk.
Name
.ShouldBe("Name");
34
sdk.
Name
.ShouldBe("Name");
48
sdk.
Name
.ShouldBe("Name");
62
sdk.
Name
.ShouldBe("Name");
PresentationBuildTasks (1)
Microsoft\Build\Tasks\Windows\GenerateTemporaryTargetAssembly.cs (1)
890
sdkAttributeProps.Value = sdkReference.
Name
;