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