prebuild-1.7.xsd 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://dnpb.sourceforge.net/schemas/prebuild-1.7.xsd" xmlns="http://dnpb.sourceforge.net/schemas/prebuild-1.7.xsd">
  3. <xs:annotation>
  4. <xs:documentation>
  5. Copyright (c) 2004-2007
  6. Matthew Holmes (calefaction at houston . rr . com),
  7. Dan Moorehead (dan05a at gmail . com),
  8. David Hudson (jendave at yahoo dot com),
  9. C.J. Adams-Collier (cjac at colliertech dot com)
  10. .NET Prebuild is a cross-platform XML-driven pre-build tool which
  11. allows developers to easily generate project or make files for major
  12. IDE's and .NET development tools including: Visual Studio .NET 2002,
  13. 2003, and 2005, SharpDevelop, MonoDevelop, NAnt, Xcode and the GNU Autotools.
  14. BSD License:
  15. Redistribution and use in source and binary forms, with or without modification, are permitted
  16. provided that the following conditions are met:
  17. * Redistributions of source code must retain the above copyright notice, this list of conditions
  18. and the following disclaimer.
  19. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions
  20. and the following disclaimer in the documentation and/or other materials provided with the
  21. distribution.
  22. * The name of the author may not be used to endorse or promote products derived from this software
  23. without specific prior written permission.
  24. THIS SOFTWARE IS PROVIDED BY THE AUTHOR 'AS IS' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
  25. BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  26. ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  27. EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  28. OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
  29. OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
  30. IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  31. </xs:documentation>
  32. </xs:annotation>
  33. <xs:element name="Prebuild">
  34. <xs:complexType>
  35. <xs:sequence>
  36. <xs:element ref="Process" minOccurs="0" maxOccurs="unbounded" />
  37. <xs:element ref="Solution" minOccurs="1" maxOccurs="unbounded" />
  38. </xs:sequence>
  39. <xs:attribute name="version" />
  40. <xs:attribute name="checkOsVars" />
  41. </xs:complexType>
  42. </xs:element>
  43. <xs:element name="Process" type="xs:string" />
  44. <xs:element name="Solution">
  45. <xs:complexType>
  46. <xs:sequence>
  47. <xs:element ref="Configuration" minOccurs="1" maxOccurs="unbounded" />
  48. <xs:element ref="Process" minOccurs="0" maxOccurs="unbounded" />
  49. <xs:element ref="Options" minOccurs="0" />
  50. <xs:element ref="Files" minOccurs="0" />
  51. <xs:element ref="Project" minOccurs="0" maxOccurs="unbounded" />
  52. <xs:element ref="Cleanup" minOccurs="0" maxOccurs="1" />
  53. <xs:element ref="DatabaseProject" minOccurs="0" maxOccurs="unbounded" />
  54. <xs:element ref="EmbeddedSolution" minOccurs="0" maxOccurs="unbounded" />
  55. </xs:sequence>
  56. <xs:attribute name="name" type="xs:string" use="required" />
  57. <xs:attribute name="activeConfig" type="xs:string" default="Debug" />
  58. <xs:attribute name="path" type="xs:string" default="" />
  59. <xs:attribute name="version" type="xs:string" default="1.0.0" />
  60. </xs:complexType>
  61. </xs:element>
  62. <xs:element name="EmbeddedSolution">
  63. <xs:complexType>
  64. <xs:sequence>
  65. <xs:element ref="Process" minOccurs="0" maxOccurs="unbounded" />
  66. <xs:element ref="Files" minOccurs="0" />
  67. <xs:element ref="Project" minOccurs="0" maxOccurs="unbounded" />
  68. <xs:element ref="DatabaseProject" minOccurs="0" maxOccurs="unbounded" />
  69. <xs:element ref="EmbeddedSolution" minOccurs="0" maxOccurs="unbounded" />
  70. </xs:sequence>
  71. <xs:attribute name="name" type="xs:string" use="required" />
  72. <xs:attribute name="activeConfig" type="xs:string" default="Debug" />
  73. <xs:attribute name="path" type="xs:string" default="" />
  74. <xs:attribute name="version" type="xs:string" default="1.0.0" />
  75. </xs:complexType>
  76. </xs:element>
  77. <xs:element name="DatabaseProject">
  78. <xs:complexType>
  79. <xs:sequence>
  80. <xs:element name="Author" type="xs:string" minOccurs="0" maxOccurs="unbounded" />
  81. <xs:element ref="DatabaseReference" minOccurs="0" maxOccurs="unbounded" />
  82. </xs:sequence>
  83. <xs:attribute name="name" type="xs:string" use="required" />
  84. <xs:attribute name="path" type="xs:string" />
  85. </xs:complexType>
  86. </xs:element>
  87. <xs:element name="DatabaseReference">
  88. <xs:complexType>
  89. <xs:attribute name="name" type="xs:string" use="required" />
  90. <xs:attribute name="providerId" type="xs:string" />
  91. <xs:attribute name="providerName" type="xs:string" />
  92. <xs:attribute name="connectionString" type="xs:string" use="required" />
  93. </xs:complexType>
  94. </xs:element>
  95. <xs:element name="Project">
  96. <xs:complexType>
  97. <xs:sequence>
  98. <xs:element name="Author" type="xs:string" minOccurs="0" maxOccurs="unbounded" />
  99. <xs:element name="Description" type="xs:string" minOccurs="0" maxOccurs="1" />
  100. <xs:element ref="Configuration" minOccurs="1" maxOccurs="unbounded" />
  101. <xs:element name="ReferencePath" type="xs:string" minOccurs="0" maxOccurs="unbounded" />
  102. <xs:element name="Reference" minOccurs="0" maxOccurs="unbounded">
  103. <xs:complexType>
  104. <xs:attribute name="name" type="xs:string" use="required" />
  105. <xs:attribute name="path" type="xs:string" />
  106. <xs:attribute name="localCopy" type="xs:boolean" />
  107. <xs:attribute name="version" type="xs:string" />
  108. </xs:complexType>
  109. </xs:element>
  110. <xs:element ref="Files" />
  111. </xs:sequence>
  112. <xs:attribute name="name" type="xs:string" use="required" />
  113. <xs:attribute name="designerFolder" type="xs:string" default="" />
  114. <xs:attribute name="filterGroups" type="xs:string" default="" />
  115. <xs:attribute name="path" type="xs:string" default="" />
  116. <xs:attribute name="icon" type="xs:string" default="" />
  117. <xs:attribute name="configFile" type="xs:string" default="" />
  118. <xs:attribute name="version" type="xs:string" default="1.0.0" />
  119. <xs:attribute name="guid" type="xs:string"/>
  120. <xs:attribute name="language" default="C#">
  121. <xs:simpleType>
  122. <xs:restriction base="xs:string">
  123. <xs:enumeration value="C#" />
  124. <xs:enumeration value="VB.NET" />
  125. </xs:restriction>
  126. </xs:simpleType>
  127. </xs:attribute>
  128. <xs:attribute name="type" default="Exe">
  129. <xs:simpleType>
  130. <xs:restriction base="xs:string">
  131. <xs:enumeration value="Exe" />
  132. <xs:enumeration value="WinExe" />
  133. <xs:enumeration value="Library" />
  134. <xs:enumeration value="Web" />
  135. </xs:restriction>
  136. </xs:simpleType>
  137. </xs:attribute>
  138. <xs:attribute name="runtime" default="Microsoft">
  139. <xs:simpleType>
  140. <xs:restriction base="xs:string">
  141. <xs:enumeration value="Microsoft" />
  142. <xs:enumeration value="Mono" />
  143. </xs:restriction>
  144. </xs:simpleType>
  145. </xs:attribute>
  146. <xs:attribute name="frameworkVersion" default="v2_0">
  147. <xs:simpleType>
  148. <xs:restriction base="xs:string">
  149. <xs:enumeration value="v2_0" />
  150. <xs:enumeration value="v3_0" />
  151. <xs:enumeration value="v3_5" />
  152. </xs:restriction>
  153. </xs:simpleType>
  154. </xs:attribute>
  155. <xs:attribute name="startupObject" type="xs:string" default="" />
  156. <xs:attribute name="rootNamespace" type="xs:string" />
  157. <xs:attribute name="debugStartParameters" type="xs:string" />
  158. <xs:attribute name="assemblyName" type="xs:string" />
  159. <xs:attribute name="generateAssemblyInfoFile" type="xs:boolean" default="false" />
  160. </xs:complexType>
  161. </xs:element>
  162. <xs:element name="Configuration">
  163. <xs:complexType>
  164. <xs:sequence>
  165. <xs:element ref="Options" minOccurs="0" />
  166. </xs:sequence>
  167. <xs:attribute name="name" type="xs:string" use="required" />
  168. </xs:complexType>
  169. </xs:element>
  170. <xs:element name="Options">
  171. <xs:complexType>
  172. <xs:all>
  173. <xs:element name="CompilerDefines" type="xs:string" minOccurs="0" />
  174. <xs:element name="OptimizeCode" type="xs:boolean" minOccurs="0" />
  175. <xs:element name="CheckUnderflowOverflow" type="xs:boolean" minOccurs="0" />
  176. <xs:element name="AllowUnsafe" type="xs:boolean" minOccurs="0" />
  177. <xs:element name="PreBuildEvent" type="xs:string" minOccurs="0" />
  178. <xs:element name="PostBuildEvent" type="xs:string" minOccurs="0" />
  179. <xs:element name="RunPostBuildEvent" minOccurs="0" default="OnBuildSuccess">
  180. <xs:simpleType>
  181. <xs:restriction base="xs:string">
  182. <xs:enumeration value="OnBuildSuccess" />
  183. <xs:enumeration value="Always" />
  184. <xs:enumeration value="OnOutputUpdated" />
  185. </xs:restriction>
  186. </xs:simpleType>
  187. </xs:element>
  188. <xs:element name="RunScript" type="xs:string" minOccurs="0" />
  189. <xs:element name="PreBuildEventArgs" type="xs:string" minOccurs="0" />
  190. <xs:element name="PostBuildEventArgs" type="xs:string" minOccurs="0" />
  191. <xs:element name="WarningLevel" minOccurs="0">
  192. <xs:simpleType>
  193. <xs:restriction base="xs:integer">
  194. <xs:minInclusive value="0" />
  195. <xs:maxInclusive value="4" />
  196. </xs:restriction>
  197. </xs:simpleType>
  198. </xs:element>
  199. <xs:element name="WarningsAsErrors" type="xs:boolean" minOccurs="0" />
  200. <xs:element name="SuppressWarnings" type="xs:string" minOccurs="0" />
  201. <xs:element name="OutputPath" type="xs:string" minOccurs="0" />
  202. <xs:element name="GenerateDocumentation" type="xs:boolean" minOccurs="0" />
  203. <xs:element name="XmlDocFile" type="xs:string" minOccurs="0" />
  204. <xs:element name="DebugInformation" type="xs:boolean" minOccurs="0" />
  205. <xs:element name="RegisterComInterop" type="xs:boolean" minOccurs="0" />
  206. <xs:element name="RemoveIntegerChecks" type="xs:boolean" minOccurs="0" />
  207. <xs:element name="IncrementalBuild" type="xs:boolean" minOccurs="0" />
  208. <xs:element name="BaseAddress" type="xs:string" minOccurs="0" />
  209. <xs:element name="FileAlignment" type="xs:integer" minOccurs="0" />
  210. <xs:element name="NoStdLib" type="xs:boolean" minOccurs="0" />
  211. <xs:element name="KeyFile" type="xs:string" minOccurs="0" />
  212. </xs:all>
  213. </xs:complexType>
  214. </xs:element>
  215. <xs:element name="Files">
  216. <xs:complexType>
  217. <xs:sequence>
  218. <xs:element ref="File" minOccurs="0" maxOccurs="unbounded" />
  219. <xs:element ref="Match" minOccurs="0" maxOccurs="unbounded" />
  220. </xs:sequence>
  221. </xs:complexType>
  222. </xs:element>
  223. <xs:element name="File">
  224. <xs:complexType>
  225. <xs:simpleContent>
  226. <xs:extension base="xs:string">
  227. <xs:attribute name="resourceName" type="xs:string" default="" />
  228. <xs:attribute name="buildAction" default="Compile">
  229. <xs:simpleType>
  230. <xs:restriction base="xs:string">
  231. <xs:enumeration value="None" />
  232. <xs:enumeration value="Compile" />
  233. <xs:enumeration value="Content" />
  234. <xs:enumeration value="EmbeddedResource" />
  235. </xs:restriction>
  236. </xs:simpleType>
  237. </xs:attribute>
  238. <xs:attribute name="subType" default="Code">
  239. <xs:simpleType>
  240. <xs:restriction base="xs:string">
  241. <xs:enumeration value="Code" />
  242. <xs:enumeration value="CodeBehind" />
  243. <xs:enumeration value="Component" />
  244. <xs:enumeration value="Form" />
  245. <xs:enumeration value="Settings" />
  246. <xs:enumeration value="UserControl" />
  247. </xs:restriction>
  248. </xs:simpleType>
  249. </xs:attribute>
  250. <xs:attribute name="link" type="xs:boolean" />
  251. <xs:attribute name="copyToOutput" default="Never">
  252. <xs:simpleType>
  253. <xs:restriction base="xs:string">
  254. <xs:enumeration value="Never" />
  255. <xs:enumeration value="Always" />
  256. <xs:enumeration value="PreserveNewest" />
  257. </xs:restriction>
  258. </xs:simpleType>
  259. </xs:attribute>
  260. <xs:attribute name="preservePath" type="xs:boolean" />
  261. <xs:attribute name="linkPath" type="xs:string" />
  262. </xs:extension>
  263. </xs:simpleContent>
  264. </xs:complexType>
  265. </xs:element>
  266. <xs:element name="Match">
  267. <xs:complexType>
  268. <xs:sequence>
  269. <xs:element ref="Exclude" minOccurs="0" maxOccurs="unbounded" />
  270. </xs:sequence>
  271. <xs:attribute name="path" type="xs:string" />
  272. <xs:attribute name="pattern" type="xs:string" use="required" />
  273. <xs:attribute name="recurse" type="xs:boolean" default="false" />
  274. <xs:attribute name="useRegex" type="xs:boolean" default="false" />
  275. <xs:attribute name="buildAction" default="Compile">
  276. <xs:simpleType>
  277. <xs:restriction base="xs:string">
  278. <xs:enumeration value="None" />
  279. <xs:enumeration value="Compile" />
  280. <xs:enumeration value="Content" />
  281. <xs:enumeration value="EmbeddedResource" />
  282. </xs:restriction>
  283. </xs:simpleType>
  284. </xs:attribute>
  285. <xs:attribute name="resourceName" type="xs:string" default="" />
  286. <xs:attribute name="subType" default="Code">
  287. <xs:simpleType>
  288. <xs:restriction base="xs:string">
  289. <xs:enumeration value="Code" />
  290. <xs:enumeration value="CodeBehind" />
  291. <xs:enumeration value="Component" />
  292. <xs:enumeration value="Designer" />
  293. <xs:enumeration value="Form" />
  294. <xs:enumeration value="Settings" />
  295. <xs:enumeration value="UserControl" />
  296. </xs:restriction>
  297. </xs:simpleType>
  298. </xs:attribute>
  299. <xs:attribute name="link" type="xs:boolean" />
  300. <xs:attribute name="copyToOutput" default="Never">
  301. <xs:simpleType>
  302. <xs:restriction base="xs:string">
  303. <xs:enumeration value="Never" />
  304. <xs:enumeration value="Always" />
  305. <xs:enumeration value="PreserveNewest" />
  306. </xs:restriction>
  307. </xs:simpleType>
  308. </xs:attribute>
  309. <xs:attribute name="preservePath" type="xs:boolean" />
  310. <xs:attribute name="linkPath" type="xs:string" />
  311. </xs:complexType>
  312. </xs:element>
  313. <xs:element name="Exclude">
  314. <xs:complexType>
  315. <xs:attribute name="name" type="xs:string" />
  316. <xs:attribute name="pattern" type="xs:string" />
  317. </xs:complexType>
  318. </xs:element>
  319. <xs:element name="Cleanup">
  320. <xs:complexType>
  321. <xs:sequence>
  322. <xs:element ref="CleanFiles" minOccurs="1" maxOccurs="unbounded" />
  323. </xs:sequence>
  324. </xs:complexType>
  325. </xs:element>
  326. <xs:element name="CleanFiles">
  327. <xs:complexType>
  328. <xs:attribute name="pattern" type="xs:string" />
  329. </xs:complexType>
  330. </xs:element>
  331. </xs:schema>