1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
|
namespace a = "http://relaxng.org/ns/compatibility/annotations/1.0"
default namespace mstns = "http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd"
namespace rng = "http://relaxng.org/ns/structure/1.0"
dependency =
attribute id { xsd:string },
attribute version { xsd:string }?,
attribute include { xsd:string }?,
attribute exclude { xsd:string }?
dependencyGroup =
element dependency { dependency }*,
attribute targetFramework { xsd:string }?
reference = attribute file { xsd:string }
contentFileEntries =
attribute include { xsd:string },
attribute exclude { xsd:string }?,
attribute buildAction { xsd:string }?,
attribute copyToOutput { xsd:boolean }?,
attribute flatten { xsd:boolean }?
referenceGroup =
element reference { reference }+,
attribute targetFramework { xsd:string }?
frameworkReference = attribute name { xsd:string }
frameworkReferenceGroup =
element frameworkReference { frameworkReference }*,
attribute targetFramework { xsd:string }
start |= starting_package
starting_package =
element package {
element metadata {
(element id { xsd:string }
& element version { xsd:string }
& element title { xsd:string }?
& element authors { xsd:string }
& element owners { xsd:string }?
& element licenseUrl { xsd:anyURI }?
& element projectUrl { xsd:anyURI }?
& element iconUrl { xsd:anyURI }?
& element requireLicenseAcceptance { xsd:boolean }?
& element developmentDependency { xsd:boolean }?
& element description { xsd:string }
& element summary { xsd:string }?
& element releaseNotes { xsd:string }?
& (element copyright { xsd:string }?)
>> a:documentation [
"\x{a}" ~
" default value is : en-US"
]
& element language { xsd:string }?
& element tags { xsd:string }?
& element serviceable { xsd:boolean }?
& element icon { xsd:string }?
& element readme { xsd:string }?
& element repository {
attribute type { xsd:string }?,
attribute url { xsd:anyURI }?,
attribute branch { xsd:string }?,
attribute commit { xsd:string }?
}?
& element license {
xsd:string,
attribute type { xsd:string },
attribute version { xsd:string }?
}?
& element packageTypes {
element packageType {
attribute name { xsd:string },
attribute version { xsd:string }?
}*
}?
& element dependencies {
(element dependency { dependency }
| element group { dependencyGroup })*
}?
& element frameworkAssemblies {
element frameworkAssembly {
attribute assemblyName { xsd:string },
attribute targetFramework { xsd:string }?
}*
}?
& element frameworkReferences {
element group { frameworkReferenceGroup }*
}?
& element references {
(element reference { reference }
| element group { referenceGroup })*
}?
& element contentFiles {
(element files { contentFileEntries })*
}?),
attribute minClientVersion { xsd:string }?
},
element files {
element file {
attribute src { xsd:string },
attribute target { xsd:string }?,
attribute exclude { xsd:string }?
}*
}?
}
|