59 references to XPaths
Microsoft.Build.Tasks.Core (59)
AddToWin32Manifest.cs (2)
186
XmlNode? assemblyNode = document.SelectSingleNode(
XPaths
.assemblyElement, xmlNamespaceManager);
212
XmlNode? assemblyNode = document.SelectSingleNode(
XPaths
.assemblyElement, xmlNamespaceManager);
GenerateApplicationManifest.cs (1)
463
XmlNode node = (XmlElement)document.SelectSingleNode(
XPaths
.requestedExecutionLevelPath, nsmgr);
ManifestUtil\ApplicationManifest.cs (1)
537
XmlNodeList nodes = document.SelectNodes(
XPaths
.configBindingRedirect, nsmgr);
ManifestUtil\AssemblyIdentity.cs (1)
232
var element = (XmlElement)document.SelectSingleNode(
XPaths
.assemblyIdentityPath, nsmgr);
ManifestUtil\Manifest.cs (7)
390
foreach (string xpath in
XPaths
.codebasePaths)
401
throw new InvalidOperationException(String.Format(System.Globalization.CultureInfo.InvariantCulture, "XPath not found: {0}",
XPaths
.codebasePaths[0]));
407
XmlNode publicKeyTokenNode = ((XmlAttribute)codeBaseNode).OwnerElement.SelectSingleNode(
XPaths
.dependencyPublicKeyTokenAttribute, nsmgr);
410
throw new InvalidOperationException(String.Format(System.Globalization.CultureInfo.InvariantCulture, "XPath not found: {0}",
XPaths
.dependencyPublicKeyTokenAttribute));
419
XmlNode hashNode = ((XmlAttribute)codeBaseNode).OwnerElement.SelectSingleNode(
XPaths
.hashElement, nsmgr);
426
XmlAttribute sizeAttribute = ((XmlAttribute)codeBaseNode).OwnerElement.Attributes[XmlUtil.TrimPrefix(
XPaths
.fileSizeAttribute)];
429
throw new InvalidOperationException(String.Format(System.Globalization.CultureInfo.InvariantCulture, "XPath not found: {0}",
XPaths
.fileSizeAttribute));
ManifestUtil\ManifestFormatter.cs (3)
51
if ((xpath.Equals(
XPaths
.languageAttribute1, StringComparison.Ordinal) || xpath.Equals(
52
XPaths
.languageAttribute2,
62
Array.BinarySearch(
XPaths
.emptyAttributeList, xpath) >= 0)
ManifestUtil\ManifestReader.cs (4)
30
XmlNodeList comNodes = document.SelectNodes(
XPaths
.comFilesPath, nsmgr);
33
XmlNode nameNode = comNode.SelectSingleNode(
XPaths
.fileNameAttribute, nsmgr);
36
XmlNodeList clsidNodes = comNode.SelectNodes(
XPaths
.clsidAttribute, nsmgr);
42
XmlNodeList tlbidNodes = comNode.SelectNodes(
XPaths
.tlbidAttribute, nsmgr);
ManifestUtil\TrustInfo.cs (40)
41
XmlAttribute sameSiteAttribute = (XmlAttribute)permissionSetElement.Attributes.GetNamedItem(XmlUtil.TrimPrefix(
XPaths
.sameSiteAttribute));
44
sameSiteAttribute = permissionSetElement.OwnerDocument.CreateAttribute(XmlUtil.TrimPrefix(
XPaths
.sameSiteAttribute));
71
var unrestrictedAttribute = (XmlAttribute)permissionSetElement.Attributes.GetNamedItem(XmlUtil.TrimPrefix(
XPaths
.unrestrictedAttribute));
76
unrestrictedAttribute = document.CreateAttribute(XmlUtil.TrimPrefix(
XPaths
.unrestrictedAttribute));
85
permissionSetElement.Attributes.RemoveNamedItem(XmlUtil.TrimPrefix(
XPaths
.unrestrictedAttribute));
93
var unrestrictedAttribute = (XmlAttribute)permissionSetElement.Attributes.GetNamedItem(XmlUtil.TrimPrefix(
XPaths
.unrestrictedAttribute));
96
unrestrictedAttribute = document.CreateAttribute(XmlUtil.TrimPrefix(
XPaths
.unrestrictedAttribute));
108
var idAttribute = (XmlAttribute)permissionSetElement.Attributes.GetNamedItem(XmlUtil.TrimPrefix(
XPaths
.idAttribute));
111
idAttribute = document.CreateAttribute(XmlUtil.TrimPrefix(
XPaths
.idAttribute));
128
XmlElement defaultAssemblyRequestElement = (XmlElement)permissionSetElement.ParentNode.SelectSingleNode(
XPaths
.defaultAssemblyRequestElement, nsmgr);
131
defaultAssemblyRequestElement = document.CreateElement(XmlUtil.TrimPrefix(
XPaths
.defaultAssemblyRequestElement), XmlNamespaces.asmv2);
134
XmlAttribute idrefAttribute = (XmlAttribute)permissionSetElement.Attributes.GetNamedItem(XmlUtil.TrimPrefix(
XPaths
.permissionSetReferenceAttribute));
137
idrefAttribute = document.CreateAttribute(XmlUtil.TrimPrefix(
XPaths
.permissionSetReferenceAttribute));
181
XmlElement trustInfoElement = _inputTrustInfoDocument.CreateElement(XmlUtil.TrimPrefix(
XPaths
.trustInfoElement), XmlNamespaces.asmv2);
196
XmlElement securityElement = (XmlElement)trustInfoElement?.SelectSingleNode(
XPaths
.securityElement, nsmgr);
197
XmlElement requestedPrivilegeElement = (XmlElement)securityElement?.SelectSingleNode(
XPaths
.requestedPrivilegeElement, nsmgr);
219
XmlElement requestedPrivilegeElement = document.CreateElement(XmlUtil.TrimPrefix(
XPaths
.requestedPrivilegeElement), XmlNamespaces.asmv3);
255
XmlElement inputRequestedExecutionLevel = (XmlElement)inputRequestedPrivilegeElement.SelectSingleNode(
XPaths
.requestedExecutionLevelElement, nsmgr);
297
XmlElement requestedExecutionLevelElement = document.CreateElement(XmlUtil.TrimPrefix(
XPaths
.requestedExecutionLevelElement), XmlNamespaces.asmv3);
321
var securityElement = (XmlElement)trustInfoElement.SelectSingleNode(
XPaths
.securityElement, nsmgr);
324
securityElement = document.CreateElement(XmlUtil.TrimPrefix(
XPaths
.securityElement), XmlNamespaces.asmv2);
327
XmlElement applicationRequestMinimumElement = (XmlElement)securityElement.SelectSingleNode(
XPaths
.applicationRequestMinimumElement, nsmgr);
330
applicationRequestMinimumElement = document.CreateElement(XmlUtil.TrimPrefix(
XPaths
.applicationRequestMinimumElement), XmlNamespaces.asmv2);
333
XmlElement permissionSetElement = (XmlElement)applicationRequestMinimumElement.SelectSingleNode(
XPaths
.permissionSetElement, nsmgr);
336
permissionSetElement = document.CreateElement(XmlUtil.TrimPrefix(
XPaths
.permissionSetElement), XmlNamespaces.asmv2);
338
XmlAttribute unrestrictedAttribute = document.CreateAttribute(XmlUtil.TrimPrefix(
XPaths
.unrestrictedAttribute), XmlNamespaces.asmv2);
448
Read(input,
XPaths
.trustInfoPath);
487
Read(input,
XPaths
.manifestTrustInfoPath);
498
XmlAttribute unrestrictedAttribute = (XmlAttribute)psElement.Attributes.GetNamedItem(XmlUtil.TrimPrefix(
XPaths
.unrestrictedAttribute));
510
XmlAttribute sameSiteAttribute = (XmlAttribute)psElement.Attributes.GetNamedItem(XmlUtil.TrimPrefix(
XPaths
.sameSiteAttribute));
711
XmlElement assemblyElement = (XmlElement)document.SelectSingleNode(
XPaths
.assemblyElement, nsmgr);
717
var trustInfoElement = (XmlElement)assemblyElement.SelectSingleNode(
XPaths
.trustInfoElement, nsmgr);
720
trustInfoElement = document.CreateElement(XmlUtil.TrimPrefix(
XPaths
.trustInfoElement), XmlNamespaces.asmv2);
727
XmlElement securityElement = (XmlElement)trustInfoElement.SelectSingleNode(
XPaths
.securityElement, nsmgr);
730
securityElement = document.CreateElement(XmlUtil.TrimPrefix(
XPaths
.securityElement), XmlNamespaces.asmv2);
733
XmlElement applicationRequestMinimumElement = (XmlElement)securityElement.SelectSingleNode(
XPaths
.applicationRequestMinimumElement, nsmgr);
736
applicationRequestMinimumElement = document.CreateElement(XmlUtil.TrimPrefix(
XPaths
.applicationRequestMinimumElement), XmlNamespaces.asmv2);
740
XmlNodeList permissionSetNodes = applicationRequestMinimumElement.SelectNodes(
XPaths
.permissionSetElement, nsmgr);
746
XmlElement fullTrustPermissionSetElement = document.CreateElement(XmlUtil.TrimPrefix(
XPaths
.permissionSetElement), XmlNamespaces.asmv2);
747
XmlAttribute unrestrictedAttribute = document.CreateAttribute(XmlUtil.TrimPrefix(
XPaths
.unrestrictedAttribute), XmlNamespaces.asmv2);