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