1 write to SimpleName
Microsoft.Build.Tasks.Core (1)
ResolveSDKReference.cs (1)
738SimpleName = sdkName;
13 references to SimpleName
Microsoft.Build.Tasks.Core (11)
ResolveSDKReference.cs (11)
373if (reference.SupportsMultipleVersions != MultipleVersionSupport.Allow && !reference.SimpleName.Equals("Microsoft.VCLibs", StringComparison.InvariantCultureIgnoreCase)) 378if (!sdkNameToSDK.TryGetValue(reference.SimpleName, out HashSet<SDKReference> sdksWithSimpleName)) 380sdkNameToSDK.Add(reference.SimpleName, new HashSet<SDKReference> { reference }); 437if (sdkNameToSDK.TryGetValue(notCompatibleReference.SimpleName, out HashSet<SDKReference> referenceWithSameName)) 485string sdkSimpleName = referenceItem.SimpleName; 535var resolvedReference = sdkReferenceItems.Where(y => String.Equals(y.SimpleName, simpleName, StringComparison.OrdinalIgnoreCase) && String.Equals(y.Version, sdkVersion, StringComparison.OrdinalIgnoreCase)).DefaultIfEmpty(null).FirstOrDefault(); 740SDKName = $"{SimpleName}, Version={Version}"; 957return SimpleName.GetHashCode() ^ Version.GetHashCode(); 975bool simpleNameMatches = String.Equals(SimpleName, other.SimpleName, StringComparison.OrdinalIgnoreCase); 1438ResolvedItem.SetMetadata("SimpleName", SimpleName);
Microsoft.Build.Tasks.UnitTests (2)
ResolveSDKReference_Tests.cs (2)
339if (reference.SimpleName.Equals("Microsoft.VCLibs") && reference.Version.Equals("11.0")) 553Assert.Equal(simpleName, reference.SimpleName);