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)
462
XmlNode node = (XmlElement)document.SelectSingleNode(
XPaths
.requestedExecutionLevelPath, nsmgr);
ManifestUtil\ApplicationManifest.cs (1)
536
XmlNodeList nodes = document.SelectNodes(
XPaths
.configBindingRedirect, nsmgr);
ManifestUtil\AssemblyIdentity.cs (1)
243
var element = (XmlElement)document.SelectSingleNode(
XPaths
.assemblyIdentityPath, nsmgr);
ManifestUtil\Manifest.cs (7)
389
foreach (string xpath in
XPaths
.codebasePaths)
400
throw new InvalidOperationException(String.Format(System.Globalization.CultureInfo.InvariantCulture, "XPath not found: {0}",
XPaths
.codebasePaths[0]));
406
XmlNode publicKeyTokenNode = ((XmlAttribute)codeBaseNode).OwnerElement.SelectSingleNode(
XPaths
.dependencyPublicKeyTokenAttribute, nsmgr);
409
throw new InvalidOperationException(String.Format(System.Globalization.CultureInfo.InvariantCulture, "XPath not found: {0}",
XPaths
.dependencyPublicKeyTokenAttribute));
418
XmlNode hashNode = ((XmlAttribute)codeBaseNode).OwnerElement.SelectSingleNode(
XPaths
.hashElement, nsmgr);
425
XmlAttribute sizeAttribute = ((XmlAttribute)codeBaseNode).OwnerElement.Attributes[XmlUtil.TrimPrefix(
XPaths
.fileSizeAttribute)];
428
throw new InvalidOperationException(String.Format(System.Globalization.CultureInfo.InvariantCulture, "XPath not found: {0}",
XPaths
.fileSizeAttribute));
ManifestUtil\ManifestFormatter.cs (3)
50
if ((xpath.Equals(
XPaths
.languageAttribute1, StringComparison.Ordinal) || xpath.Equals(
51
XPaths
.languageAttribute2,
61
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)
40
XmlAttribute sameSiteAttribute = (XmlAttribute)permissionSetElement.Attributes.GetNamedItem(XmlUtil.TrimPrefix(
XPaths
.sameSiteAttribute));
43
sameSiteAttribute = permissionSetElement.OwnerDocument.CreateAttribute(XmlUtil.TrimPrefix(
XPaths
.sameSiteAttribute));
70
var unrestrictedAttribute = (XmlAttribute)permissionSetElement.Attributes.GetNamedItem(XmlUtil.TrimPrefix(
XPaths
.unrestrictedAttribute));
75
unrestrictedAttribute = document.CreateAttribute(XmlUtil.TrimPrefix(
XPaths
.unrestrictedAttribute));
84
permissionSetElement.Attributes.RemoveNamedItem(XmlUtil.TrimPrefix(
XPaths
.unrestrictedAttribute));
92
var unrestrictedAttribute = (XmlAttribute)permissionSetElement.Attributes.GetNamedItem(XmlUtil.TrimPrefix(
XPaths
.unrestrictedAttribute));
95
unrestrictedAttribute = document.CreateAttribute(XmlUtil.TrimPrefix(
XPaths
.unrestrictedAttribute));
107
var idAttribute = (XmlAttribute)permissionSetElement.Attributes.GetNamedItem(XmlUtil.TrimPrefix(
XPaths
.idAttribute));
110
idAttribute = document.CreateAttribute(XmlUtil.TrimPrefix(
XPaths
.idAttribute));
127
XmlElement defaultAssemblyRequestElement = (XmlElement)permissionSetElement.ParentNode.SelectSingleNode(
XPaths
.defaultAssemblyRequestElement, nsmgr);
130
defaultAssemblyRequestElement = document.CreateElement(XmlUtil.TrimPrefix(
XPaths
.defaultAssemblyRequestElement), XmlNamespaces.asmv2);
133
XmlAttribute idrefAttribute = (XmlAttribute)permissionSetElement.Attributes.GetNamedItem(XmlUtil.TrimPrefix(
XPaths
.permissionSetReferenceAttribute));
136
idrefAttribute = document.CreateAttribute(XmlUtil.TrimPrefix(
XPaths
.permissionSetReferenceAttribute));
180
XmlElement trustInfoElement = _inputTrustInfoDocument.CreateElement(XmlUtil.TrimPrefix(
XPaths
.trustInfoElement), XmlNamespaces.asmv2);
195
XmlElement securityElement = (XmlElement)trustInfoElement?.SelectSingleNode(
XPaths
.securityElement, nsmgr);
196
XmlElement requestedPrivilegeElement = (XmlElement)securityElement?.SelectSingleNode(
XPaths
.requestedPrivilegeElement, nsmgr);
218
XmlElement requestedPrivilegeElement = document.CreateElement(XmlUtil.TrimPrefix(
XPaths
.requestedPrivilegeElement), XmlNamespaces.asmv3);
254
XmlElement inputRequestedExecutionLevel = (XmlElement)inputRequestedPrivilegeElement.SelectSingleNode(
XPaths
.requestedExecutionLevelElement, nsmgr);
296
XmlElement requestedExecutionLevelElement = document.CreateElement(XmlUtil.TrimPrefix(
XPaths
.requestedExecutionLevelElement), XmlNamespaces.asmv3);
320
var securityElement = (XmlElement)trustInfoElement.SelectSingleNode(
XPaths
.securityElement, nsmgr);
323
securityElement = document.CreateElement(XmlUtil.TrimPrefix(
XPaths
.securityElement), XmlNamespaces.asmv2);
326
XmlElement applicationRequestMinimumElement = (XmlElement)securityElement.SelectSingleNode(
XPaths
.applicationRequestMinimumElement, nsmgr);
329
applicationRequestMinimumElement = document.CreateElement(XmlUtil.TrimPrefix(
XPaths
.applicationRequestMinimumElement), XmlNamespaces.asmv2);
332
XmlElement permissionSetElement = (XmlElement)applicationRequestMinimumElement.SelectSingleNode(
XPaths
.permissionSetElement, nsmgr);
335
permissionSetElement = document.CreateElement(XmlUtil.TrimPrefix(
XPaths
.permissionSetElement), XmlNamespaces.asmv2);
337
XmlAttribute unrestrictedAttribute = document.CreateAttribute(XmlUtil.TrimPrefix(
XPaths
.unrestrictedAttribute), XmlNamespaces.asmv2);
447
Read(input,
XPaths
.trustInfoPath);
486
Read(input,
XPaths
.manifestTrustInfoPath);
497
XmlAttribute unrestrictedAttribute = (XmlAttribute)psElement.Attributes.GetNamedItem(XmlUtil.TrimPrefix(
XPaths
.unrestrictedAttribute));
509
XmlAttribute sameSiteAttribute = (XmlAttribute)psElement.Attributes.GetNamedItem(XmlUtil.TrimPrefix(
XPaths
.sameSiteAttribute));
710
XmlElement assemblyElement = (XmlElement)document.SelectSingleNode(
XPaths
.assemblyElement, nsmgr);
716
var trustInfoElement = (XmlElement)assemblyElement.SelectSingleNode(
XPaths
.trustInfoElement, nsmgr);
719
trustInfoElement = document.CreateElement(XmlUtil.TrimPrefix(
XPaths
.trustInfoElement), XmlNamespaces.asmv2);
726
XmlElement securityElement = (XmlElement)trustInfoElement.SelectSingleNode(
XPaths
.securityElement, nsmgr);
729
securityElement = document.CreateElement(XmlUtil.TrimPrefix(
XPaths
.securityElement), XmlNamespaces.asmv2);
732
XmlElement applicationRequestMinimumElement = (XmlElement)securityElement.SelectSingleNode(
XPaths
.applicationRequestMinimumElement, nsmgr);
735
applicationRequestMinimumElement = document.CreateElement(XmlUtil.TrimPrefix(
XPaths
.applicationRequestMinimumElement), XmlNamespaces.asmv2);
739
XmlNodeList permissionSetNodes = applicationRequestMinimumElement.SelectNodes(
XPaths
.permissionSetElement, nsmgr);
745
XmlElement fullTrustPermissionSetElement = document.CreateElement(XmlUtil.TrimPrefix(
XPaths
.permissionSetElement), XmlNamespaces.asmv2);
746
XmlAttribute unrestrictedAttribute = document.CreateAttribute(XmlUtil.TrimPrefix(
XPaths
.unrestrictedAttribute), XmlNamespaces.asmv2);