16 references to sdk
Microsoft.Build (16)
Construction\ProjectImportElement.cs (4)
74get => FileUtilities.FixFilePath(GetAttributeValue(XMakeAttributes.sdk)); 77ErrorUtilities.VerifyThrowArgumentLength(value, XMakeAttributes.sdk); 80SetOrRemoveAttribute(XMakeAttributes.sdk, value, "Set Import Sdk {0}", value); 118public ElementLocation SdkLocation => GetAttributeLocation(XMakeAttributes.sdk);
Construction\ProjectRootElement.cs (3)
509get => GetAttributeValue(XMakeAttributes.sdk); 512set => SetOrRemoveAttribute(XMakeAttributes.sdk, value, "Set project Sdk to '{0}'", value); 662public ElementLocation SdkLocation => GetAttributeLocation(XMakeAttributes.sdk);
Evaluation\Preprocessor.cs (6)
281string importSdk = ((XmlElement)child).GetAttribute(XMakeAttributes.sdk); 282string sdk = importSdk.Length > 0 ? $" {XMakeAttributes.sdk}=\"{importSdk}\"" : String.Empty; 285string projectSdk = source.NodeType == XmlNodeType.Element && String.Equals(XMakeElements.project, source.Name, StringComparison.Ordinal) ? ((XmlElement)source).GetAttribute(XMakeAttributes.sdk) : String.Empty; 309$"\r\n This import was added implicitly because the {XMakeElements.project} element's {XMakeAttributes.sdk} attribute specified \"{importSdk}\"."; 350if (clone.NodeType == XmlNodeType.Element && String.Equals(XMakeElements.project, child.Name, StringComparison.Ordinal) && clone.Attributes?[XMakeAttributes.sdk] != null) 352clone.Attributes.Remove(clone.Attributes[XMakeAttributes.sdk]);
Evaluation\ProjectParser.cs (3)
46private static readonly HashSet<string> ValidAttributesOnImport = new HashSet<string> { XMakeAttributes.condition, XMakeAttributes.label, XMakeAttributes.project, XMakeAttributes.sdk, XMakeAttributes.sdkVersion, XMakeAttributes.sdkMinimumVersion }; 461if (element.HasAttribute(XMakeAttributes.sdk)) 464ProjectXmlUtilities.GetAttributeValue(element, XMakeAttributes.sdk, nullIfNotExists: true),