Compare commits
1229 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1e0a4690fc | |||
| 52163494db | |||
| 8416764a83 | |||
| 2d3eb8c208 | |||
| 3594693f4b | |||
| b99de245bf | |||
| 82fc1a5304 | |||
| f0aab6ae81 | |||
| 721f813d1e | |||
| 6c9e82e735 | |||
| f7ddb1ed49 | |||
| c0fd974cc1 | |||
| e9c4a031c9 | |||
| a159b50c05 | |||
| 3891e46549 | |||
| e7bcc642a9 | |||
| 4983990d39 | |||
| 2f6dada481 | |||
| ff5dc324fe | |||
| 096c5ad69f | |||
| 77ee87178e | |||
| a6997a5cb7 | |||
| 3b9bf7b0f9 | |||
| 158f4d0614 | |||
| 7a38970cf4 | |||
| 26a7bf8187 | |||
| 3ff1b01e46 | |||
| 36e803713c | |||
| a3e7f644de | |||
| 809badd1cf | |||
| da92ece774 | |||
| a531afb819 | |||
| 8dfeb1e616 | |||
| 1012a4814d | |||
| bae41cde14 | |||
| b3260f05c0 | |||
| e33a79ac65 | |||
| c4dbabf654 | |||
| 423643d66c | |||
| 4ccb655f73 | |||
| c8330d60f9 | |||
| a9aa3a04b5 | |||
| 0bffa8e3f4 | |||
| 436322f58c | |||
| e90c46dd78 | |||
| deda2534f8 | |||
| 8112c13857 | |||
| 57792de185 | |||
| e1f93029a5 | |||
| f64e0c7eb7 | |||
| bf024e9011 | |||
| 036b888d30 | |||
| 1838a8dac5 | |||
| 205bf5fe4e | |||
| a50e192ab7 | |||
| 9684255e6e | |||
| 72790d74f5 | |||
| bb70bee6ae | |||
| 0430e7966c | |||
| 2e9a52b1f8 | |||
| e6ccd8a5b5 | |||
| 7ae8b28466 | |||
| 527375b238 | |||
| 1929f60ea8 | |||
| b9cc2efc8c | |||
| bad284515c | |||
| 5b660d95f1 | |||
| 106ac44e64 | |||
| 64bb7e1db0 | |||
| 25b9ca3b0e | |||
| b928170103 | |||
| e25ee246fb | |||
| 8e8ec41dae | |||
| fb34c4716a | |||
| 29bf61b1f2 | |||
| 9803309e34 | |||
| 3a539629dc | |||
| 74b970d586 | |||
| 518898b04b | |||
| 99fe89addc | |||
| 668d4f9f91 | |||
| 90e73cb89f | |||
| dcd6477030 | |||
| 7d5589118f | |||
| 103efbdc27 | |||
| 9736aaafaa | |||
| bf3fa20a53 | |||
| f936f8b0dd | |||
| 1bd20c9b06 | |||
| 099b713947 | |||
| 165d9c7dff | |||
| 7934ba7ec4 | |||
| 60b6608289 | |||
| de0e6f3179 | |||
| 39edb9b7e2 | |||
| a638488eb7 | |||
| a2a539f7db | |||
| 6768bb4793 | |||
| 71aa248a4e | |||
| bea50f4562 | |||
| 55c7f72d8e | |||
| 5f4eaef4a2 | |||
| 27c0c4d64e | |||
| 52cf559536 | |||
| 3d0be3836c | |||
| 2bc33e0115 | |||
| 8576d9c67e | |||
| 9452d5fd09 | |||
| 1f40d726de | |||
| 2699611ba3 | |||
| b1fa06bfe8 | |||
| 4dc22b6ce4 | |||
| 883277125a | |||
| ff961abaab | |||
| b2414c1ab8 | |||
| 0e392b398c | |||
| 5914690ad8 | |||
| dbbdd16bb9 | |||
| 762cca145f | |||
| 5cd2d568e3 | |||
| 259fbcb8f0 | |||
| db3f21429e | |||
| 04b9607741 | |||
| 5bd2571395 | |||
| c0cd157e60 | |||
| ac2f9b172c | |||
| b8e4a73c3b | |||
| 68c4255a51 | |||
| d07212c89b | |||
| 28c55320a1 | |||
| fd58017e97 | |||
| 09408b898e | |||
| d1b05332c5 | |||
| caad0afed8 | |||
| 62d365573f | |||
| f3b7a8a581 | |||
| a765f36d24 | |||
| 046da1a8ce | |||
| ca7abd6c78 | |||
| 7cc0f2a514 | |||
| 4882df43bd | |||
| ee2943b9fb | |||
| c250fa560e | |||
| b017e8690a | |||
| 8a9680e75c | |||
| 36c66e676a | |||
| ba530061a0 | |||
| 89ae3bc143 | |||
| 3951f59d09 | |||
| cd8c998ebf | |||
| 2cb544591b | |||
| 1b1b5c047c | |||
| fa5b9e5689 | |||
| c26df8da6f | |||
| 1e02d85fca | |||
| d1dc2331f8 | |||
| d503deb8c5 | |||
| 0859b92aaf | |||
| 695d26434c | |||
| a19de645e4 | |||
| de9a27db10 | |||
| b6d5b7d603 | |||
| 93d7cf4dc3 | |||
| 0c42596dc8 | |||
| 8cf9c1ba97 | |||
| 7a47d63b48 | |||
| 4648a8c103 | |||
| 87947871d1 | |||
| 87fee572ff | |||
| 89f7a3ec63 | |||
| 7092a9ccbb | |||
| e9ea9b5e1b | |||
| fd1efb29ec | |||
| cf4781153e | |||
| ebed142cd5 | |||
| d162aba14a | |||
| ec075f5807 | |||
| dca90e6316 | |||
| df31fafec5 | |||
| 828dc64035 | |||
| 0b74164a8e | |||
| 62be1b1267 | |||
| 85ae7e764f | |||
| 3daa624627 | |||
| d8af1aaf7b | |||
| f2d105d8b9 | |||
| 5b0a8c0668 | |||
| c3ccf3a609 | |||
| 60bbede408 | |||
| 1d0299af89 | |||
| c2d0e255df | |||
| 005d3e7d64 | |||
| 12f8638223 | |||
| e3f9e8c842 | |||
| a475f72d50 | |||
| a559ef9f90 | |||
| be83302b14 | |||
| 83d7ea9ef1 | |||
| 95024442de | |||
| 69f54b5f22 | |||
| 3404f95b2e | |||
| e56738481b | |||
| cb59dc353b | |||
| d1b75eac08 | |||
| 8fabd4e4ed | |||
| 564d92bed7 | |||
| 95f103ccc2 | |||
| 0ace2fdae7 | |||
| 5da3541584 | |||
| ef86d2f1f1 | |||
| a10a6d1af8 | |||
| 6d87174cc1 | |||
| 9af9c3fe77 | |||
| 9cedf5da4c | |||
| 906d675dca | |||
| f1b3105202 | |||
| 3ebb213916 | |||
| a65ca205de | |||
| 3e1120612b | |||
| 8d06d39a62 | |||
| da7fea47c6 | |||
| f2442b25f6 | |||
| 300d3ff09b | |||
| e6337b8f14 | |||
| 2be785ace3 | |||
| 5e2d991fab | |||
| 536cb4caf1 | |||
| 27745ea141 | |||
| 5289c55740 | |||
| 791773fc8a | |||
| 1da27e6c2b | |||
| a909b7904e | |||
| 1b1abce7da | |||
| fbc10be381 | |||
| 61f2647b62 | |||
| a5bea7fc59 | |||
| b9be5c2561 | |||
| 97556de447 | |||
| d5bde0d8df | |||
| cc5ca0b5fe | |||
| 0cb9cc6840 | |||
| d38d7b1ff4 | |||
| 2d87f933d5 | |||
| a734a0cff7 | |||
| d0ace55d03 | |||
| 3fda0308ac | |||
| d796b2afc1 | |||
| f95cfc2ee0 | |||
| c5d1439422 | |||
| 5e9f4559b6 | |||
| 4bbb0441a6 | |||
| 4cf1d7d9a4 | |||
| a6a3ddca75 | |||
| 27cfa85d3a | |||
| a9e1e7b634 | |||
| 9f5f920c81 | |||
| f9a0d91299 | |||
| 82c2560822 | |||
| f467b8cb6c | |||
| aea1a03453 | |||
| 1568e5f19c | |||
| 8dff47db78 | |||
| 987e48733a | |||
| ac5142443a | |||
| 44360d83aa | |||
| 021cb817d4 | |||
| f4f91fba78 | |||
| dec5e8ad6c | |||
| a6b2196c10 | |||
| 4321c8d24e | |||
| 4cff3a3c28 | |||
| 5458c9a310 | |||
| 0045ec353f | |||
| 716d3e95f1 | |||
| beeb28f390 | |||
| 080e8816a5 | |||
| f7eb323bd5 | |||
| 0f484fdf49 | |||
| d779422bf4 | |||
| 11ea698969 | |||
| 0e0e6b5c41 | |||
| 4c218621c6 | |||
| c150a91e50 | |||
| 7be9a0a987 | |||
| 50589c0911 | |||
| e61ae618e8 | |||
| 930e6a0989 | |||
| 7c50b32684 | |||
| 0f7daf7ebd | |||
| 12cbc2a9c5 | |||
| 959d263619 | |||
| 6a1fb52b25 | |||
| 18cd043421 | |||
| ddb2f82aba | |||
| 6c99e7951f | |||
| e44e745761 | |||
| 30c11439e4 | |||
| 0883f621f6 | |||
| 2d0784d1e5 | |||
| af0011f32a | |||
| ab6c5ac21a | |||
| 227a38fb98 | |||
| 06f9dee649 | |||
| 75680192bb | |||
| a53efb394f | |||
| 98ed32c8cf | |||
| df10ebebca | |||
| 88dc73cd66 | |||
| cd0919aeeb | |||
| ce6711b587 | |||
| 6cb3fcf9ad | |||
| e5878554bd | |||
| 44c8c4b5b8 | |||
| c0b5525dd7 | |||
| 36f8a8e1dd | |||
| 16f73b56ab | |||
| 47dc2e6214 | |||
| c6483f0380 | |||
| 168b38b2a3 | |||
| 70ca4ac913 | |||
| 72099192b5 | |||
| ea48128869 | |||
| f0b22146c8 | |||
| fe0d94687a | |||
| 238c3d38e8 | |||
| 6af4f1f2c6 | |||
| e215fb056f | |||
| e6178efcfb | |||
| 30cf0e2040 | |||
| 48d620cdb0 | |||
| 3bd487d092 | |||
| 6c8c37256b | |||
| 37b1fcbaf0 | |||
| dc111768e3 | |||
| 6589d5d5d3 | |||
| e6975a71d5 | |||
| 33b497e5f4 | |||
| c5e7c81c19 | |||
| 47d1fe7082 | |||
| 735bd574ff | |||
| 5c0d9785e0 | |||
| db14868324 | |||
| 06952833ef | |||
| 2a90e93a6f | |||
| 0d94ddb96e | |||
| c7645b55ba | |||
| 208806c027 | |||
| 8024610364 | |||
| 8e4644568b | |||
| e0a71830fa | |||
| 5b0057c258 | |||
| fb61c55fa7 | |||
| a70ef52964 | |||
| 51204ee401 | |||
| 657f165ffb | |||
| 3bd98d851a | |||
| 9eea46b19b | |||
| 76fb5d260f | |||
| 267cd46ea0 | |||
| 96f6a0161f | |||
| 7bc53adc67 | |||
| 8ecff73c18 | |||
| 35e65ad18c | |||
| 8def8eaa86 | |||
| c0774ad9b9 | |||
| f306cbe457 | |||
| 577b989c4c | |||
| e6b162f4f6 | |||
| b40cc1879f | |||
| 8a7c7bf77d | |||
| 38a1179de5 | |||
| f263b4d92b | |||
| c612727116 | |||
| ab9c9df7d6 | |||
| c607e50433 | |||
| df5555bdf1 | |||
| 9506339e6f | |||
| 68605a7560 | |||
| 839dd7315a | |||
| f1314628d7 | |||
| e23ed30b0c | |||
| 55cb46927e | |||
| 654c3b7403 | |||
| 4195754b0c | |||
| 96a6f17bd7 | |||
| 61d99c4061 | |||
| 0a6e91a2f9 | |||
| cf9e786e45 | |||
| ba1d3fd3e6 | |||
| ac01fd48fa | |||
| f53fb694be | |||
| 1ecd8fa87d | |||
| ce1c9d697b | |||
| c67a76fb03 | |||
| 3d72a4497c | |||
| 30cc8e0861 | |||
| 30ca3f6df9 | |||
| cccfed6efe | |||
| 82c148e997 | |||
| c50a3e7a27 | |||
| 811cbe2339 | |||
| a8bf881ae1 | |||
| c446be734c | |||
| f0f7f6af55 | |||
| 19bd8ae193 | |||
| 81d8f74e0d | |||
| 0011d568c6 | |||
| 159718bf4f | |||
| b9ff3ca729 | |||
| 4f3ac36d7f | |||
| a9257ad366 | |||
| 2218459877 | |||
| 8f5e2946d6 | |||
| 19c3b251a0 | |||
| ce4c855f00 | |||
| 48c45447e4 | |||
| 4683144987 | |||
| 238a237cb5 | |||
| cde1ca9f83 | |||
| 93e2d8d822 | |||
| 8609389bdb | |||
| 48f985b70a | |||
| b02afb3af8 | |||
| b9d814c3fb | |||
| 1b54ce1d48 | |||
| e3efc0d19b | |||
| 3ba9e09164 | |||
| d148c10c66 | |||
| 2b573b9070 | |||
| 4cb03ab36c | |||
| 3ebbcc77e9 | |||
| 8be97295dc | |||
| 3dd411f159 | |||
| 8b141dc51a | |||
| 278aa3f820 | |||
| a7a38478db | |||
| b2e004b825 | |||
| 10df6e878c | |||
| eac11c1b80 | |||
| 0ad5da67ea | |||
| 3fb9ffca5b | |||
| 8e7fe5ee55 | |||
| 9554c6a1c6 | |||
| 8597876c92 | |||
| 3df7d81bde | |||
| f82ae4fdda | |||
| 4a981225b3 | |||
| 0cd115c268 | |||
| 291b0582e4 | |||
| f4e48872a2 | |||
| 9e320700e2 | |||
| 7f0ff70ca9 | |||
| 65e3b7f951 | |||
| 156f145c69 | |||
| a0c941dac2 | |||
| 33eb9d40f3 | |||
| cf8186653c | |||
| 75403d3b94 | |||
| 083bab0528 | |||
| ee3e3787a8 | |||
| a3895ab149 | |||
| c590c6a265 | |||
| 6c1bf4b85f | |||
| 3632d6b0c6 | |||
| bf95792524 | |||
| 885b421201 | |||
| b11143e2c4 | |||
| 00a625fb7f | |||
| e9ae11ff2b | |||
| bd4e6eaa62 | |||
| b2e4489e66 | |||
| d27e32e918 | |||
| 3a6dae9d0d | |||
| 9f95c48242 | |||
| e2934bb036 | |||
| 664a0ff4ec | |||
| 715f0ddac1 | |||
| 4d5f142a30 | |||
| f4dc045561 | |||
| ca55372f89 | |||
| 29c96c2c64 | |||
| 1a969d76e1 | |||
| fba31a0a6a | |||
| 5132d66924 | |||
| 36f367f9d6 | |||
| 67d9e578f5 | |||
| 306f0f9679 | |||
| b9d53ceac8 | |||
| 1bceb746fa | |||
| d390a4c0a9 | |||
| e4f8b5c586 | |||
| 869915f991 | |||
| 0cb4a9ad9c | |||
| 8c7dbd7207 | |||
| 0110cf01f2 | |||
| fee1a0dd9e | |||
| 315e8b27a0 | |||
| fb0c9c3fbb | |||
| 0df1ebb83e | |||
| 204d7a79aa | |||
| e68629b8bc | |||
| f80fa2f373 | |||
| 55ac779bf2 | |||
| f8732cd70b | |||
| ff5c5c8a03 | |||
| 7df9921441 | |||
| 329431e6df | |||
| 292ded852e | |||
| a4a9b26d93 | |||
| e4d4aa935a | |||
| b337f4e5e4 | |||
| 6f5689004d | |||
| ed5a0be20e | |||
| 4e82d282bf | |||
| fe003edd02 | |||
| 17f326dc89 | |||
| 2c38f7ce7f | |||
| 3ba31cc82c | |||
| e502ce4ff9 | |||
| 8fff66dcb7 | |||
| bc47e0c4a6 | |||
| 85c110bad5 | |||
| 8866607582 | |||
| 0db6c2cc11 | |||
| 84858bea65 | |||
| c3795d7e5a | |||
| 36eea348ba | |||
| be3f95610b | |||
| f9aa4b28af | |||
| 232c2292cb | |||
| 80dca1e3f2 | |||
| 47b6f7f4d5 | |||
| 03af54b1d5 | |||
| bbd62f20a9 | |||
| 9738227189 | |||
| 6bf3a7a74a | |||
| 07f8f79620 | |||
| f0690ec55f | |||
| e4bfccf974 | |||
| 51d08a353c | |||
| 982825dd56 | |||
| c8c4e2437b | |||
| 1970b20eb9 | |||
| a5499cff26 | |||
| d9c37a03b9 | |||
| e17b93bcfe | |||
| 6ffc231be0 | |||
| 99d8aca0c5 | |||
| 3c2ac0e90e | |||
| 7af10e3b67 | |||
| 62a48df421 | |||
| f146b8f6af | |||
| 946f905885 | |||
| 707eca930f | |||
| e4a002c976 | |||
| e731afadc9 | |||
| a006a480f7 | |||
| 674923468d | |||
| afafcfbb7a | |||
| c489d910b8 | |||
| 6e226ef995 | |||
| 0b1c479428 | |||
| 3f2ca8a823 | |||
| 78d57e89d5 | |||
| d9049864f3 | |||
| 21632d2ffc | |||
| da3d20a5bb | |||
| c0f0dcca3a | |||
| 22f7d8797c | |||
| 25da44825e | |||
| 55d4a7e367 | |||
| 33e73ab965 | |||
| 05db49c66d | |||
| 4cf2035039 | |||
| 27f059bf58 | |||
| aee8730315 | |||
| b517d59bee | |||
| e4f3081da2 | |||
| 5cca506d20 | |||
| e3f9375fd2 | |||
| cbd8085675 | |||
| a9d6c7872a | |||
| d4d4272b1b | |||
| e9aef79747 | |||
| 3b5a1ddcdd | |||
| 14ad9f571c | |||
| 243633365e | |||
| 258d19df22 | |||
| 8261fa2aea | |||
| c434790b2f | |||
| 4397319ac3 | |||
| 7309c7c02f | |||
| 12e9ab050a | |||
| d0fd7c1374 | |||
| f7ccad4269 | |||
| 1bf20b9c97 | |||
| f03d861942 | |||
| c0eb3e256b | |||
| 41d7571e29 | |||
| c2f420be7a | |||
| b0e083e8fc | |||
| 04197a5900 | |||
| d2fd02315a | |||
| f654c67540 | |||
| 9b28214c3e | |||
| 6a665efd7e | |||
| 5aee883bd2 | |||
| c0f7493e70 | |||
| 7d8524dd55 | |||
| 4c667a6a3e | |||
| ce06a30e64 | |||
| 1be891d05f | |||
| e85f594b84 | |||
| a3278be3fe | |||
| 90aa8c3b5a | |||
| ea217edaae | |||
| 3cf9a45724 | |||
| 38fc6c980d | |||
| cc34208871 | |||
| 6f778c26d1 | |||
| 29b978c1cd | |||
| 346a2d4fc9 | |||
| 02cc7e69ec | |||
| acb66f45ac | |||
| 487fdea34e | |||
| 0e0c4fcb1f | |||
| f7868b2cf1 | |||
| 0368f2846e | |||
| ee94652a0c | |||
| a1da12f033 | |||
| ea406d2d7c | |||
| 093a33e495 | |||
| 7a4ccc825d | |||
| a22efcdb2b | |||
| 1b71c66256 | |||
| dc7e18b97b | |||
| f6c51205fc | |||
| d45b5a3139 | |||
| 15dd774229 | |||
| b248604c0f | |||
| f01a195369 | |||
| 75af1e9d7c | |||
| d3c553c945 | |||
| 689fe2a44f | |||
| 06519ab238 | |||
| 65d5bc9155 | |||
| 05fc15d164 | |||
| a3b87a1d8b | |||
| b6f7d99039 | |||
| c1aa60c1ac | |||
| a2988a30c0 | |||
| 23f2382947 | |||
| 4d94909782 | |||
| 422a2a685c | |||
| c4f1235f0b | |||
| ce4828d678 | |||
| 8e914e751c | |||
| 7fefde4c8a | |||
| 29614d6b03 | |||
| 16b47539b4 | |||
| 83c53333c6 | |||
| 77db6cad01 | |||
| a10daaab52 | |||
| 3ddb9785c7 | |||
| 585eea1c6b | |||
| 10095a4ee7 | |||
| 8f4ccc53d5 | |||
| f04db8c52c | |||
| e2283c2310 | |||
| 635f09fb75 | |||
| 9022894d23 | |||
| 747675816d | |||
| 2833a8c5c7 | |||
| 75a686bc07 | |||
| 76a521dd8b | |||
| 8fa36f3f22 | |||
| 18aef90017 | |||
| 82bb410f4f | |||
| caa937a4ef | |||
| d7103a3b83 | |||
| e555520ddf | |||
| a71961c35b | |||
| ed3f715988 | |||
| 26aca92337 | |||
| 406e3663f6 | |||
| da8af696c5 | |||
| 12f5df33da | |||
| 775b2192ff | |||
| 458de6296e | |||
| b55ce96d85 | |||
| 8ae867389d | |||
| 5fc3d8e248 | |||
| 227d910722 | |||
| f184276ef8 | |||
| c72ab927a6 | |||
| a356552d2d | |||
| 5c6a595e48 | |||
| c1cfcaf9ea | |||
| 40a413cd70 | |||
| c7c10b8ab6 | |||
| 2da0728b78 | |||
| a71f3f8412 | |||
| b21423efe2 | |||
| 5895858e6e | |||
| cd38123fbd | |||
| 842d7120e6 | |||
| cae2183ab4 | |||
| 07e75dab15 | |||
| 7bc2375a77 | |||
| 5cebbd8a91 | |||
| db59b08f58 | |||
| 392fbb836f | |||
| 0cb8603c80 | |||
| 20fc02053a | |||
| e389dc39a7 | |||
| fbd4669da8 | |||
| 2b2c75f5e4 | |||
| 8c7b06fe2b | |||
| 540db7137a | |||
| 079aae7e63 | |||
| 6183e01642 | |||
| cf91933791 | |||
| d10c3a960f | |||
| 4d6d89dbe7 | |||
| c138c6643a | |||
| a2b876608f | |||
| 9e113564fa | |||
| f8848086fd | |||
| 261a6af60a | |||
| c66d70fbd8 | |||
| e8c7af8b25 | |||
| 8804d912f2 | |||
| 54e5140d6a | |||
| c0102f1c71 | |||
| 831d1966dc | |||
| ef5525e67f | |||
| f3e04ac871 | |||
| ba98f587b2 | |||
| 2753dbe5b4 | |||
| 56c93891a8 | |||
| 6bd005775d | |||
| 73c79e8528 | |||
| 827d4dd6c0 | |||
| ffd14c839b | |||
| f8d8b767b8 | |||
| 4f011e0390 | |||
| 053df24640 | |||
| 45c335702d | |||
| bc04d4f8da | |||
| be5076783f | |||
| 5c20f4f6ec | |||
| 42da98e020 | |||
| eeb305c740 | |||
| c19541cb11 | |||
| dea22f22cb | |||
| 656c61d1e2 | |||
| bac038b82d | |||
| dd6d0e380e | |||
| c95c1a7038 | |||
| 9e1c5e71e4 | |||
| aba68720bb | |||
| 1b1722c875 | |||
| 248af2eaa2 | |||
| 0709174560 | |||
| b0c0ed050d | |||
| e3a085774c | |||
| 6f0ddc37a0 | |||
| d3eb5ceabe | |||
| 1bffb7395c | |||
| e636a42744 | |||
| d3927a1265 | |||
| d6fc106588 | |||
| 68fc833280 | |||
| 5a8443fe72 | |||
| 153fb4a248 | |||
| 72ef5b01d2 | |||
| 0854fee4ee | |||
| e122d40fb9 | |||
| b696aa4340 | |||
| e32dd303e3 | |||
| 7c524abb84 | |||
| 993bac8a29 | |||
| b40dbf73ca | |||
| 0808665342 | |||
| 7623746f64 | |||
| 3152427ff7 | |||
| 85e88e5640 | |||
| ea3d2f893f | |||
| 3cddc5e4dc | |||
| 8cd49749ec | |||
| e45bf57632 | |||
| 3e99dd0d55 | |||
| be2ed3762b | |||
| e3abd49276 | |||
| d76f6c1cdb | |||
| 840109dc58 | |||
| 1aebce7ad6 | |||
| 11fd6553e9 | |||
| 690c4a165c | |||
| 8fb159ddc2 | |||
| b3ca264af1 | |||
| 34e71027b3 | |||
| 926427ff68 | |||
| abe4944843 | |||
| 5f12767f48 | |||
| 04e0b35c7d | |||
| d82cbfccc5 | |||
| 3ed1b4c77d | |||
| 6c4869f931 | |||
| b0e336e01f | |||
| 05bdd42567 | |||
| d8c2a71531 | |||
| a469e3dbe3 | |||
| b8b951f094 | |||
| c409cfa421 | |||
| 9f7814591e | |||
| 2c995f7fa7 | |||
| 7e5db90b3b | |||
| f7f83bc057 | |||
| 530e7ae44e | |||
| 126044cd48 | |||
| f76e90990f | |||
| 587542ace7 | |||
| d3676b376d | |||
| 53a3ad24e6 | |||
| 05add96294 | |||
| 9b5fd3d67b | |||
| 5ece0b5af0 | |||
| 332b42aa49 | |||
| 97472c6ce6 | |||
| 48a3a920d2 | |||
| 7b7e3b82f1 | |||
| 0b7f04ab37 | |||
| 083b18139a | |||
| 1bc3943f33 | |||
| 449613de3e | |||
| 7d8ec2678c | |||
| 12c0ce258b | |||
| 42317ec207 | |||
| 343c14db48 | |||
| 2fcb9d7b30 | |||
| ccbcb991b1 | |||
| 33f4da875a | |||
| 0549e39a00 | |||
| 6fb0fc643b | |||
| 8824579dac | |||
| 94b6a9df8d | |||
| cb8a8b997f | |||
| fe99c22022 | |||
| 0225047a52 | |||
| d89a24d96b | |||
| c5535ddbc2 | |||
| 3a21d48dbc | |||
| ea8ff709c2 | |||
| eb9937c33a | |||
| 777c7dd683 | |||
| 10963fe3c4 | |||
| 3e5d684333 | |||
| 6a9b2b260b | |||
| 7a38d7f845 | |||
| 745707dc4b | |||
| 1f4ceaa75c | |||
| a16f28eb26 | |||
| fa36ff3662 | |||
| ae4cb00bbc | |||
| fd166389c4 | |||
| a48b996571 | |||
| 6e4929b84d | |||
| f912d465c5 | |||
| 3e292b77ad | |||
| dc000ea33c | |||
| aaa8cafd0b | |||
| ce0923cfc6 | |||
| 7473557580 | |||
| 982ba0f4b0 | |||
| 278c1fefaa | |||
| 71b2137513 | |||
| 2952992ffe | |||
| 0dbd214b00 | |||
| 90ca566e53 | |||
| aa633bbbb2 | |||
| 2c204d9d9e | |||
| 8307da1a87 | |||
| d339f74e95 | |||
| 59fe173933 | |||
| 51769847ad | |||
| 918e7ad682 | |||
| ca55579982 | |||
| b5099c37c7 | |||
| 2826fbd807 | |||
| b5d209677e | |||
| b15d03a54d | |||
| 247aa08d57 | |||
| 394078d470 | |||
| 91834e8f53 | |||
| 201bc2d1ab | |||
| 29ed7bf8ae | |||
| 26f32bab8e | |||
| 1566b16f0f | |||
| 0a8b1cc784 | |||
| c441887a96 | |||
| 32d76cc143 | |||
| 4340df53fd | |||
| f6c6f4f0c0 | |||
| 18713fe513 | |||
| a1edad4e08 | |||
| 1c040912f6 | |||
| 458f1d3b8f | |||
| 9e5f2f3c9a | |||
| f6022c8dda | |||
| 0ed15db408 | |||
| c742c6c249 | |||
| b06a4d2e13 | |||
| 89cd2772dc | |||
| 48c69b9335 | |||
| e8d6f694e7 | |||
| 253b58aafb | |||
| a864fc1fe8 | |||
| 8a5cd21603 | |||
| f2a7b3b255 | |||
| d5ca5e32b4 | |||
| 37969909ca | |||
| fe92947d72 | |||
| b9165a8b70 | |||
| 27bcea78d2 | |||
| ce9be79ec6 | |||
| d83887e314 | |||
| 59fa733156 | |||
| 534c28046a | |||
| 4056b47d32 | |||
| 5e9d791523 | |||
| 9127061194 | |||
| 9563526108 | |||
| 61d7dba2c0 | |||
| 8081d1d97b | |||
| 36c6dbb6be | |||
| 56b7f8d98b | |||
| bba5e6a59a | |||
| 4dc181b4de | |||
| 792860a7bb | |||
| c3747d70ce | |||
| 2fc0fe574b | |||
| a293f53438 | |||
| 85b7574f43 | |||
| c961eb368c | |||
| 529c52844d | |||
| 6949178f4b | |||
| 30ec9406de | |||
| 04f49d42cf | |||
| f0148ae833 | |||
| 4ced9cf8b2 | |||
| d0ab7e505d | |||
| b511ae3a1a | |||
| 85d7d5e7cf | |||
| 05ebc8d2f9 | |||
| b86d513aff | |||
| c251c9f0d3 | |||
| 7be4480254 | |||
| 3cd1592abc | |||
| bc3a5122dd | |||
| 4d2b145369 | |||
| 32350fd35a | |||
| a922272c67 | |||
| 3c7b5d7522 | |||
| 33c07a2390 | |||
| d2210e9985 | |||
| 48e8e12877 | |||
| 2b248e621c | |||
| edfe6ed547 | |||
| 6cffa06bd6 | |||
| d08946c822 | |||
| 6892c1afb8 | |||
| 7cecb01ffd | |||
| 38d3d6b575 | |||
| 528b06f692 | |||
| 92602e3480 | |||
| f18e59575f | |||
| 64c9d97e53 | |||
| 71fd352ea5 | |||
| fbd20fd4b1 | |||
| b0f77a38f0 | |||
| bf5c3bf5ae | |||
| e9e598d32c | |||
| b2eeb6a70d | |||
| 9e4cf35370 | |||
| ebd87e0eaa | |||
| d369567f3f | |||
| ba0b0ea52d | |||
| f36a88384d | |||
| 7fb89da4db | |||
| 19f7ba1ef4 | |||
| 23532b0ec8 | |||
| 47042ed3d3 | |||
| 0c57e0e6eb | |||
| ace18acd7e | |||
| b91fa1a8f2 | |||
| 7a84761810 | |||
| 18200aa997 | |||
| bd0ebeb092 | |||
| 358610655b | |||
| fa3f79c0e4 | |||
| d25fae730d | |||
| 5b150c74ac | |||
| 83fcdcfd86 | |||
| bd058d649a | |||
| ec638b9c3e | |||
| 7b4bf6e502 | |||
| d7f8214d24 | |||
| 22c0350a4a | |||
| 3222d39808 | |||
| 33c339a724 | |||
| e9c793cede | |||
| 1cbd355a2a | |||
| bee73cce12 | |||
| f5d258b42d | |||
| c1278674c3 | |||
| 605e66c159 | |||
| b86bbb0e82 | |||
| 930dd74edb | |||
| d30b5b0b2c | |||
| 8e785cc215 | |||
| efe0970245 | |||
| 15264d36f0 | |||
| 298e06974e | |||
| 91acf40b3b | |||
| 085f4a4fcf | |||
| 3e2510cbda | |||
| 2775d9bedc | |||
| 7afbc8e7bf | |||
| 3a2ed918de | |||
| 847b3523a8 | |||
| 72ac3532d2 | |||
| e24e3af955 | |||
| 3180b5c5b6 | |||
| 480f73dba7 | |||
| 56a13c5e0c | |||
| 7175860ae0 | |||
| 9177257952 | |||
| 3da387591d | |||
| 5213d6de5c | |||
| bd5182792e | |||
| b057b6d68a | |||
| 0bc1234a4e | |||
| 8b76f2a893 | |||
| 943e53f655 | |||
| 9846d6dc4d | |||
| 4e9f9b77f4 | |||
| 91e9392992 | |||
| 6093e4ff5e | |||
| 2f4a18087d | |||
| f52ae8c46b | |||
| ce53f400a8 | |||
| b9b24990b6 | |||
| b596b3584e | |||
| 05f8778e40 | |||
| ed4de4465f | |||
| 766a834f53 | |||
| 546b53f9b0 | |||
| e2274b7892 | |||
| c11bc9559c | |||
| d95b688a7f | |||
| d329123cda | |||
| aceb5b0203 | |||
| 524244d1ec | |||
| ad291265f3 | |||
| d2ac9158c6 | |||
| f6e59e0264 | |||
| 8afa6298e0 | |||
| f6436d2eee | |||
| 813fcf5903 | |||
| c522ad6e30 | |||
| a858712bcc | |||
| e131011667 | |||
| 3415554142 | |||
| 61c4a9e68d | |||
| 7280dbc66e | |||
| 67e921f862 | |||
| e75aebc4fd | |||
| 2e5db72a09 | |||
| 739de3ef78 | |||
| 626b9ceefa | |||
| 4111298b00 | |||
| cd56882845 | |||
| 37ddb9223f | |||
| 44a15900c7 | |||
| ccd56f5594 | |||
| a989ea77ff | |||
| 9e611ba8f4 | |||
| 6f8b016728 | |||
| d92d309c61 | |||
| 872ef1fadc | |||
| 9b8d40ee2d | |||
| d9eb8b426c | |||
| ef0d7821eb | |||
| b68bcba85e | |||
| fbf94bbf01 | |||
| 19205f1435 | |||
| 1e271455e8 | |||
| 1ad7abcd69 | |||
| 7a93c108fb | |||
| c8ac04228e | |||
| 11a6b2a31f | |||
| 58dec4774d | |||
| 7235141f02 | |||
| 32bef227b7 | |||
| 082378815f | |||
| f8bdb42a63 | |||
| 86be51f7ce | |||
| 5e720ec965 | |||
| 7a274bf429 | |||
| a539fd2554 | |||
| 8a192a0065 | |||
| 923f4f517f | |||
| d644b44d80 | |||
| 2115146fdb | |||
| 646e96ab15 | |||
| 4049a77332 | |||
| cabe37014b | |||
| 20fada8fd4 | |||
| dff3905e85 | |||
| c2ee1e63bb | |||
| d4806895a9 | |||
| bee357ffdc | |||
| a0a99e8f12 | |||
| ddc2619511 | |||
| 69b3645e9c | |||
| 4e1e7fe657 | |||
| 2481a8df98 | |||
| 76c99d3f47 | |||
| 2fd8d17be9 | |||
| 5b8057f063 | |||
| c9a4b708aa | |||
| 2537925350 | |||
| 5a3534bc52 | |||
| 5da0445c32 | |||
| 352d817fc1 | |||
| e55e688dc7 | |||
| ec22d985ef | |||
| 3b6508e534 | |||
| 60ec172d37 | |||
| 95451e99a7 | |||
| 1aa70c4bb8 | |||
| 750f5b18d3 | |||
| b7cea05f18 | |||
| b226be4939 | |||
| 16127a378a | |||
| b09422ed5e | |||
| b186d5f8e4 | |||
| c4d578442b | |||
| 83f76ed4a4 | |||
| 74dd444506 | |||
| 573c5a3387 | |||
| 872fb9d8f3 | |||
| da0217d330 | |||
| 507b6ab773 | |||
| 960dd52750 | |||
| 5576f65ef0 | |||
| 1823cce4f6 | |||
| 09a68f9376 | |||
| 58fbe9f4ab | |||
| 92f983a569 | |||
| 8082abc27a | |||
| 373fdd324b | |||
| dbe43a0918 | |||
| a6b9aca45a | |||
| 1731ad45f5 | |||
| 32e8a1a5dc | |||
| 466d871ede | |||
| 25037ed9c8 | |||
| 53f6577b32 | |||
| a78b5f50dd | |||
| 15c5b5de57 | |||
| 62d6db935d | |||
| fec2e0eb6e | |||
| 0eefbdc610 | |||
| fe87f6b89f | |||
| a08c698c77 | |||
| 6b4fff176a | |||
| 514326adfe | |||
| ef0f8b5282 | |||
| 135bfc6d94 | |||
| 5fcd8b1d52 | |||
| 82ca2609ec | |||
| fdcc81003d | |||
| c51267136c | |||
| 9f60e49a32 | |||
| 74b8b4f147 | |||
| 3546b3e954 | |||
| 533cc91a68 | |||
| 5fbf4379cc | |||
| d9faea49ec | |||
| 36e3857643 | |||
| fa469416a2 | |||
| c60abf747c | |||
| be51bfa67f | |||
| 8f278bcaa5 | |||
| 6c872e8a65 | |||
| 1b9e226f61 | |||
| 25b06a88ab | |||
| f2c084feda | |||
| f83ae489db | |||
| 00c18fe764 | |||
| ce90e114df | |||
| c205197683 | |||
| b13c16ddc2 | |||
| 8c9e19c0b7 | |||
| 14dd4fcd68 | |||
| d82bb9bff1 | |||
| 4b819c081e | |||
| c91ef375ba | |||
| 82d8e2854a | |||
| 7e5f4c20bf | |||
| 6e459a3afb | |||
| 2e8ab316fe | |||
| c4760e0593 | |||
| 0f8797096d | |||
| 9a1935e6ea | |||
| 25bd7b8ad7 | |||
| 7ca29b87f3 | |||
| 9679d0f6df | |||
| 62f4db0b76 | |||
| 8046a778bd | |||
| 23b2899101 | |||
| 6c8d72576c | |||
| 10f2d9b3ed | |||
| dfe512ead8 | |||
| ddbde6e15f | |||
| 96cc9a1f35 | |||
| 21203b8070 |
@@ -2,7 +2,6 @@
|
||||
syntax: glob
|
||||
|
||||
*.obj
|
||||
*.exe
|
||||
*.pdb
|
||||
*.user
|
||||
*.aps
|
||||
@@ -27,12 +26,18 @@ umbraco\presentation\usercontrols\*
|
||||
umbraco\presentation\scripts\*
|
||||
umbraco\presentation\fonts\*
|
||||
umbraco\presentation\css\*
|
||||
glob:*App_Code\*
|
||||
glob:*App_Data\*
|
||||
glob:*media\*
|
||||
glob:*masterpages\*
|
||||
glob:*macroScripts\*
|
||||
glob:*xslt\*
|
||||
|
||||
src\Umbraco.Web.UI\css\*
|
||||
src\Umbraco.Web.UI\App_Code\*
|
||||
src\Umbraco.Web.UI\App_Data\*
|
||||
src\Umbraco.Tests\App_Data\*
|
||||
src\Umbraco.Web.UI\media\*
|
||||
src\Umbraco.Web.UI\masterpages\*
|
||||
src\Umbraco.Web.UI\macroScripts\*
|
||||
src\Umbraco.Web.UI\xslt\*
|
||||
src\Umbraco.Web.UI\images\*
|
||||
src\Umbraco.Web.UI\scripts\*
|
||||
src\Umbraco.Web.UI\Web.*.config.transformed
|
||||
|
||||
umbraco\presentation\umbraco\plugins\uComponents\uComponentsInstaller.ascx
|
||||
umbraco\presentation\packages\uComponents\MultiNodePicker\CustomTreeService.asmx
|
||||
@@ -41,7 +46,18 @@ _BuildOutput/*
|
||||
build/UmbracoCms.AllBinaries.zip
|
||||
build/UmbracoCms.WebPI.zip
|
||||
build/UmbracoCms.zip
|
||||
build/*.nupkg
|
||||
src/Umbraco.Tests/config/applications.config
|
||||
src/Umbraco.Tests/config/trees.config
|
||||
src/Umbraco.Web.UI/web.config
|
||||
*.orig
|
||||
src/Umbraco.Tests/config/404handlers.config
|
||||
src/Umbraco.Web.UI/Views/*.cshtml
|
||||
src/Umbraco.Web.UI/Views/*.vbhtml
|
||||
src/Umbraco.Tests/config/umbracoSettings.config
|
||||
src/Umbraco.Web.UI/App_Plugins/*
|
||||
src/Umbraco.Web.UI/Views/*
|
||||
|
||||
src\Umbraco.Web.UI\[W]eb.config
|
||||
src/packages/
|
||||
build/*.zip
|
||||
|
||||
@@ -10,3 +10,21 @@ d03fcffb8834a9583a56813bb44b6abbd9f042cc Release-4.6.0
|
||||
096f20bb0575d6199f20fcb3147b63554e765a74 Release-4.8.0
|
||||
8f8a203857886b373148af29edd57460a42940be Release-4.8.1
|
||||
de73e687ddf6086ed52b6554676c1632865d07f2 Release-4.9.0
|
||||
8d7d8609e2e4b971da99cd97f72132ce85ce3333 Release-4.9.1
|
||||
f6da531fbb4c251ff61d314e2a7effb13c71e74a Release-4.10.0
|
||||
20e4dff821d8ac2527a5353618fa1a23ea1d8b34 Release-4.11.0
|
||||
7f827760cb49d749616859f528d19dde64807947 Release-4.11.1
|
||||
7f827760cb49d749616859f528d19dde64807947 Release-4.11.1
|
||||
6eb5f2fb5a88aa29ea544499df9160a1b31b5638 Release-4.11.1
|
||||
73711b806a4044dbf0d7d7c095ddfdda23b09932 4.11.2
|
||||
73711b806a4044dbf0d7d7c095ddfdda23b09932 4.11.2
|
||||
0000000000000000000000000000000000000000 4.11.2
|
||||
73711b806a4044dbf0d7d7c095ddfdda23b09932 Release-4.11.2
|
||||
77db220b89e166b3c0736ed321ecfd6416cddbcd Release-4.11.2.1
|
||||
54cde33b809dcb3a1f7e7ae0d5375f6dd0d89c8d Release-4.11.2.2
|
||||
baa44b79cf90a60631e38e11f771c200b08a4583 Release-4.11.3
|
||||
e4d0c7e740555d8707ba71f55a623a3f96da8e65 Release-4.11.3.1
|
||||
e4d0c7e740555d8707ba71f55a623a3f96da8e65 Release-4.11.3.1
|
||||
0000000000000000000000000000000000000000 Release-4.11.3.1
|
||||
e02f5aebb87e3f07d27376647756caa9762931d8 Release-4.11.4
|
||||
14338b0ab1738fbd8987677ecdb9a73d79fc229d release-4.11.6
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
NuGet.exe pack NuSpecs\UmbracoCms.Core.nuspec
|
||||
NuGet.exe pack NuSpecs\UmbracoCms.nuspec
|
||||
REM pause
|
||||
+25
-2
@@ -1,2 +1,25 @@
|
||||
%windir%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe "Build.proj"
|
||||
REM pause
|
||||
@ECHO OFF
|
||||
set version=4.11.7
|
||||
%windir%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe "Build.proj" /p:BUILD_RELEASE=%version%
|
||||
|
||||
echo This file is only here so that the containing folder will be included in the NuGet package, it is safe to delete. > .\_BuildOutput\WebApp\App_Code\dummy.txt
|
||||
echo This file is only here so that the containing folder will be included in the NuGet package, it is safe to delete. > .\_BuildOutput\WebApp\App_Data\dummy.txt
|
||||
echo This file is only here so that the containing folder will be included in the NuGet package, it is safe to delete. > .\_BuildOutput\WebApp\App_Plugins\dummy.txt
|
||||
echo This file is only here so that the containing folder will be included in the NuGet package, it is safe to delete. > .\_BuildOutput\WebApp\css\dummy.txt
|
||||
echo This file is only here so that the containing folder will be included in the NuGet package, it is safe to delete. > .\_BuildOutput\WebApp\macroScripts\dummy.txt
|
||||
echo This file is only here so that the containing folder will be included in the NuGet package, it is safe to delete. > .\_BuildOutput\WebApp\masterpages\dummy.txt
|
||||
echo This file is only here so that the containing folder will be included in the NuGet package, it is safe to delete. > .\_BuildOutput\WebApp\media\dummy.txt
|
||||
echo This file is only here so that the containing folder will be included in the NuGet package, it is safe to delete. > .\_BuildOutput\WebApp\scripts\dummy.txt
|
||||
echo This file is only here so that the containing folder will be included in the NuGet package, it is safe to delete. > .\_BuildOutput\WebApp\usercontrols\dummy.txt
|
||||
echo This file is only here so that the containing folder will be included in the NuGet package, it is safe to delete. > .\_BuildOutput\WebApp\xslt\dummy.txt
|
||||
|
||||
NuGet.exe pack NuSpecs\UmbracoCms.Core.nuspec -Version %version%
|
||||
NuGet.exe pack NuSpecs\UmbracoCms.nuspec -Version %version%
|
||||
|
||||
|
||||
if ERRORLEVEL 1 goto :showerror
|
||||
|
||||
goto :EOF
|
||||
|
||||
:showerror
|
||||
pause
|
||||
+13
-4
@@ -24,6 +24,9 @@
|
||||
<PropertyGroup Condition="'$(BUILD_NUMBER)'!=''">
|
||||
<DECIMAL_BUILD_NUMBER>.$(BUILD_NUMBER)</DECIMAL_BUILD_NUMBER>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(BUILD_RELEASE)'!=''">
|
||||
<DECIMAL_BUILD_NUMBER>.$(BUILD_RELEASE)</DECIMAL_BUILD_NUMBER>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<BuildConfiguration>Release</BuildConfiguration>
|
||||
@@ -46,10 +49,9 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<SystemFolders Include="$(WebAppFolder)App_Code" />
|
||||
<SystemFolders Include="$(WebAppFolder)App_Plugins" />
|
||||
<SystemFolders Include="$(WebAppFolder)App_Code" />
|
||||
<SystemFolders Include="$(WebAppFolder)App_Data" />
|
||||
<SystemFolders Include="$(WebAppFolder)App_Data\ClientDependency" />
|
||||
<SystemFolders Include="$(WebAppFolder)App_Data\ExamineIndexes" />
|
||||
<SystemFolders Include="$(WebAppFolder)media" />
|
||||
<SystemFolders Include="$(WebAppFolder)masterpages" />
|
||||
<SystemFolders Include="$(WebAppFolder)scripts" />
|
||||
@@ -161,7 +163,7 @@
|
||||
<Message Text="Finished offsetting timestamps" Importance="high" />
|
||||
</Target>
|
||||
|
||||
<Target Name="CompileProjects">
|
||||
<Target Name="CompileProjects" DependsOnTargets="SetVersionNumber">
|
||||
|
||||
<Message Text="Compiling web project to build\$(BuildFolder)" Importance="high" />
|
||||
<!-- For UseWPP_CopyWebApplication=True see http://stackoverflow.com/questions/1983575/copywebapplication-with-web-config-transformations -->
|
||||
@@ -233,6 +235,13 @@
|
||||
<Message Text="Finished compiling projects" Importance="high" />
|
||||
</Target>
|
||||
|
||||
<Target Name="SetVersionNumber" Condition="'$(BUILD_RELEASE)'!=''">
|
||||
<!-- Match & replace 3 and 4 digit version numbers and -beta (if it's there) -->
|
||||
<FileUpdate Files="..\src\Umbraco.Core\Configuration\GlobalSettings.cs"
|
||||
Regex="(\d+)\.(\d+)\.(\d+)(.(\d+))?(-([a-zA-Z]+))?"
|
||||
ReplacementText="$(BUILD_RELEASE)"/>
|
||||
</Target>
|
||||
|
||||
<Target Name="AfterBuild">
|
||||
<Message Text="Hi" />
|
||||
</Target>
|
||||
|
||||
@@ -1,370 +0,0 @@
|
||||
<?xml version="1.0" ?>
|
||||
<project name="umbraco" default="test" basedir=".">
|
||||
<description>Build the umbraco 4.6 alpha Application for asp.net 3.5</description>
|
||||
|
||||
<property name="nant.settings.currentframework" value="net-2.0" />
|
||||
|
||||
<!-- filenames and directories, generally won't change -->
|
||||
|
||||
<property name="web.dir" value="D:\inetpub\wwwroot\v4.umbraco.org" />
|
||||
<property name="public.dir" value="D:\inetpub\wwwroot\nightlies\umbraco 4.6 for asp.net 3.5" />
|
||||
<property name="root.dir" value="${directory::get-current-directory()}" />
|
||||
<property name="source.dir" value="${root.dir}\umbraco\presentation" />
|
||||
<property name="build.dir" value="${root.dir}\build" />
|
||||
<property name="dlls.dir" value="${root.dir}\foreign dlls" />
|
||||
|
||||
<property name="build.version" value="4.6 Alpha"/>
|
||||
|
||||
<property name="docs.dir" value="${root.dir}\docs" />
|
||||
|
||||
<property name="win.dir" value="c:\WINDOWS" />
|
||||
<property name="Webdeploy.dir" value="C:\Program Files\MSBuild\Microsoft\WebDeployment\v8.0" />
|
||||
|
||||
<!-- YUI -->
|
||||
<property name="YUICompressor.dir" value="D:\inetpub\wwwroot\ccnet\buildTools\YUI" />
|
||||
|
||||
|
||||
|
||||
<target name="build" depends="init">
|
||||
<!-- set everything to writable-->
|
||||
<attrib normal="true" readonly="false">
|
||||
<fileset basedir="${root.dir}">
|
||||
<include name="**/*" />
|
||||
</fileset>
|
||||
</attrib>
|
||||
|
||||
<!-- Remove those damn DLR dlls that might be left behind by careless devs...-->
|
||||
<!-- They will get added again after build is completed, no worries no dependencies during build-->
|
||||
<delete>
|
||||
<fileset>
|
||||
<include name="${source.dir}\bin\IronPython.dll" />
|
||||
<include name="${source.dir}\bin\IronPython.Modules.dll" />
|
||||
<include name="${source.dir}\bin\IronRuby.dll" />
|
||||
<include name="${source.dir}\bin\IronRuby.Libraries.dll" />
|
||||
<include name="${source.dir}\bin\IronRuby.Libraries.Yaml.dll" />
|
||||
<include name="${source.dir}\bin\Microsoft.Dynamic.dll" />
|
||||
<include name="${source.dir}\bin\Microsoft.ScriptinG.Core.dll" />
|
||||
<include name="${source.dir}\bin\Microsoft.Scripting.Debugging.dll" />
|
||||
<include name="${source.dir}\bin\Microsoft.Scripting.dll" />
|
||||
<include name="${source.dir}\bin\Microsoft.Scripting.ExtensionAttribute.dll" />
|
||||
</fileset>
|
||||
</delete>
|
||||
|
||||
<exec program="${win.dir}\microsoft.net\framework\v4.0.30319\msbuild.exe">
|
||||
<arg value="${root.dir}\umbraco.sln" />
|
||||
<arg value="/v:n" />
|
||||
<arg value="/p:WarningLevel=0" />
|
||||
<arg value="/p:ToolsVersion=3.5" />
|
||||
</exec>
|
||||
|
||||
<exec program="${win.dir}\microsoft.net\framework\v2.0.50727\aspnet_compiler.exe" commandline="-f -u -p umbraco/presentation -v / "${build.dir}""/>
|
||||
</target>
|
||||
|
||||
|
||||
|
||||
<!-- Directories and files -->
|
||||
<target name="directories" depends="build">
|
||||
|
||||
<!-- setup docs files -->
|
||||
<mkdir dir="${docs.dir}" />
|
||||
<copy todir="${docs.dir}">
|
||||
<fileset basedir="${build.dir}\bin">
|
||||
<include name="*.xml" />
|
||||
</fileset>
|
||||
</copy>
|
||||
|
||||
<!-- asp.net 2.0 SP1 DLR dlls -->
|
||||
<delete>
|
||||
<fileset>
|
||||
<include name="${build.dir}\bin\Microsoft.Scripting.*" />
|
||||
<include name="${build.dir}\bin\Microsoft.Dynamic.*" />
|
||||
<include name="${build.dir}\bin\IronPython.*" />
|
||||
<include name="${build.dir}\bin\IronRuby.*" />
|
||||
</fileset>
|
||||
</delete>
|
||||
<copy todir="${build.dir}\bin">
|
||||
<fileset basedir="${dlls.dir}\DLR 2.0 SP1">
|
||||
<include name="*.dll" />
|
||||
<exclude name="Microsoft.Scripting.ExtensionAttribute.dll" />
|
||||
</fileset>
|
||||
</copy>
|
||||
|
||||
<!--standard web.config-->
|
||||
<copy file="${root.dir}\aspnet35.config" tofile="${build.dir}\web.config" failonerror="false" overwrite="true"/>
|
||||
|
||||
<!--standard /config files-->
|
||||
<copy file="${root.dir}\config templates\config\404handlers.config" tofile="${build.dir}\config\404handlers.config" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\config templates\config\dashboard.config" tofile="${build.dir}\config\dashboard.config" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\config templates\config\formhandlers.config" tofile="${build.dir}\config\formhandlers.config" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\config templates\config\metablogconfig.config" tofile="${build.dir}\config\metablogconfig.config" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\config templates\config\restextensions.config" tofile="${build.dir}\config\restextensions.config" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\config templates\config\xsltextensions.config" tofile="${build.dir}\config\xsltextensions.config" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\config templates\config\tinymceconfig.config" tofile="${build.dir}\config\tinymceconfig.config" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\config templates\config\umbracosettings.config" tofile="${build.dir}\config\umbracosettings.config" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\config templates\config\urlrewriting.config" tofile="${build.dir}\config\urlrewriting.config" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\config templates\config\applications.config" tofile="${build.dir}\config\applications.config" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\config templates\config\trees.config" tofile="${build.dir}\config\trees.config" failonerror="false" overwrite="true"/>
|
||||
|
||||
<!-- new 4.1 files -->
|
||||
<copy file="${root.dir}\config templates\config\ClientDependency.config" tofile="${build.dir}\config\ClientDependency.config" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\config templates\config\ExamineSettings.config" tofile="${build.dir}\config\ExamineSettings.config" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\config templates\config\ExamineIndex.config" tofile="${build.dir}\config\ExamineIndex.config" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\config templates\config\scripting.config" tofile="${build.dir}\config\scripting.config" failonerror="false" overwrite="true"/>
|
||||
|
||||
|
||||
<!--standard /data/packages files-->
|
||||
<copy file="${root.dir}\config templates\packages\installedPackages.config" tofile="${build.dir}\data\packages\installed\installedPackages.config" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\config templates\packages\createdPackages.config" tofile="${build.dir}\data\packages\created\createdPackages.config" failonerror="false" overwrite="true"/>
|
||||
|
||||
<!-- Standard access.xml file-->
|
||||
<copy file="${root.dir}\config templates\access.xml" tofile="${build.dir}\data\access.xml" failonerror="false" overwrite="true"/>
|
||||
|
||||
<!-- Standard create UI.xml-->
|
||||
<copy file="${root.dir}\config templates\config\UI.xml" tofile="${build.dir}\umbraco\config\create\UI.xml" failonerror="false" overwrite="true"/>
|
||||
|
||||
<!-- Standard empty cache file -->
|
||||
<copy file="${root.dir}\config templates\umbraco.config" tofile="${build.dir}\umbraco\data\umbraco.config" failonerror="false" overwrite="true"/>
|
||||
|
||||
<!-- Baseline Language file for translation tool -->
|
||||
<copy file="${build.dir}\umbraco\config\lang\en.xml" tofile="${web.dir}\usercontrols\translation\langs\en.xml" failonerror="false" overwrite="true"/>
|
||||
|
||||
<!-- LINQ2UMB dll-->
|
||||
<copy file="${root.dir}\LinqToUmbraco\src\umbraco.Linq\Core\bin\Debug - Fixed Version\umbraco.Linq.Core.dll" tofile="${build.dir}\bin\umbraco.Linq.Core.dll" failonerror="false" overwrite="true"/>
|
||||
|
||||
|
||||
<delete dir="${build.dir}\webservices" />
|
||||
<delete dir="${build.dir}\umbracoBase" />
|
||||
<delete dir="${build.dir}\Web References" />
|
||||
<delete dir="${build.dir}\obj" />
|
||||
<delete dir="${build.dir}\properties" />
|
||||
|
||||
<delete dir="${build.dir}\css" />
|
||||
<delete dir="${build.dir}\masterpages" />
|
||||
<delete dir="${build.dir}\scripts" />
|
||||
<delete dir="${build.dir}\python" />
|
||||
<delete dir="${build.dir}\xslt" />
|
||||
<delete dir="${build.dir}\usercontrols" />
|
||||
|
||||
|
||||
<delete>
|
||||
<fileset>
|
||||
<include name="${build.dir}/**/*.build" />
|
||||
<include name="${build.dir}/**/*.csproj" />
|
||||
<include name="${build.dir}/**/*.vspscc" />
|
||||
<include name="${build.dir}/**/*.scc" />
|
||||
<include name="${build.dir}/**/*.sln" />
|
||||
<include name="${build.dir}/**/*.compiled" />
|
||||
<include name="${build.dir}/**/*.resx" />
|
||||
<include name="${build.dir}/**/*.user" />
|
||||
<include name="${build.dir}/**/*.pdb" />
|
||||
|
||||
<include name="${build.dir}/PrecompiledApp.config" />
|
||||
<include name="${build.dir}/web.config.template" />
|
||||
<include name="${build.dir}/*.xslt" />
|
||||
<include name="${build.dir}/web.STANDARD.config" />
|
||||
<include name="${build.dir}/site.py" />
|
||||
</fileset>
|
||||
</delete>
|
||||
|
||||
<!-- standard folders -->
|
||||
<mkdir dir="${build.dir}\App_Code" />
|
||||
<mkdir dir="${build.dir}\App_Data" />
|
||||
<mkdir dir="${build.dir}\App_Data\ClientDependency" />
|
||||
<mkdir dir="${build.dir}\App_Data\ExamineIndexes" />
|
||||
|
||||
<mkdir dir="${build.dir}\media" />
|
||||
<mkdir dir="${build.dir}\masterpages" />
|
||||
<mkdir dir="${build.dir}\scripts" />
|
||||
<mkdir dir="${build.dir}\css" />
|
||||
<mkdir dir="${build.dir}\python" />
|
||||
<mkdir dir="${build.dir}\xslt" />
|
||||
<mkdir dir="${build.dir}\usercontrols" />
|
||||
</target>
|
||||
|
||||
<!-- Minify -->
|
||||
<target name="minify" description="minify JS files" depends="directories">
|
||||
<fileset basedir="${build.dir}" id="jsFileSet">
|
||||
<include name="umbraco/css/*.css"/>
|
||||
<include name="umbraco/js/**/*.js"/>
|
||||
|
||||
<include name="umbraco_client/**/*.js"/>
|
||||
<include name="umbraco_client/**/*.css"/>
|
||||
</fileset>
|
||||
|
||||
<property name="js_files" value=""/>
|
||||
<foreach item="File" property="file">
|
||||
<in>
|
||||
<items refid="jsFileSet"/>
|
||||
</in>
|
||||
<do>
|
||||
<exec program="java" workingdir="${YUICompressor.dir}" failonerror="false">
|
||||
<arg value="-jar" />
|
||||
<arg value="yuicompressor.jar" />
|
||||
<arg value="-o" />
|
||||
<arg value="${file}.min" />
|
||||
<arg value="${file}" />
|
||||
</exec>
|
||||
<move file="${file}.min" tofile="${file}" overwrite="true" failonerror="false"/>
|
||||
</do>
|
||||
</foreach>
|
||||
</target>
|
||||
|
||||
<!-- Documentation -->
|
||||
<target name="documentation" depends="directories">
|
||||
<!-- Transformations -->
|
||||
<property name="sandcastle.addfriendlyfilenames.xsl" value="${sandcastle.dir}\ProductionTransforms\AddFriendlyFilenames.xsl" />
|
||||
<property name="sandcastle.reflectiontomanifest.xsl" value="${sandcastle.dir}\ProductionTransforms\ReflectionToManifest.xsl" />
|
||||
|
||||
<property name="sandcastle.buildassembler.config" value="${sandcastle.dir}\Presentation\wiki\configuration\sandcastle.config" />
|
||||
|
||||
<!-- Create a doc dir and move vs comment files to it-->
|
||||
<mkdir dir="${docs.dir}" />
|
||||
<copy todir="${docs.dir}">
|
||||
<fileset basedir="${build.dir}\bin">
|
||||
<include name="*.xml" />
|
||||
</fileset>
|
||||
</copy>
|
||||
|
||||
<!-- Create or Cleanup Working Directory -->
|
||||
<mkdir dir="${sandcastle.workingdir}" if="${not directory::exists(sandcastle.workingdir)}" />
|
||||
<delete>
|
||||
<fileset basedir="${sandcastle.workingdir}">
|
||||
<include name="**\*" />
|
||||
</fileset>
|
||||
</delete>
|
||||
|
||||
<copy file="${sandcastle.buildassembler.config}" tofile="${sandcastle.workingdir}\Sandcastle.config">
|
||||
<filterchain>
|
||||
<replacestring from="%DXROOT%\" to="${sandcastle.dir}" />
|
||||
<replacestring from=".\comments.xml" to="${docs.dir}\*.xml" />
|
||||
</filterchain>
|
||||
</copy>
|
||||
|
||||
<!-- Run MRefBuilder (introspection on assemblies) to create basic Reflection XML -->
|
||||
<exec program="${sandcastle.mrefbuilder}" workingdir="${sandcastle.workingdir}">
|
||||
<arg value=""${build.dir}\bin\businesslogic.dll" " />
|
||||
<arg value=""${build.dir}\bin\cms.dll" " />
|
||||
<arg value=""${build.dir}\bin\controls.dll" " />
|
||||
<arg value=""${build.dir}\bin\interfaces.dll" " />
|
||||
<arg value=""${build.dir}\bin\umbraco.datalayer.dll" " />
|
||||
<arg value=""${build.dir}\bin\umbraco.dll" " />
|
||||
<arg value=""${build.dir}\bin\umbraco.editorcontrols.dll" " />
|
||||
<arg value=""${build.dir}\bin\umbraco.providers.dll" " />
|
||||
<arg value=""${build.dir}\bin\umbraco.webservices.dll" " />
|
||||
<arg value="/out:reflection.org" />
|
||||
</exec>
|
||||
|
||||
<!-- Regroup overloads -->
|
||||
<exec program="${sandcastle.xsltransform}" workingdir="${sandcastle.workingdir}">
|
||||
<arg value="reflection.org" />
|
||||
<arg value="/xsl:"${sandcastle.addfriendlyfilenames.xsl}"" />
|
||||
<arg value="/out:reflection.xml" />
|
||||
</exec>
|
||||
|
||||
|
||||
<exec program="${sandcastle.xsltransform}" workingdir="${sandcastle.workingdir}">
|
||||
<arg value="reflection.org" />
|
||||
<arg value="/xsl:"${sandcastle.reflectiontomanifest.xsl}"" />
|
||||
<arg value="/out:manifest.xml" />
|
||||
</exec>
|
||||
|
||||
<exec program="${sandcastle.buildassembler}" workingdir="${sandcastle.workingdir}">
|
||||
<arg value="/config:Sandcastle.config" />
|
||||
<arg value="manifest.xml" />
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
|
||||
<!-- do the full release with docs, minify and nightly file distribution -->
|
||||
<target name="release" depends="zip,minify">
|
||||
<property name="assembly.name" value="${ assemblyname::get-version( assemblyname::get-assembly-name('umbraco/presentation/bin/umbraco.dll') ) }"/>
|
||||
<property name="release.filename" value="${root.dir}\build_${build.version}_${assembly.name}.zip" />
|
||||
|
||||
<mkdir dir="${public.dir}\${build.version}" />
|
||||
<copy file="${release.filename}" tofile="${public.dir}\${build.version}\${assembly.name}.zip" />
|
||||
</target>
|
||||
|
||||
<!-- do the full release with docs, minify and nightly file distribution -->
|
||||
<target name="zip" depends="directories">
|
||||
<property name="assembly.name" value="${ assemblyname::get-version( assemblyname::get-assembly-name('umbraco/presentation/bin/umbraco.dll') ) }"/>
|
||||
<property name="release.filename" value="${root.dir}\build_${build.version}_${assembly.name}.zip" />
|
||||
|
||||
<zip zipfile="${release.filename}" includeemptydirs="true" >
|
||||
<fileset basedir="${root.dir}">
|
||||
<include name="build/*" />
|
||||
<include name="build/**/*" />
|
||||
</fileset>
|
||||
</zip>
|
||||
</target>
|
||||
|
||||
<!-- do a nightly build without the minification and docs -->
|
||||
<target name="nightly" depends="zip">
|
||||
<property name="assembly.name" value="${ assemblyname::get-version( assemblyname::get-assembly-name('umbraco/presentation/bin/umbraco.dll') ) }"/>
|
||||
<property name="release.filename" value="${root.dir}\build_${build.version}_${assembly.name}.zip" />
|
||||
|
||||
<mkdir dir="${public.dir}\${build.version}" />
|
||||
<copy file="${release.filename}" tofile="${public.dir}\${build.version}\${assembly.name}.zip" />
|
||||
</target>
|
||||
|
||||
<!-- will produce the a clean /build folder and nothing else-->
|
||||
<target name="test" depends="directories">
|
||||
|
||||
</target>
|
||||
|
||||
<target name="webPIRelease" depends="release,webPiFile">
|
||||
<copy file="${root.dir}\webPi_sha.txt" tofile="${public.dir}\${build.version}\webPi_sha.txt" />
|
||||
<copy file="${root.dir}\Umbraco_${build.version}_WebDeploy.zip" tofile="${public.dir}\${build.version}\Umbraco_${build.version}_WebDeploy.zip" />
|
||||
</target>
|
||||
|
||||
<!-- do the webdeploy release for web PI-->
|
||||
<target name="webPiFile" depends="directories">
|
||||
|
||||
<property name="webpi.dir" value="${root.dir}\deploy" />
|
||||
|
||||
<delete dir="${webpi.dir}\umbraco" />
|
||||
|
||||
<mkdir dir="${webpi.dir}" />
|
||||
<mkdir dir="${webpi.dir}\umbraco" />
|
||||
|
||||
<copy todir="${webpi.dir}\umbraco" includeemptydirs="true" >
|
||||
<fileset basedir="${root.dir}">
|
||||
<include name="build/*" />
|
||||
<include name="build/**/*" />
|
||||
</fileset>
|
||||
</copy>
|
||||
|
||||
<copy file="d:\webpiAssets\installSQL.sql" tofile="${webpi.dir}\installSQL.sql" failonerror="false"/>
|
||||
<copy file="d:\webpiAssets\manifest.xml" tofile="${webpi.dir}\manifest.xml" failonerror="false"/>
|
||||
<copy file="d:\webpiAssets\parameters.xml" tofile="${webpi.dir}\parameters.xml" failonerror="false"/>
|
||||
|
||||
<property name="webpi.filename" value="${root.dir}\Umbraco_${build.version}_WebDeploy.zip" />
|
||||
<zip zipfile="${webpi.filename}" includeemptydirs="true" >
|
||||
<fileset basedir="${webpi.dir}">
|
||||
<include name="*" />
|
||||
<include name="**/*" />
|
||||
</fileset>
|
||||
</zip>
|
||||
|
||||
<exec program="${win.dir}\hashMyFiles.exe">
|
||||
<arg value="/file "${webpi.filename}"" />
|
||||
<arg value="/stext "${root.dir}\webPi_sha.txt"" />
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
|
||||
<target name="init" description="init tasks for the build">
|
||||
|
||||
<!-- Clean the plugins dir any leftovers, only tinyMCE belongs in here -->
|
||||
<delete>
|
||||
<fileset>
|
||||
<include name="${build.dir}\umbraco\plugins\*" />
|
||||
<exclude name="${build.dir}\umbraco\plugins\tinymce3" />
|
||||
</fileset>
|
||||
</delete>
|
||||
|
||||
<delete dir="${build.dir}" />
|
||||
<mkdir dir="${build.dir}" />
|
||||
</target>
|
||||
|
||||
|
||||
</project>
|
||||
@@ -1,229 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<configSections >
|
||||
<section name="urlrewritingnet" restartOnExternalChanges="true" requirePermission="false" type="UrlRewritingNet.Configuration.UrlRewriteSection, UrlRewritingNet.UrlRewriter" />
|
||||
<section name="microsoft.scripting" type="Microsoft.Scripting.Hosting.Configuration.Section, Microsoft.Scripting, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" />
|
||||
|
||||
<!-- ASPNETAJAX -->
|
||||
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
|
||||
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
|
||||
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
|
||||
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
|
||||
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere" />
|
||||
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
|
||||
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
|
||||
<section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
|
||||
</sectionGroup>
|
||||
</sectionGroup>
|
||||
</sectionGroup>
|
||||
|
||||
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<section name="umbraco.presentation.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
|
||||
</sectionGroup>
|
||||
|
||||
<section name="clientDependency" type="ClientDependency.Core.Config.ClientDependencySection, ClientDependency.Core" requirePermission="false"/>
|
||||
<section name="Examine" type="Examine.Config.ExamineSettings, Examine" requirePermission="false"/>
|
||||
<section name="ExamineLuceneIndexSets" type="UmbracoExamine.Config.ExamineLuceneIndexes, UmbracoExamine" requirePermission="false"/>
|
||||
</configSections>
|
||||
|
||||
<urlrewritingnet configSource="config\UrlRewriting.config" />
|
||||
<microsoft.scripting configSource="config\scripting.config" />
|
||||
<clientDependency configSource="config\ClientDependency.config" />
|
||||
<Examine configSource="config\ExamineSettings.config" />
|
||||
<ExamineLuceneIndexSets configSource="config\ExamineIndex.config" />
|
||||
|
||||
<appSettings>
|
||||
<add key="umbracoDbDSN" value="server=.\SQLEXPRESS;database=DATABASE;user id=USER;password=PASS" />
|
||||
<add key="umbracoConfigurationStatus" value="" />
|
||||
<add key="umbracoReservedUrls" value="~/config/splashes/booting.aspx,~/install/default.aspx,~/config/splashes/noNodes.aspx,~/VSEnterpriseHelper.axd" />
|
||||
<add key="umbracoReservedPaths" value="~/umbraco,~/install/" />
|
||||
<add key="umbracoContentXML" value="~/App_Data/umbraco.config" />
|
||||
<add key="umbracoStorageDirectory" value="~/App_Data" />
|
||||
<add key="umbracoPath" value="~/umbraco" />
|
||||
<add key="umbracoEnableStat" value="false" />
|
||||
<add key="umbracoHideTopLevelNodeFromPath" value="true" />
|
||||
<add key="umbracoEditXhtmlMode" value="true" />
|
||||
<add key="umbracoUseDirectoryUrls" value="false" />
|
||||
<add key="umbracoDebugMode" value="true" />
|
||||
<add key="umbracoTimeOutInMinutes" value="20" />
|
||||
<add key="umbracoVersionCheckPeriod" value="7" />
|
||||
<add key="umbracoDisableXsltExtensions" value="true" />
|
||||
<add key="umbracoDefaultUILanguage" value="en" />
|
||||
<add key="umbracoProfileUrl" value="profiler" />
|
||||
<add key="umbracoUseSSL" value="false" />
|
||||
<add key="umbracoUseMediumTrust" value="false" />
|
||||
<add key="umbracoContentXMLUseLocalTemp" value="false" />
|
||||
</appSettings>
|
||||
<system.net>
|
||||
<mailSettings>
|
||||
<smtp>
|
||||
<network host="127.0.0.1" userName="username" password="password" />
|
||||
</smtp>
|
||||
</mailSettings>
|
||||
</system.net>
|
||||
<!-- REMOVE FOR BETA -->
|
||||
<!-- added by NH to test foreign membership providers-->
|
||||
<connectionStrings>
|
||||
<remove name="LocalSqlServer" />
|
||||
<!--<add name="LocalSqlServer" connectionString="server=.\sqlexpress;database=aspnetdb;user id=DBUSER;password=DBPASSWORD" providerName="System.Data.SqlClient"/>-->
|
||||
</connectionStrings>
|
||||
<system.web>
|
||||
<!-- <trust level="Medium" originUrl=".*" /> -->
|
||||
<customErrors mode="Off" />
|
||||
<trace enabled="true" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true" />
|
||||
<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="20" />
|
||||
<globalization requestEncoding="UTF-8" responseEncoding="UTF-8" />
|
||||
<xhtmlConformance mode="Strict" />
|
||||
|
||||
<pages enableEventValidation="false">
|
||||
<!-- ASPNETAJAX -->
|
||||
<controls>
|
||||
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
||||
<add tagPrefix="umbraco" namespace="umbraco.presentation.templateControls" assembly="umbraco" />
|
||||
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
||||
</controls>
|
||||
</pages>
|
||||
|
||||
<httpModules>
|
||||
<!-- URL REWRTIER -->
|
||||
<add name="UrlRewriteModule" type="UrlRewritingNet.Web.UrlRewriteModule, UrlRewritingNet.UrlRewriter" />
|
||||
<add name="umbracoRequestModule" type="umbraco.presentation.requestModule" />
|
||||
|
||||
<!-- UMBRACO -->
|
||||
<add name="viewstateMoverModule" type="umbraco.presentation.viewstateMoverModule, umbraco" />
|
||||
<add name="umbracoBaseRequestModule" type="umbraco.presentation.umbracobase.requestModule, umbraco" />
|
||||
|
||||
<!-- ASPNETAJAX -->
|
||||
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
||||
|
||||
<!-- CLIENT DEPENDENCY -->
|
||||
<add name="ClientDependencyModule" type="ClientDependency.Core.Module.ClientDependencyModule, ClientDependency.Core"/>
|
||||
</httpModules>
|
||||
|
||||
<httpHandlers>
|
||||
<remove verb="*" path="*.asmx"/>
|
||||
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
||||
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
||||
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
|
||||
|
||||
<!-- UMBRACO CHANNELS -->
|
||||
<add verb="*" path="umbraco/channels.aspx" type="umbraco.presentation.channels.api, umbraco" />
|
||||
<add verb="*" path="umbraco/channels/word.aspx" type="umbraco.presentation.channels.wordApi, umbraco" />
|
||||
|
||||
<!-- CLIENT DEPENDENCY -->
|
||||
<add verb="*" path="DependencyHandler.axd" type="ClientDependency.Core.CompositeFiles.CompositeDependencyHandler, ClientDependency.Core "/>
|
||||
|
||||
<!-- SPELL CHECKER -->
|
||||
<add verb="GET,HEAD,POST" path="GoogleSpellChecker.ashx" type="umbraco.presentation.umbraco_client.tinymce3.plugins.spellchecker.GoogleSpellChecker,umbraco" />
|
||||
</httpHandlers>
|
||||
|
||||
<compilation defaultLanguage="c#" debug="false" batch="false">
|
||||
<assemblies>
|
||||
<!-- ASPNETAJAX -->
|
||||
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
|
||||
<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
|
||||
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
||||
<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
|
||||
<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
|
||||
<add assembly="System.Web.Extensions.Design, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
||||
<add assembly="System.Web.Abstractions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
|
||||
</assemblies>
|
||||
</compilation>
|
||||
|
||||
<authentication mode="Forms">
|
||||
<forms name="yourAuthCookie" loginUrl="login.aspx" protection="All" path="/" />
|
||||
</authentication>
|
||||
|
||||
<authorization>
|
||||
<allow users="?" />
|
||||
</authorization>
|
||||
|
||||
<!-- Membership Provider -->
|
||||
<membership defaultProvider="UmbracoMembershipProvider" userIsOnlineTimeWindow="15">
|
||||
<providers>
|
||||
<clear />
|
||||
<add name="UmbracoMembershipProvider" type="umbraco.providers.members.UmbracoMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" defaultMemberTypeAlias="Another Type" passwordFormat="Hashed" />
|
||||
<add name="UsersMembershipProvider" type="umbraco.providers.UsersMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" passwordFormat="Hashed" />
|
||||
</providers>
|
||||
</membership>
|
||||
|
||||
<!-- added by NH to support membership providers in access layer -->
|
||||
<roleManager enabled="true" defaultProvider="UmbracoRoleProvider">
|
||||
<providers>
|
||||
<clear />
|
||||
<add name="UmbracoRoleProvider" type="umbraco.providers.members.UmbracoRoleProvider" />
|
||||
</providers>
|
||||
</roleManager>
|
||||
|
||||
<!-- Sitemap provider-->
|
||||
<siteMap defaultProvider="UmbracoSiteMapProvider" enabled="true">
|
||||
<providers>
|
||||
<clear />
|
||||
<add name="UmbracoSiteMapProvider" type="umbraco.presentation.nodeFactory.UmbracoSiteMapProvider" defaultDescriptionAlias="description" securityTrimmingEnabled="true" />
|
||||
</providers>
|
||||
</siteMap>
|
||||
</system.web>
|
||||
|
||||
|
||||
<system.webServer>
|
||||
<validation validateIntegratedModeConfiguration="false" />
|
||||
<modules>
|
||||
<remove name="ScriptModule" />
|
||||
<remove name="UrlRewriteModule" />
|
||||
<remove name="umbracoRequestModule" />
|
||||
<remove name="viewstateMoverModule" />
|
||||
<remove name="umbracoBaseRequestModule" />
|
||||
<remove name="ClientDependencyModule" />
|
||||
|
||||
<add name="UrlRewriteModule" type="UrlRewritingNet.Web.UrlRewriteModule, UrlRewritingNet.UrlRewriter" />
|
||||
<add name="umbracoRequestModule" type="umbraco.presentation.requestModule" />
|
||||
<add name="viewstateMoverModule" type="umbraco.presentation.viewstateMoverModule" />
|
||||
<add name="umbracoBaseRequestModule" type="umbraco.presentation.umbracobase.requestModule" />
|
||||
<add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
||||
<add name="ClientDependencyModule" type="ClientDependency.Core.Module.ClientDependencyModule, ClientDependency.Core"/>
|
||||
</modules>
|
||||
|
||||
<handlers accessPolicy="Read, Write, Script, Execute">
|
||||
<remove name="WebServiceHandlerFactory-Integrated" />
|
||||
<remove name="ScriptHandlerFactory" />
|
||||
<remove name="ScriptHandlerFactoryAppServices" />
|
||||
<remove name="ScriptResource" />
|
||||
<remove name="Channels" />
|
||||
<remove name="Channels_Word" />
|
||||
<remove name="ClientDependency" />
|
||||
<remove name="SpellChecker" />
|
||||
|
||||
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
||||
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
||||
<add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
||||
|
||||
<add verb="*" name="Channels" preCondition="integratedMode" path="umbraco/channels.aspx" type="umbraco.presentation.channels.api, umbraco" />
|
||||
<add verb="*" name="Channels_Word" preCondition="integratedMode" path="umbraco/channels/word.aspx" type="umbraco.presentation.channels.wordApi, umbraco" />
|
||||
<add verb="*" name="ClientDependency" preCondition="integratedMode" path="DependencyHandler.axd" type="ClientDependency.Core.CompositeFiles.CompositeDependencyHandler, ClientDependency.Core "/>
|
||||
<add verb="GET,HEAD,POST" preCondition="integratedMode" name="SpellChecker" path="GoogleSpellChecker.ashx" type="umbraco.presentation.umbraco_client.tinymce3.plugins.spellchecker.GoogleSpellChecker,umbraco"/>
|
||||
</handlers>
|
||||
</system.webServer>
|
||||
|
||||
<system.codedom>
|
||||
<compilers>
|
||||
<compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider,System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">
|
||||
<providerOption name="CompilerVersion" value="v3.5" />
|
||||
<providerOption name="WarnAsError" value="false" />
|
||||
</compiler>
|
||||
</compilers>
|
||||
</system.codedom>
|
||||
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
|
||||
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
|
||||
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
|
||||
</configuration>
|
||||
@@ -1,6 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<build>
|
||||
<version>4.0 Beta 2</version>
|
||||
<assembly>@assembly@</assembly>
|
||||
<date>@date@</date>
|
||||
</build>
|
||||
@@ -1,495 +0,0 @@
|
||||
<?xml version="1.0" ?>
|
||||
<project name="umbraco" default="test" basedir=".">
|
||||
<description>Build the umbraco 4.5 Application</description>
|
||||
|
||||
<!-- global properties, generally won't change -->
|
||||
<!--
|
||||
<property name="nant.settings.currentframework" value="net-2.0" />
|
||||
-->
|
||||
<property name="nant.settings.currentframework" value="net-4.0" />,
|
||||
|
||||
<property name="build.version" value="4.8.0"/>
|
||||
<property name="build.configuration" value="Debug"/>
|
||||
|
||||
|
||||
<!-- filenames and directories, generally won't change -->
|
||||
|
||||
<property name="web.dir" value="D:\inetpub\wwwroot\v4.umbraco.org" />
|
||||
<property name="public.dir" value="C:\inetpub\wwwroot\_Live Sites\nightly.umbraco.org\umbraco 4.7.2" />
|
||||
<property name="root.dir" value="${directory::get-current-directory()}" />
|
||||
<property name="source.dir" value="${root.dir}\umbraco\presentation" />
|
||||
|
||||
<property name="build.dir" value="${root.dir}\build" />
|
||||
<property name="build.symbolFiles.dir" value="${root.dir}\SymbolFiles" />
|
||||
<property name="build.macroEnginesIron.dir" value="${root.dir}\umbraco.macroEngines.Iron_build" />
|
||||
|
||||
<property name="dlls.dir" value="${root.dir}\foreign dlls" />
|
||||
|
||||
<property name="WebPiAssets.dir" value="${root.dir}\config templates\WebPi" />
|
||||
|
||||
|
||||
|
||||
<property name="docs.dir" value="${root.dir}\docs" />
|
||||
|
||||
<property name="win.dir" value="c:\WINDOWS" />
|
||||
<property name="Webdeploy.dir" value="C:\Program Files\MSBuild\Microsoft\WebDeployment\v8.0" />
|
||||
|
||||
<!-- Sandcastle Directories -->
|
||||
<property name="sandcastle.dir" value="c:\Program Files\Sandcastle" />
|
||||
<property name="sandcastle.workingdir" value="${root.dir}\docs\SandcastleWorkingDir" />
|
||||
<property name="sandcastle.output.dir" value="${sandcastle.workingdir}\Output" />
|
||||
|
||||
<!-- Sandcastle -->
|
||||
<property name="sandcastle.mrefbuilder" value="${sandcastle.dir}\productiontools\mrefbuilder.exe" />
|
||||
<property name="sandcastle.buildassembler" value="${sandcastle.dir}\productiontools\buildassembler.exe" />
|
||||
<property name="sandcastle.xsltransform" value="${sandcastle.dir}\productiontools\xsltransform.exe" />
|
||||
|
||||
<!-- YUI -->
|
||||
<property name="YUICompressor.dir" value="D:\inetpub\wwwroot\ccnet\buildTools\YUI" />
|
||||
|
||||
<!-- Build source -->
|
||||
<target name="build" depends="init">
|
||||
|
||||
<!-- set everything to writable-->
|
||||
<attrib normal="true" readonly="false">
|
||||
<fileset basedir="${root.dir}">
|
||||
<include name="**/*" />
|
||||
</fileset>
|
||||
</attrib>
|
||||
|
||||
<delete>
|
||||
<fileset>
|
||||
<include name="${source.dir}\bin\IronPython.dll" />
|
||||
<include name="${source.dir}\bin\IronPython.Modules.dll" />
|
||||
<include name="${source.dir}\bin\IronRuby.dll" />
|
||||
<include name="${source.dir}\bin\IronRuby.Libraries.dll" />
|
||||
<include name="${source.dir}\bin\IronRuby.Libraries.Yaml.dll" />
|
||||
<include name="${source.dir}\bin\Microsoft.Dynamic.dll" />
|
||||
<include name="${source.dir}\bin\Microsoft.ScriptinG.Core.dll" />
|
||||
<include name="${source.dir}\bin\Microsoft.Scripting.Debugging.dll" />
|
||||
<include name="${source.dir}\bin\Microsoft.Scripting.dll" />
|
||||
<include name="${source.dir}\bin\Microsoft.Scripting.ExtensionAttribute.dll" />
|
||||
</fileset>
|
||||
</delete>
|
||||
|
||||
|
||||
<exec program="${win.dir}\microsoft.net\framework\v4.0.30319\msbuild.exe">
|
||||
<arg value="${root.dir}\umbraco.MacroEngines.Juno\umbraco.MacroEngines.csproj" />
|
||||
<arg value="/v:n" />
|
||||
<arg value="/p:WarningLevel=0" />
|
||||
<arg value="/p:ToolsVersion=4.0" />
|
||||
<arg value="/p:Configuration=${build.configuration}" />
|
||||
</exec>
|
||||
|
||||
|
||||
<copy file="${root.dir}\umbraco.MacroEngines.Juno\bin\${build.configuration}\umbraco.MacroEngines.dll" tofile="${source.dir}\bin\umbraco.MacroEngines.dll" failonerror="false" overwrite="true"/>
|
||||
|
||||
<copy todir="${source.dir}\bin" overwrite="true">
|
||||
<fileset basedir="${dlls.dir}\WebPages">
|
||||
<include name="*.dll" />
|
||||
</fileset>
|
||||
</copy>
|
||||
|
||||
|
||||
<exec program="${win.dir}\microsoft.net\framework\v4.0.30319\msbuild.exe">
|
||||
<arg value="${root.dir}\umbraco.sln" />
|
||||
<arg value="/v:n" />
|
||||
<arg value="/p:WarningLevel=0" />
|
||||
<arg value="/p:ToolsVersion=4.0" />
|
||||
<arg value="/p:Configuration=${build.configuration}" />
|
||||
</exec>
|
||||
<exec program="${win.dir}\microsoft.net\framework\v4.0.30319\aspnet_compiler.exe" commandline="-f -u -p umbraco/presentation -v / "${build.dir}""/>
|
||||
|
||||
|
||||
<call target="buildMacroEnginesIron" />
|
||||
|
||||
<call target="buildSymbolFiles" />
|
||||
|
||||
</target>
|
||||
|
||||
|
||||
<target name="buildMacroEnginesIron">
|
||||
|
||||
<mkdir dir="${build.macroEnginesIron.dir}" />
|
||||
<mkdir dir="${build.macroEnginesIron.dir}\bin" />
|
||||
|
||||
<copy todir="${build.macroEnginesIron.dir}\bin" overwrite="true">
|
||||
<fileset basedir="${dlls.dir}\DLR 4.0">
|
||||
<include name="*.dll" />
|
||||
<exclude name="Microsoft.Scripting.ExtensionAttribute.dll" />
|
||||
</fileset>
|
||||
</copy>
|
||||
|
||||
<copy file="${root.dir}\umbraco.MacroEngines.Iron\bin\${build.configuration}\umbraco.MacroEngines.Iron.dll" tofile="${build.macroEnginesIron.dir}\bin\umbraco.MacroEngines.Iron.dll" failonerror="false" overwrite="true"/>
|
||||
|
||||
</target>
|
||||
|
||||
|
||||
<target name="buildSymbolFiles">
|
||||
|
||||
<!-- setup symbol files -->
|
||||
<mkdir dir="${build.symbolFiles.dir}" />
|
||||
|
||||
<copy todir="${build.symbolFiles.dir}" flatten="true">
|
||||
<fileset basedir="${build.dir}\bin">
|
||||
<include name="*.xml" />
|
||||
<include name="*.pdb" />
|
||||
</fileset>
|
||||
</copy>
|
||||
|
||||
<copy todir="${build.symbolFiles.dir}" flatten="true">
|
||||
<fileset basedir="${root.dir}" >
|
||||
<include name="**/*.pdb" />
|
||||
<include name="**/bin/*.xml" />
|
||||
</fileset>
|
||||
</copy>
|
||||
|
||||
<copy todir="${build.symbolFiles.dir}" flatten="true">
|
||||
<fileset basedir="${docs.dir}">
|
||||
<include name="*.xml" />
|
||||
</fileset>
|
||||
</copy>
|
||||
|
||||
</target>
|
||||
|
||||
|
||||
|
||||
<!-- Directories and files -->
|
||||
<target name="directories" depends="build">
|
||||
|
||||
<!-- setup docs files -->
|
||||
<mkdir dir="${docs.dir}" />
|
||||
<copy todir="${docs.dir}">
|
||||
<fileset basedir="${build.dir}\bin">
|
||||
<include name="*.xml" />
|
||||
</fileset>
|
||||
</copy>
|
||||
|
||||
<!-- DLR FILES -->
|
||||
<delete>
|
||||
<fileset>
|
||||
<include name="${build.dir}\bin\Microsoft.Scripting.*" />
|
||||
<include name="${build.dir}\bin\Microsoft.Dynamic.*" />
|
||||
<include name="${build.dir}\bin\IronPython.*" />
|
||||
<include name="${build.dir}\bin\IronRuby.*" />
|
||||
</fileset>
|
||||
</delete>
|
||||
|
||||
<!--
|
||||
<copy todir="${build.dir}\bin" overwrite="true">
|
||||
<fileset basedir="${dlls.dir}\DLR 4.0">
|
||||
<include name="*.dll" />
|
||||
<exclude name="Microsoft.Scripting.ExtensionAttribute.dll" />
|
||||
</fileset>
|
||||
</copy>
|
||||
-->
|
||||
|
||||
<!--standard web.config-->
|
||||
<copy file="${root.dir}\config templates\web.config" tofile="${build.dir}\web.config" failonerror="false" overwrite="true"/>
|
||||
|
||||
<!--standard /config files-->
|
||||
<copy file="${root.dir}\config templates\config\404handlers.config" tofile="${build.dir}\config\404handlers.config" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\config templates\config\dashboard.config" tofile="${build.dir}\config\dashboard.config" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\config templates\config\formhandlers.config" tofile="${build.dir}\config\formhandlers.config" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\config templates\config\metablogconfig.config" tofile="${build.dir}\config\metablogconfig.config" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\config templates\config\restextensions.config" tofile="${build.dir}\config\restextensions.config" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\config templates\config\xsltextensions.config" tofile="${build.dir}\config\xsltextensions.config" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\config templates\config\tinymceconfig.config" tofile="${build.dir}\config\tinymceconfig.config" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\config templates\config\umbracosettings.config" tofile="${build.dir}\config\umbracosettings.config" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\config templates\config\urlrewriting.config" tofile="${build.dir}\config\urlrewriting.config" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\config templates\config\applications.config" tofile="${build.dir}\config\applications.config" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\config templates\config\trees.config" tofile="${build.dir}\config\trees.config" failonerror="false" overwrite="true"/>
|
||||
|
||||
<!-- new 4.5 files -->
|
||||
<copy file="${root.dir}\config templates\config\ClientDependency.config" tofile="${build.dir}\config\ClientDependency.config" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\config templates\config\ExamineSettings.config" tofile="${build.dir}\config\ExamineSettings.config" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\config templates\config\ExamineIndex.config" tofile="${build.dir}\config\ExamineIndex.config" failonerror="false" overwrite="true"/>
|
||||
|
||||
<copy file="${root.dir}\config templates\config\scripting.config" tofile="${build.dir}\config\scripting.config" failonerror="false" overwrite="true"/>
|
||||
|
||||
|
||||
<!-- Macro engines files + razor Files -->
|
||||
<copy file="${root.dir}\umbraco.MacroEngines.Juno\bin\${build.configuration}\umbraco.MacroEngines.dll" tofile="${build.dir}\bin\umbraco.MacroEngines.dll" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\umbraco.MacroEngines.Juno\bin\${build.configuration}\umbraco.MacroEngines.pdb" tofile="${build.dir}\bin\umbraco.MacroEngines.pdb" failonerror="false" overwrite="true"/>
|
||||
<copy todir="${build.dir}\bin" overwrite="true">
|
||||
<fileset basedir="${dlls.dir}\WebPages">
|
||||
<include name="*.dll" />
|
||||
</fileset>
|
||||
</copy>
|
||||
|
||||
|
||||
<!--
|
||||
<copy file="${root.dir}\foreign dlls\System.Web.Razor.dll" tofile="${build.dir}\bin\System.Web.Razor.dll" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\foreign dlls\RazorEngine.Core.dll" tofile="${build.dir}\bin\RazorEngine.Core.dll" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\foreign dlls\RazorEngine.Templates.dll" tofile="${build.dir}\bin\RazorEngine.Templates.dll" failonerror="false" overwrite="true"/>
|
||||
-->
|
||||
|
||||
<!--standard /data/packages files-->
|
||||
<mkdir dir="${build.dir}\App_Data" />
|
||||
<copy file="${root.dir}\config templates\packages\installedPackages.config" tofile="${build.dir}\app_data\packages\installed\installedPackages.config" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\config templates\packages\createdPackages.config" tofile="${build.dir}\app_data\packages\created\createdPackages.config" failonerror="false" overwrite="true"/>
|
||||
|
||||
<!-- Standard access.xml file-->
|
||||
<copy file="${root.dir}\config templates\access.xml" tofile="${build.dir}\app_data\access.config" failonerror="false" overwrite="true"/>
|
||||
|
||||
<!-- Standard create UI.xml-->
|
||||
<copy file="${root.dir}\config templates\config\UI.xml" tofile="${build.dir}\umbraco\config\create\UI.xml" failonerror="false" overwrite="true"/>
|
||||
|
||||
<!-- Standard empty cache file -->
|
||||
<copy file="${root.dir}\config templates\umbraco.config" tofile="${build.dir}\umbraco\app_data\umbraco.config" failonerror="false" overwrite="true"/>
|
||||
|
||||
<!-- Baseline Language file for translation tool -->
|
||||
<copy file="${build.dir}\umbraco\config\lang\en.xml" tofile="${web.dir}\usercontrols\translation\langs\en.xml" failonerror="false" overwrite="true"/>
|
||||
|
||||
<!-- LINQ2UMB dll-->
|
||||
<copy file="${root.dir}\LinqToUmbraco\src\umbraco.Linq\Core\bin\${build.configuration}\umbraco.Linq.Core.dll" tofile="${build.dir}\bin\umbraco.Linq.Core.dll" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\LinqToUmbraco\src\umbraco.Linq\Core\bin\${build.configuration}\umbraco.Linq.Core.pdb" tofile="${build.dir}\bin\umbraco.Linq.Core.pdb" failonerror="false" overwrite="true"/>
|
||||
|
||||
<delete dir="${build.dir}\webservices" />
|
||||
<delete dir="${build.dir}\umbracoBase" />
|
||||
<delete dir="${build.dir}\Web References" />
|
||||
<delete dir="${build.dir}\obj" />
|
||||
<delete dir="${build.dir}\properties" />
|
||||
|
||||
<delete dir="${build.dir}\css" />
|
||||
<delete dir="${build.dir}\masterpages" />
|
||||
<delete dir="${build.dir}\scripts" />
|
||||
<delete dir="${build.dir}\python" />
|
||||
<delete dir="${build.dir}\macroScripts" />
|
||||
<delete dir="${build.dir}\xslt" />
|
||||
<delete dir="${build.dir}\usercontrols" />
|
||||
|
||||
<delete>
|
||||
<fileset>
|
||||
<include name="${build.dir}/**/*.build" />
|
||||
<include name="${build.dir}/**/*.csproj" />
|
||||
<include name="${build.dir}/**/*.vspscc" />
|
||||
<include name="${build.dir}/**/*.scc" />
|
||||
<include name="${build.dir}/**/*.sln" />
|
||||
<include name="${build.dir}/**/*.compiled" />
|
||||
<include name="${build.dir}/**/*.resx" />
|
||||
<include name="${build.dir}/**/*.user" />
|
||||
<include name="${build.dir}/**/*.bak" />
|
||||
|
||||
<include name="${build.dir}/**/*.orig" />
|
||||
|
||||
<include name="${build.dir}/PrecompiledApp.config" />
|
||||
<include name="${build.dir}/web.config.template" />
|
||||
<include name="${build.dir}/*.xslt" />
|
||||
<include name="${build.dir}/web.*.config" />
|
||||
<include name="${build.dir}/site.py" />
|
||||
<include name="${build.dir}/bin/umbraco.MacroEngines.Legacy.*" />
|
||||
</fileset>
|
||||
</delete>
|
||||
|
||||
<if test="${build.configuration=='Release'}">
|
||||
<delete>
|
||||
<fileset>
|
||||
<include name="${build.dir}/**/*.pdb" />
|
||||
<include name="${build.dir}/bin/*.xml" />
|
||||
</fileset>
|
||||
</delete>
|
||||
</if>
|
||||
|
||||
<!-- standard folders -->
|
||||
<mkdir dir="${build.dir}\App_Code" />
|
||||
<mkdir dir="${build.dir}\App_Data\ClientDependency" />
|
||||
<mkdir dir="${build.dir}\App_Data\ExamineIndexes" />
|
||||
|
||||
<mkdir dir="${build.dir}\media" />
|
||||
<mkdir dir="${build.dir}\masterpages" />
|
||||
<mkdir dir="${build.dir}\scripts" />
|
||||
<mkdir dir="${build.dir}\css" />
|
||||
<mkdir dir="${build.dir}\macroScripts" />
|
||||
<mkdir dir="${build.dir}\xslt" />
|
||||
<mkdir dir="${build.dir}\usercontrols" />
|
||||
</target>
|
||||
|
||||
|
||||
|
||||
<!-- Documentation -->
|
||||
<target name="documentation" depends="directories">
|
||||
<!-- Transformations -->
|
||||
<property name="sandcastle.addfriendlyfilenames.xsl" value="${sandcastle.dir}\ProductionTransforms\AddFriendlyFilenames.xsl" />
|
||||
<property name="sandcastle.reflectiontomanifest.xsl" value="${sandcastle.dir}\ProductionTransforms\ReflectionToManifest.xsl" />
|
||||
|
||||
<property name="sandcastle.buildassembler.config" value="${sandcastle.dir}\Presentation\wiki\configuration\sandcastle.config" />
|
||||
|
||||
<!-- Create a doc dir and move vs comment files to it-->
|
||||
<mkdir dir="${docs.dir}" />
|
||||
<copy todir="${docs.dir}">
|
||||
<fileset basedir="${build.dir}\bin">
|
||||
<include name="*.xml" />
|
||||
</fileset>
|
||||
</copy>
|
||||
|
||||
<!-- Create or Cleanup Working Directory -->
|
||||
<mkdir dir="${sandcastle.workingdir}" if="${not directory::exists(sandcastle.workingdir)}" />
|
||||
<delete>
|
||||
<fileset basedir="${sandcastle.workingdir}">
|
||||
<include name="**\*" />
|
||||
</fileset>
|
||||
</delete>
|
||||
|
||||
<copy file="${sandcastle.buildassembler.config}" tofile="${sandcastle.workingdir}\Sandcastle.config">
|
||||
<filterchain>
|
||||
<replacestring from="%DXROOT%\" to="${sandcastle.dir}" />
|
||||
<replacestring from=".\comments.xml" to="${docs.dir}\*.xml" />
|
||||
</filterchain>
|
||||
</copy>
|
||||
|
||||
<!-- Run MRefBuilder (introspection on assemblies) to create basic Reflection XML -->
|
||||
<exec program="${sandcastle.mrefbuilder}" workingdir="${sandcastle.workingdir}">
|
||||
<arg value=""${build.dir}\bin\businesslogic.dll" " />
|
||||
<arg value=""${build.dir}\bin\cms.dll" " />
|
||||
<arg value=""${build.dir}\bin\controls.dll" " />
|
||||
<arg value=""${build.dir}\bin\interfaces.dll" " />
|
||||
<arg value=""${build.dir}\bin\umbraco.datalayer.dll" " />
|
||||
<arg value=""${build.dir}\bin\umbraco.dll" " />
|
||||
<arg value=""${build.dir}\bin\umbraco.editorcontrols.dll" " />
|
||||
<arg value=""${build.dir}\bin\umbraco.providers.dll" " />
|
||||
<arg value=""${build.dir}\bin\umbraco.webservices.dll" " />
|
||||
<arg value="/out:reflection.org" />
|
||||
</exec>
|
||||
|
||||
<!-- Regroup overloads -->
|
||||
<exec program="${sandcastle.xsltransform}" workingdir="${sandcastle.workingdir}">
|
||||
<arg value="reflection.org" />
|
||||
<arg value="/xsl:"${sandcastle.addfriendlyfilenames.xsl}"" />
|
||||
<arg value="/out:reflection.xml" />
|
||||
</exec>
|
||||
|
||||
|
||||
<exec program="${sandcastle.xsltransform}" workingdir="${sandcastle.workingdir}">
|
||||
<arg value="reflection.org" />
|
||||
<arg value="/xsl:"${sandcastle.reflectiontomanifest.xsl}"" />
|
||||
<arg value="/out:manifest.xml" />
|
||||
</exec>
|
||||
|
||||
<exec program="${sandcastle.buildassembler}" workingdir="${sandcastle.workingdir}">
|
||||
<arg value="/config:Sandcastle.config" />
|
||||
<arg value="manifest.xml" />
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
|
||||
<!-- do the full release with docs, minify and nightly file distribution -->
|
||||
<target name="release" depends="zip">
|
||||
<property name="assembly.name" value="${ assemblyname::get-version( assemblyname::get-assembly-name('umbraco/presentation/bin/umbraco.dll') ) }"/>
|
||||
<property name="release.filename" value="${root.dir}\build_${build.version}_${assembly.name}.zip" />
|
||||
|
||||
<mkdir dir="${public.dir}\${build.version}" />
|
||||
<copy file="${release.filename}" tofile="${public.dir}\${build.version}\${assembly.name}.zip" />
|
||||
</target>
|
||||
|
||||
<!-- do the full release with docs, minify and nightly file distribution -->
|
||||
<target name="zip" depends="directories">
|
||||
<property name="assembly.name" value="${build.number}"/>
|
||||
<property name="release.filename" value="${root.dir}\build_${build.version}_${assembly.name}.zip" />
|
||||
|
||||
<zip zipfile="${release.filename}" includeemptydirs="true" >
|
||||
<fileset basedir="${root.dir}">
|
||||
<include name="build/*" />
|
||||
<include name="build/**/*" />
|
||||
</fileset>
|
||||
</zip>
|
||||
|
||||
<zip zipfile="${root.dir}\SymbolFiles.zip" includeemptydirs="true" >
|
||||
<fileset basedir="${root.dir}">
|
||||
<include name="SymbolFiles/*" />
|
||||
<include name="SymbolFiles/**/*" />
|
||||
</fileset>
|
||||
</zip>
|
||||
|
||||
<zip zipfile="${root.dir}\Umbraco.MacroEngines.Iron.zip" includeemptydirs="true" >
|
||||
<fileset basedir="${root.dir}">
|
||||
<include name="umbraco.macroEngines.Iron_build/*" />
|
||||
<include name="umbraco.macroEngines.Iron_build/**/*" />
|
||||
</fileset>
|
||||
</zip>
|
||||
</target>
|
||||
|
||||
|
||||
<!-- do a nightly build without the minification and docs -->
|
||||
<target name="nightly" depends="zip">
|
||||
<property name="assembly.name" value="${build.number}"/>
|
||||
<property name="release.filename" value="${root.dir}\build_${build.version}_${assembly.name}.zip" />
|
||||
|
||||
<mkdir dir="${public.dir}\${build.version}" />
|
||||
|
||||
<copy file="${release.filename}" tofile="${public.dir}\${build.version}\${assembly.name}.zip" />
|
||||
<copy file="${root.dir}\Umbraco.MacroEngines.Iron.zip" tofile="${public.dir}\${build.version}\Umbraco.MacroEngines.Iron.zip" />
|
||||
<copy file="${root.dir}\SymbolFiles.zip" tofile="${public.dir}\${build.version}\SymbolFiles.zip" />
|
||||
|
||||
</target>
|
||||
|
||||
<!-- will produce the a clean /build folder and nothing else-->
|
||||
<target name="test" depends="directories">
|
||||
|
||||
</target>
|
||||
|
||||
<target name="webPIRelease" depends="webPiFile">
|
||||
<copy file="${root.dir}\webPi_sha.txt" tofile="${public.dir}\${build.version}\Umbraco_${build.version}_WebDeploy_sha.txt" />
|
||||
<copy file="${root.dir}\Umbraco_${build.version}_WebDeploy.zip" tofile="${public.dir}\${build.version}\Umbraco_${build.version}_WebDeploy.zip" />
|
||||
</target>
|
||||
|
||||
<!-- do the webdeploy release for web PI-->
|
||||
<target name="webPiFile" depends="directories">
|
||||
|
||||
<property name="webpi.dir" value="${root.dir}\deploy" />
|
||||
|
||||
<delete dir="${webpi.dir}\umbraco" />
|
||||
|
||||
<mkdir dir="${webpi.dir}" />
|
||||
<mkdir dir="${webpi.dir}\umbraco" />
|
||||
|
||||
<copy todir="${webpi.dir}\umbraco" includeemptydirs="true" >
|
||||
<fileset basedir="${root.dir}\build">
|
||||
<include name="*" />
|
||||
<include name="**/*" />
|
||||
</fileset>
|
||||
</copy>
|
||||
|
||||
<copy todir="${webpi.dir}\umbraco\bin" includeemptydirs="true" >
|
||||
<fileset basedir="${dlls.dir}\SQLCE4">
|
||||
<include name="*" />
|
||||
<include name="**/*" />
|
||||
</fileset>
|
||||
</copy>
|
||||
|
||||
<copy file="${root.dir}\components\SQLCE4Umbraco\bin\${build.configuration}\SQLCE4Umbraco.dll" tofile="${webpi.dir}\umbraco\bin\SQLCE4Umbraco.dll" failonerror="false" overwrite="true"/>
|
||||
|
||||
<copy file="${WebPiAssets.dir}\installSQL.sql" tofile="${webpi.dir}\installSQL.sql" failonerror="false"/>
|
||||
<copy file="${WebPiAssets.dir}\manifest.xml" tofile="${webpi.dir}\manifest.xml" failonerror="false"/>
|
||||
<copy file="${WebPiAssets.dir}\parameters.xml" tofile="${webpi.dir}\parameters.xml" failonerror="false"/>
|
||||
|
||||
<property name="webpi.filename" value="${root.dir}\Umbraco_${build.version}_WebDeploy.zip" />
|
||||
<zip zipfile="${webpi.filename}" includeemptydirs="true" >
|
||||
<fileset basedir="${webpi.dir}">
|
||||
<include name="*" />
|
||||
<include name="**/*" />
|
||||
</fileset>
|
||||
</zip>
|
||||
|
||||
<exec program="${win.dir}\hashMyFiles.exe">
|
||||
<arg value="/file "${webpi.filename}"" />
|
||||
<arg value="/stext "${root.dir}\webPi_sha.txt"" />
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
<target name="init" description="init tasks for the build">
|
||||
|
||||
<!-- Clean the plugins dir any leftovers, only tinyMCE belongs in here -->
|
||||
<delete>
|
||||
<fileset>
|
||||
<include name="${build.dir}\umbraco\plugins\*" />
|
||||
<exclude name="${build.dir}\umbraco\plugins\tinymce3" />
|
||||
</fileset>
|
||||
</delete>
|
||||
|
||||
<delete dir="${build.dir}" />
|
||||
<mkdir dir="${build.dir}" />
|
||||
</target>
|
||||
|
||||
|
||||
</project>
|
||||
@@ -1,149 +0,0 @@
|
||||
<?xml version="1.0" ?>
|
||||
<project name="umbraco" default="test" basedir=".">
|
||||
<description>Build the umbraco 4.6 Application for asp.net 3.5</description>
|
||||
|
||||
<property name="nant.settings.currentframework" value="net-2.0" />
|
||||
|
||||
<!-- filenames and directories, generally won't change -->
|
||||
|
||||
<property name="public.dir" value="C:\Users\per\Documents\Projects\NugetServer\GalleryServer\src\Gallery.Server\App_Data\packages" />
|
||||
|
||||
|
||||
<property name="root.dir" value="${directory::get-current-directory()}" />
|
||||
<property name="source.dir" value="${root.dir}\umbraco\presentation" />
|
||||
<property name="build.dir" value="${root.dir}\build" />
|
||||
<property name="dlls.dir" value="${root.dir}\foreign dlls" />
|
||||
|
||||
<property name="nuget.dir" value="${root.dir}\nuget" />
|
||||
<property name="nuget.app" value="C:\Program Files (x86)\nuget\nuget.exe" />
|
||||
<property name="nuget.spec" value="${public.dir}\..\umbraco.nuspec" />
|
||||
|
||||
<property name="build.version" value="4.6.Beta"/>
|
||||
|
||||
<property name="win.dir" value="C:\windows" />
|
||||
|
||||
<target name="build" depends="init">
|
||||
<!-- set everything to writable-->
|
||||
<attrib normal="true" readonly="false">
|
||||
<fileset basedir="${root.dir}">
|
||||
<include name="**/*" />
|
||||
</fileset>
|
||||
</attrib>
|
||||
|
||||
<!-- Remove those damn DLR dlls that might be left behind by careless devs...-->
|
||||
<!-- They will get added again after build is completed, no worries no dependencies during build-->
|
||||
<delete>
|
||||
<fileset>
|
||||
<include name="${source.dir}\bin\IronPython.dll" />
|
||||
<include name="${source.dir}\bin\IronPython.Modules.dll" />
|
||||
<include name="${source.dir}\bin\IronRuby.dll" />
|
||||
<include name="${source.dir}\bin\IronRuby.Libraries.dll" />
|
||||
<include name="${source.dir}\bin\IronRuby.Libraries.Yaml.dll" />
|
||||
<include name="${source.dir}\bin\Microsoft.Dynamic.dll" />
|
||||
<include name="${source.dir}\bin\Microsoft.ScriptinG.Core.dll" />
|
||||
<include name="${source.dir}\bin\Microsoft.Scripting.Debugging.dll" />
|
||||
<include name="${source.dir}\bin\Microsoft.Scripting.dll" />
|
||||
<include name="${source.dir}\bin\Microsoft.Scripting.ExtensionAttribute.dll" />
|
||||
</fileset>
|
||||
</delete>
|
||||
|
||||
<!-- build for 2.0 -->
|
||||
<exec program="${win.dir}\microsoft.net\framework\v4.0.30319\msbuild.exe">
|
||||
<arg value="${root.dir}\umbraco.sln" />
|
||||
<arg value="/v:n" />
|
||||
<arg value="/p:WarningLevel=0" />
|
||||
<arg value="/p:ToolsVersion=3.5" />
|
||||
</exec>
|
||||
<exec program="${win.dir}\microsoft.net\framework\v2.0.50727\aspnet_compiler.exe" commandline="-f -u -p umbraco/presentation -v / "${build.dir}\Net20""/>
|
||||
|
||||
|
||||
<!-- build for 4.0 -->
|
||||
<exec program="${win.dir}\microsoft.net\framework\v4.0.30319\msbuild.exe">
|
||||
<arg value="${root.dir}\umbraco.sln" />
|
||||
<arg value="/v:n" />
|
||||
<arg value="/p:WarningLevel=0" />
|
||||
<arg value="/p:ToolsVersion=4.0" />
|
||||
</exec>
|
||||
<exec program="${win.dir}\microsoft.net\framework\v2.0.50727\aspnet_compiler.exe" commandline="-f -u -p umbraco/presentation -v / "${build.dir}\Net40""/>
|
||||
</target>
|
||||
|
||||
|
||||
|
||||
<!-- Directories and files -->
|
||||
<target name="directories" depends="build">
|
||||
<!-- asp.net 2.0 SP1 DLR dlls -->
|
||||
<delete>
|
||||
<fileset>
|
||||
<include name="${build.dir}\**\*" />
|
||||
|
||||
<exclude name="${build.dir}\**\businesslogic.dll" />
|
||||
<exclude name="${build.dir}\**\cms.dll" />
|
||||
<exclude name="${build.dir}\**\controls.dll" />
|
||||
<exclude name="${build.dir}\**\Examine.dll" />
|
||||
|
||||
<exclude name="${build.dir}\**\interfaces.dll" />
|
||||
<exclude name="${build.dir}\**\Microsoft.ApplicationBlocks.Data.dll" />
|
||||
<exclude name="${build.dir}\**\umbraco.DataLayer.dll" />
|
||||
<exclude name="${build.dir}\**\umbraco.dll" />
|
||||
<exclude name="${build.dir}\**\umbraco.editorcontrols.dll" />
|
||||
<exclude name="${build.dir}\**\umbraco.linq.core.dll" />
|
||||
<exclude name="${build.dir}\**\umbraco.macrorenderings.dll" />
|
||||
<exclude name="${build.dir}\**\umbraco.providers.dll" />
|
||||
<exclude name="${build.dir}\**\UmbracoExamine.dll" />
|
||||
</fileset>
|
||||
</delete>
|
||||
|
||||
<copy todir="${nuget.dir}\lib\Net20">
|
||||
<fileset basedir="${build.dir}\Net20\bin">
|
||||
<include name="*.dll" />
|
||||
</fileset>
|
||||
</copy>
|
||||
|
||||
<copy todir="${nuget.dir}\lib\Net40">
|
||||
<fileset basedir="${build.dir}\Net40\bin">
|
||||
<include name="*.dll" />
|
||||
</fileset>
|
||||
</copy>
|
||||
|
||||
<copy file="${nuget.spec}" tofile="${nuget.dir}\umbraco.nuspec" failonerror="false" overwrite="true"/>
|
||||
|
||||
<xmlpoke
|
||||
file="${nuget.dir}\umbraco.nuspec"
|
||||
xpath="/package/metadata/version"
|
||||
value="${build.version}" />
|
||||
|
||||
</target>
|
||||
|
||||
|
||||
<!-- will produce the a clean /build folder and nothing else-->
|
||||
<target name="nuget" depends="directories">
|
||||
<exec program="${nuget.app}" commandline="pack "${nuget.dir}\umbraco.nuspec" /o "${public.dir}""/>
|
||||
</target>
|
||||
|
||||
|
||||
<target name="test">
|
||||
<exec program="${nuget.app}" commandline="pack "${nuget.dir}\umbraco.nuspec" /o "${public.dir}""/>
|
||||
</target>
|
||||
|
||||
<target name="init" description="init tasks for the build">
|
||||
|
||||
<!-- Clean the plugins dir any leftovers, only tinyMCE belongs in here -->
|
||||
<delete>
|
||||
<fileset>
|
||||
<include name="${build.dir}\umbraco\plugins\*" />
|
||||
<exclude name="${build.dir}\umbraco\plugins\tinymce3" />
|
||||
</fileset>
|
||||
</delete>
|
||||
|
||||
<delete dir="${build.dir}" />
|
||||
<mkdir dir="${build.dir}" />
|
||||
|
||||
<delete dir="${nuget.dir}" />
|
||||
<mkdir dir="${nuget.dir}" />
|
||||
<mkdir dir="${nuget.dir}\lib\Net20" />
|
||||
<mkdir dir="${nuget.dir}\lib\Net40" />
|
||||
|
||||
</target>
|
||||
|
||||
|
||||
</project>
|
||||
@@ -1,310 +0,0 @@
|
||||
<?xml version="1.0" ?>
|
||||
<project name="umbraco" default="test" basedir=".">
|
||||
<description>Build the umbraco 3.1.x Application</description>
|
||||
|
||||
<!-- global properties, generally won't change -->
|
||||
|
||||
<property name="nant.settings.currentframework" value="net-2.0" />
|
||||
|
||||
<!-- filenames and directories, generally won't change -->
|
||||
|
||||
<property name="web.dir" value="D:\inetpub\wwwroot\v4.umbraco.org" />
|
||||
<property name="public.dir" value="D:\inetpub\wwwroot\nightlies\umbraco 4.1" />
|
||||
<property name="root.dir" value="${directory::get-current-directory()}" />
|
||||
<property name="source.dir" value="${root.dir}\umbraco\presentation" />
|
||||
<property name="build.dir" value="${root.dir}\build" />
|
||||
<property name="dlls.dir" value="${root.dir}\foreign dlls" />
|
||||
|
||||
<property name="build.version" value="4.1"/>
|
||||
|
||||
<property name="docs.dir" value="${root.dir}\docs" />
|
||||
|
||||
<property name="win.dir" value="c:\WINDOWS" />
|
||||
<property name="Webdeploy.dir" value="C:\Program Files\MSBuild\Microsoft\WebDeployment\v8.0" />
|
||||
|
||||
<!-- Sandcastle Directories -->
|
||||
<property name="sandcastle.dir" value="c:\Program Files\Sandcastle" />
|
||||
<property name="sandcastle.workingdir" value="${root.dir}\docs\SandcastleWorkingDir" />
|
||||
<property name="sandcastle.output.dir" value="${sandcastle.workingdir}\Output" />
|
||||
|
||||
<!-- Sandcastle -->
|
||||
<property name="sandcastle.mrefbuilder" value="${sandcastle.dir}\productiontools\mrefbuilder.exe" />
|
||||
<property name="sandcastle.buildassembler" value="${sandcastle.dir}\productiontools\buildassembler.exe" />
|
||||
<property name="sandcastle.xsltransform" value="${sandcastle.dir}\productiontools\xsltransform.exe" />
|
||||
|
||||
<!-- YUI -->
|
||||
<property name="YUICompressor.dir" value="D:\inetpub\wwwroot\ccnet\buildTools\YUI" />
|
||||
|
||||
|
||||
<!-- Build source -->
|
||||
<target name="build" depends="init">
|
||||
<attrib normal="true" readonly="false">
|
||||
<fileset basedir="${root.dir}">
|
||||
<include name="**/*" />
|
||||
</fileset>
|
||||
</attrib>
|
||||
|
||||
<exec program="${win.dir}\microsoft.net\framework\v3.5\msbuild.exe">
|
||||
<arg value="${root.dir}\umbraco.sln" />
|
||||
</exec>
|
||||
|
||||
<exec program="${win.dir}\microsoft.net\framework\v2.0.50727\aspnet_compiler.exe" commandline="-f -u -p umbraco/presentation -v / "${build.dir}""/>
|
||||
</target>
|
||||
|
||||
|
||||
<!-- Directories and files -->
|
||||
<target name="directories" depends="build">
|
||||
|
||||
<!-- setup docs files -->
|
||||
<mkdir dir="${docs.dir}" />
|
||||
<copy todir="${docs.dir}">
|
||||
<fileset basedir="${build.dir}\bin">
|
||||
<include name="*.xml" />
|
||||
</fileset>
|
||||
</copy>
|
||||
|
||||
<!--standard web.config-->
|
||||
<copy file="${root.dir}\config templates\web.config" tofile="${build.dir}\web.config" failonerror="false" overwrite="true"/>
|
||||
|
||||
<!--standard /config files-->
|
||||
<copy file="${root.dir}\config templates\config\404handlers.config" tofile="${build.dir}\config\404handlers.config" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\config templates\config\dashboard.config" tofile="${build.dir}\config\dashboard.config" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\config templates\config\formhandlers.config" tofile="${build.dir}\config\formhandlers.config" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\config templates\config\metablogconfig.config" tofile="${build.dir}\config\metablogconfig.config" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\config templates\config\restextensions.config" tofile="${build.dir}\config\restextensions.config" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\config templates\config\xsltextensions.config" tofile="${build.dir}\config\xsltextensions.config" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\config templates\config\tinymceconfig.config" tofile="${build.dir}\config\tinymceconfig.config" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\config templates\config\umbracosettings.config" tofile="${build.dir}\config\umbracosettings.config" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\config templates\config\urlrewriting.config" tofile="${build.dir}\config\urlrewriting.config" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\config templates\config\applications.config" tofile="${build.dir}\config\applications.config" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\config templates\config\trees.config" tofile="${build.dir}\config\trees.config" failonerror="false" overwrite="true"/>
|
||||
|
||||
<!--standard /data/packages files-->
|
||||
<copy file="${root.dir}\config templates\packages\installedPackages.config" tofile="${build.dir}\data\packages\installed\installedPackages.config" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\config templates\packages\createdPackages.config" tofile="${build.dir}\data\packages\created\createdPackages.config" failonerror="false" overwrite="true"/>
|
||||
|
||||
<!-- Standard access.xml file-->
|
||||
<copy file="${root.dir}\config templates\access.xml" tofile="${build.dir}\data\access.xml" failonerror="false" overwrite="true"/>
|
||||
|
||||
<!-- Standard create UI.xml-->
|
||||
<copy file="${root.dir}\config templates\config\UI.xml" tofile="${build.dir}\umbraco\config\create\UI.xml" failonerror="false" overwrite="true"/>
|
||||
|
||||
<!-- Standard empty cache file -->
|
||||
<copy file="${root.dir}\config templates\umbraco.config" tofile="${build.dir}\umbraco\data\umbraco.config" failonerror="false" overwrite="true"/>
|
||||
|
||||
<!-- Baseline Language file for translation tool -->
|
||||
<copy file="${build.dir}\umbraco\config\lang\en.xml" tofile="${web.dir}\usercontrols\translation\langs\en.xml" failonerror="false" overwrite="true"/>
|
||||
|
||||
|
||||
<!-- standard folders -->
|
||||
<mkdir dir="${build.dir}\App_Code" />
|
||||
<mkdir dir="${build.dir}\App_Data" />
|
||||
|
||||
<mkdir dir="${build.dir}\media" />
|
||||
<mkdir dir="${build.dir}\masterpages" />
|
||||
<mkdir dir="${build.dir}\scripts" />
|
||||
<mkdir dir="${build.dir}\css" />
|
||||
<mkdir dir="${build.dir}\python" />
|
||||
<mkdir dir="${build.dir}\xslt" />
|
||||
<mkdir dir="${build.dir}\usercontrols" />
|
||||
|
||||
<delete dir="${build.dir}\webservices" />
|
||||
<delete dir="${build.dir}\umbracoBase" />
|
||||
<delete dir="${build.dir}\Web References" />
|
||||
<delete dir="${build.dir}\obj" />
|
||||
<delete dir="${build.dir}\properties" />
|
||||
|
||||
<delete>
|
||||
<fileset>
|
||||
<include name="${build.dir}/**/*.build" />
|
||||
<include name="${build.dir}/**/*.csproj" />
|
||||
<include name="${build.dir}/**/*.vspscc" />
|
||||
<include name="${build.dir}/**/*.scc" />
|
||||
<include name="${build.dir}/**/*.sln" />
|
||||
<include name="${build.dir}/**/*.compiled" />
|
||||
<include name="${build.dir}/**/*.resx" />
|
||||
<include name="${build.dir}/PrecompiledApp.config" />
|
||||
<include name="${build.dir}/web.config.template" />
|
||||
</fileset>
|
||||
</delete>
|
||||
|
||||
</target>
|
||||
|
||||
<!-- Minify -->
|
||||
<target name="minify" description="minify JS files" depends="directories">
|
||||
<fileset basedir="${build.dir}" id="jsFileSet">
|
||||
<include name="umbraco/css/*.css"/>
|
||||
<include name="umbraco/js/**/*.js"/>
|
||||
|
||||
<include name="umbraco_client/**/*.js"/>
|
||||
<include name="umbraco_client/**/*.css"/>
|
||||
</fileset>
|
||||
|
||||
<property name="js_files" value=""/>
|
||||
<foreach item="File" property="file">
|
||||
<in>
|
||||
<items refid="jsFileSet"/>
|
||||
</in>
|
||||
<do>
|
||||
<exec program="java" workingdir="${YUICompressor.dir}" failonerror="false">
|
||||
<arg value="-jar" />
|
||||
<arg value="yuicompressor.jar" />
|
||||
<arg value="-o" />
|
||||
<arg value="${file}.min" />
|
||||
<arg value="${file}" />
|
||||
</exec>
|
||||
<move file="${file}.min" tofile="${file}" overwrite="true" failonerror="false"/>
|
||||
</do>
|
||||
</foreach>
|
||||
</target>
|
||||
|
||||
<!-- Documentation -->
|
||||
<target name="documentation" depends="directories">
|
||||
<!-- Transformations -->
|
||||
<property name="sandcastle.addfriendlyfilenames.xsl" value="${sandcastle.dir}\ProductionTransforms\AddFriendlyFilenames.xsl" />
|
||||
<property name="sandcastle.reflectiontomanifest.xsl" value="${sandcastle.dir}\ProductionTransforms\ReflectionToManifest.xsl" />
|
||||
|
||||
<property name="sandcastle.buildassembler.config" value="${sandcastle.dir}\Presentation\wiki\configuration\sandcastle.config" />
|
||||
|
||||
<!-- Create a doc dir and move vs comment files to it-->
|
||||
<mkdir dir="${docs.dir}" />
|
||||
<copy todir="${docs.dir}">
|
||||
<fileset basedir="${build.dir}\bin">
|
||||
<include name="*.xml" />
|
||||
</fileset>
|
||||
</copy>
|
||||
|
||||
<!-- Create or Cleanup Working Directory -->
|
||||
<mkdir dir="${sandcastle.workingdir}" if="${not directory::exists(sandcastle.workingdir)}" />
|
||||
<delete>
|
||||
<fileset basedir="${sandcastle.workingdir}">
|
||||
<include name="**\*" />
|
||||
</fileset>
|
||||
</delete>
|
||||
|
||||
<copy file="${sandcastle.buildassembler.config}" tofile="${sandcastle.workingdir}\Sandcastle.config">
|
||||
<filterchain>
|
||||
<replacestring from="%DXROOT%\" to="${sandcastle.dir}" />
|
||||
<replacestring from=".\comments.xml" to="${docs.dir}\*.xml" />
|
||||
</filterchain>
|
||||
</copy>
|
||||
|
||||
<!-- Run MRefBuilder (introspection on assemblies) to create basic Reflection XML -->
|
||||
<exec program="${sandcastle.mrefbuilder}" workingdir="${sandcastle.workingdir}">
|
||||
<arg value=""${build.dir}\bin\businesslogic.dll" " />
|
||||
<arg value=""${build.dir}\bin\cms.dll" " />
|
||||
<arg value=""${build.dir}\bin\controls.dll" " />
|
||||
<arg value=""${build.dir}\bin\interfaces.dll" " />
|
||||
<arg value=""${build.dir}\bin\umbraco.datalayer.dll" " />
|
||||
<arg value=""${build.dir}\bin\umbraco.dll" " />
|
||||
<arg value=""${build.dir}\bin\umbraco.editorcontrols.dll" " />
|
||||
<arg value=""${build.dir}\bin\umbraco.providers.dll" " />
|
||||
<arg value=""${build.dir}\bin\umbraco.webservices.dll" " />
|
||||
<arg value="/out:reflection.org" />
|
||||
</exec>
|
||||
|
||||
<!-- Regroup overloads -->
|
||||
<exec program="${sandcastle.xsltransform}" workingdir="${sandcastle.workingdir}">
|
||||
<arg value="reflection.org" />
|
||||
<arg value="/xsl:"${sandcastle.addfriendlyfilenames.xsl}"" />
|
||||
<arg value="/out:reflection.xml" />
|
||||
</exec>
|
||||
|
||||
|
||||
<exec program="${sandcastle.xsltransform}" workingdir="${sandcastle.workingdir}">
|
||||
<arg value="reflection.org" />
|
||||
<arg value="/xsl:"${sandcastle.reflectiontomanifest.xsl}"" />
|
||||
<arg value="/out:manifest.xml" />
|
||||
</exec>
|
||||
|
||||
<exec program="${sandcastle.buildassembler}" workingdir="${sandcastle.workingdir}">
|
||||
<arg value="/config:Sandcastle.config" />
|
||||
<arg value="manifest.xml" />
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
|
||||
<!-- do the full release with docs, minify and nightly file distribution -->
|
||||
<target name="release" depends="zip,minify">
|
||||
<property name="assembly.name" value="${ assemblyname::get-version( assemblyname::get-assembly-name('umbraco/presentation/bin/umbraco.dll') ) }"/>
|
||||
<property name="release.filename" value="${root.dir}\build_${build.version}_${assembly.name}.zip" />
|
||||
|
||||
<mkdir dir="${public.dir}\${build.version}" />
|
||||
<copy file="${release.filename}" tofile="${public.dir}\${build.version}\${assembly.name}.zip" />
|
||||
</target>
|
||||
|
||||
<!-- do the full release with docs, minify and nightly file distribution -->
|
||||
<target name="zip" depends="directories">
|
||||
<property name="assembly.name" value="${ assemblyname::get-version( assemblyname::get-assembly-name('umbraco/presentation/bin/umbraco.dll') ) }"/>
|
||||
<property name="release.filename" value="${root.dir}\build_${build.version}_${assembly.name}.zip" />
|
||||
|
||||
<zip zipfile="${release.filename}" includeemptydirs="true" >
|
||||
<fileset basedir="${root.dir}">
|
||||
<include name="build/*" />
|
||||
<include name="build/**/*" />
|
||||
</fileset>
|
||||
</zip>
|
||||
</target>
|
||||
|
||||
<!-- do a nightly build without the minification and docs -->
|
||||
<target name="nightly" depends="zip">
|
||||
<property name="assembly.name" value="${ assemblyname::get-version( assemblyname::get-assembly-name('umbraco/presentation/bin/umbraco.dll') ) }"/>
|
||||
<property name="release.filename" value="${root.dir}\build_${build.version}_${assembly.name}.zip" />
|
||||
|
||||
<mkdir dir="${public.dir}\${build.version}" />
|
||||
<copy file="${release.filename}" tofile="${public.dir}\${build.version}\${assembly.name}.zip" />
|
||||
</target>
|
||||
|
||||
<!-- will produce the a clean /build folder and nothing else-->
|
||||
<target name="test" depends="directories">
|
||||
|
||||
</target>
|
||||
|
||||
<target name="webPIRelease" depends="release,webPiFile">
|
||||
<copy file="${root.dir}\webPi_sha.txt" tofile="${public.dir}\${build.version}\webPi_sha.txt" />
|
||||
<copy file="${root.dir}\Umbraco_${build.version}_WebDeploy.zip" tofile="${public.dir}\${build.version}\Umbraco_${build.version}_WebDeploy.zip" />
|
||||
</target>
|
||||
|
||||
<!-- do the webdeploy release for web PI-->
|
||||
<target name="webPiFile" depends="directories">
|
||||
|
||||
<property name="webpi.dir" value="${root.dir}\deploy" />
|
||||
|
||||
<delete dir="${webpi.dir}\umbraco" />
|
||||
|
||||
<mkdir dir="${webpi.dir}" />
|
||||
<mkdir dir="${webpi.dir}\umbraco" />
|
||||
|
||||
<copy todir="${webpi.dir}\umbraco" includeemptydirs="true" >
|
||||
<fileset basedir="${root.dir}">
|
||||
<include name="build/*" />
|
||||
<include name="build/**/*" />
|
||||
</fileset>
|
||||
</copy>
|
||||
|
||||
<copy file="d:\webpiAssets\installSQL.sql" tofile="${webpi.dir}\installSQL.sql" failonerror="false"/>
|
||||
<copy file="d:\webpiAssets\manifest.xml" tofile="${webpi.dir}\manifest.xml" failonerror="false"/>
|
||||
<copy file="d:\webpiAssets\parameters.xml" tofile="${webpi.dir}\parameters.xml" failonerror="false"/>
|
||||
|
||||
<property name="webpi.filename" value="${root.dir}\Umbraco_${build.version}_WebDeploy.zip" />
|
||||
<zip zipfile="${webpi.filename}" includeemptydirs="true" >
|
||||
<fileset basedir="${webpi.dir}">
|
||||
<include name="*" />
|
||||
<include name="**/*" />
|
||||
</fileset>
|
||||
</zip>
|
||||
|
||||
<exec program="${win.dir}\hashMyFiles.exe">
|
||||
<arg value="/file "${webpi.filename}"" />
|
||||
<arg value="/stext "${root.dir}\webPi_sha.txt"" />
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
|
||||
<target name="init" description="init tasks for the build">
|
||||
<delete dir="${build.dir}" />
|
||||
<mkdir dir="${build.dir}" />
|
||||
</target>
|
||||
|
||||
|
||||
</project>
|
||||
@@ -1,248 +0,0 @@
|
||||
<?xml version="1.0" ?>
|
||||
<project name="umbraco" default="compile" basedir=".">
|
||||
<description>Build the umbraco 3.1.x Application</description>
|
||||
|
||||
<!-- global properties, generally won't change -->
|
||||
|
||||
<property name="nant.settings.currentframework" value="net-2.0" />
|
||||
|
||||
<!-- filenames and directories, generally won't change -->
|
||||
|
||||
<property name="web.dir" value="D:\inetpub\wwwroot\v4.umbraco.org" />
|
||||
<property name="public.dir" value="D:\inetpub\wwwroot\nightlies\umbraco 4.0" />
|
||||
<property name="root.dir" value="${directory::get-current-directory()}" />
|
||||
<property name="source.dir" value="${root.dir}\umbraco\presentation" />
|
||||
<property name="build.dir" value="${root.dir}\build" />
|
||||
<property name="dlls.dir" value="${root.dir}\foreign dlls" />
|
||||
|
||||
<property name="build.major" value="4"/>
|
||||
<property name="build.minor" value="0"/>
|
||||
<property name="build.build" value="0"/>
|
||||
<property name="build.revision" value="0"/>
|
||||
|
||||
<property name="docs.dir" value="${root.dir}\docs" />
|
||||
|
||||
<property name="win.dir" value="c:\WINDOWS" />
|
||||
<property name="cc.dir" value="C:\Program Files\CruiseControl.NET\server" />
|
||||
<property name="Webdeploy.dir" value="C:\Program Files\MSBuild\Microsoft\WebDeployment\v8.0" />
|
||||
|
||||
<!-- Sandcastle Directories -->
|
||||
<property name="sandcastle.dir" value="c:\Program Files\Sandcastle" />
|
||||
<property name="sandcastle.workingdir" value="${root.dir}\docs\SandcastleWorkingDir" />
|
||||
<property name="sandcastle.output.dir" value="${sandcastle.workingdir}\Output" />
|
||||
<!-- Sandcastle Executables -->
|
||||
<property name="sandcastle.mrefbuilder" value="${sandcastle.dir}\productiontools\mrefbuilder.exe" />
|
||||
<property name="sandcastle.buildassembler" value="${sandcastle.dir}\productiontools\buildassembler.exe" />
|
||||
<property name="sandcastle.xsltransform" value="${sandcastle.dir}\productiontools\xsltransform.exe" />
|
||||
<!-- Transformations -->
|
||||
<property name="sandcastle.ApplyVSDocModel.xsl" value="${sandcastle.dir}\ProductionTransforms\ApplyVSDocModel.xsl" />
|
||||
<property name="sandcastle.addguidfilenames.xsl" value="${sandcastle.dir}\ProductionTransforms\AddGuidFilenames.xsl" />
|
||||
<property name="sandcastle.addfriendlyfilenames.xsl" value="${sandcastle.dir}\ProductionTransforms\AddFriendlyFilenames.xsl" />
|
||||
<property name="sandcastle.reflectiontomanifest.xsl" value="${sandcastle.dir}\ProductionTransforms\ReflectionToManifest.xsl" />
|
||||
<property name="sandcastle.reflectiontochmproject.xsl" value="${sandcastle.dir}\ProductionTransforms\ReflectionToChmProject.xsl" />
|
||||
<property name="sandcastle.reflectiontochmcontents.xsl" value="${sandcastle.dir}\ProductionTransforms\ReflectionToChmContents.xsl" />
|
||||
<property name="sandcastle.reflectiontochmindex.xsl" value="${sandcastle.dir}\ProductionTransforms\ReflectionToChmIndex.xsl" />
|
||||
|
||||
<property name="sandcastle.buildassembler.config" value="${sandcastle.dir}\Presentation\wiki\configuration\sandcastle.config" />
|
||||
|
||||
<target name="compile" depends="init">
|
||||
|
||||
<attrib normal="true" readonly="false">
|
||||
<fileset basedir="${root.dir}">
|
||||
<include name="**/*" />
|
||||
</fileset>
|
||||
</attrib>
|
||||
|
||||
<exec program="${win.dir}\microsoft.net\framework\v3.5\msbuild.exe">
|
||||
<arg value="${root.dir}\umbraco.sln" />
|
||||
</exec>
|
||||
|
||||
<exec program="${win.dir}\microsoft.net\framework\v2.0.50727\aspnet_compiler.exe" commandline="-f -u -p umbraco/presentation -v / "${build.dir}""/>
|
||||
|
||||
<!-- Moves stuff around and zips the distribution-->
|
||||
<call target="zip"/>
|
||||
|
||||
<!-- Handles documentation
|
||||
<call target="docs" />
|
||||
-->
|
||||
|
||||
</target>
|
||||
|
||||
|
||||
<target name="clean" description="remove generated files">
|
||||
|
||||
|
||||
</target>
|
||||
|
||||
<target name="docs" description="generates documents">
|
||||
|
||||
<!-- Create a doc dir and move vs comment files to it-->
|
||||
<mkdir dir="${docs.dir}" />
|
||||
<copy todir="${docs.dir}">
|
||||
<fileset basedir="${build.dir}\bin">
|
||||
<include name="*.xml" />
|
||||
</fileset>
|
||||
</copy>
|
||||
|
||||
<!-- Create or Cleanup Working Directory -->
|
||||
<mkdir dir="${sandcastle.workingdir}" if="${not directory::exists(sandcastle.workingdir)}" />
|
||||
<delete>
|
||||
<fileset basedir="${sandcastle.workingdir}">
|
||||
<include name="**\*" />
|
||||
</fileset>
|
||||
</delete>
|
||||
|
||||
<copy file="${sandcastle.buildassembler.config}" tofile="${sandcastle.workingdir}\Sandcastle.config">
|
||||
<filterchain>
|
||||
<replacestring from="%DXROOT%\" to="${sandcastle.dir}" />
|
||||
<replacestring from=".\comments.xml" to="${docs.dir}\*.xml" />
|
||||
</filterchain>
|
||||
</copy>
|
||||
|
||||
<!-- Run MRefBuilder (introspection on assemblies) to create basic Reflection XML -->
|
||||
<exec program="${sandcastle.mrefbuilder}" workingdir="${sandcastle.workingdir}">
|
||||
<arg value=""${build.dir}\bin\businesslogic.dll" " />
|
||||
<arg value=""${build.dir}\bin\cms.dll" " />
|
||||
<arg value=""${build.dir}\bin\controls.dll" " />
|
||||
<arg value=""${build.dir}\bin\interfaces.dll" " />
|
||||
<arg value=""${build.dir}\bin\umbraco.datalayer.dll" " />
|
||||
<arg value=""${build.dir}\bin\umbraco.dll" " />
|
||||
<arg value=""${build.dir}\bin\umbraco.editorcontrols.dll" " />
|
||||
<arg value=""${build.dir}\bin\umbraco.providers.dll" " />
|
||||
<arg value=""${build.dir}\bin\umbraco.webservices.dll" " />
|
||||
<arg value="/out:reflection.org" />
|
||||
</exec>
|
||||
|
||||
<!-- Regroup overloads -->
|
||||
<exec program="${sandcastle.xsltransform}" workingdir="${sandcastle.workingdir}">
|
||||
<arg value="reflection.org" />
|
||||
<arg value="/xsl:"${sandcastle.addfriendlyfilenames.xsl}"" />
|
||||
<arg value="/out:reflection.xml" />
|
||||
</exec>
|
||||
|
||||
|
||||
<exec program="${sandcastle.xsltransform}" workingdir="${sandcastle.workingdir}">
|
||||
<arg value="reflection.org" />
|
||||
<arg value="/xsl:"${sandcastle.reflectiontomanifest.xsl}"" />
|
||||
<arg value="/out:manifest.xml" />
|
||||
</exec>
|
||||
|
||||
<exec program="${sandcastle.buildassembler}" workingdir="${sandcastle.workingdir}">
|
||||
<arg value="/config:Sandcastle.config" />
|
||||
<arg value="manifest.xml" />
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
<target name="zip" description="zip the release">
|
||||
|
||||
<mkdir dir="${docs.dir}" />
|
||||
<copy todir="${docs.dir}">
|
||||
<fileset basedir="${build.dir}\bin">
|
||||
<include name="*.xml" />
|
||||
</fileset>
|
||||
</copy>
|
||||
|
||||
|
||||
<!--standard web.config-->
|
||||
<copy file="${root.dir}\config templates\web.config" tofile="${build.dir}\web.config" failonerror="false" overwrite="true"/>
|
||||
|
||||
<!--standard /config files-->
|
||||
<copy file="${root.dir}\config templates\config\404handlers.config" tofile="${build.dir}\config\404handlers.config" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\config templates\config\dashboard.config" tofile="${build.dir}\config\dashboard.config" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\config templates\config\formhandlers.config" tofile="${build.dir}\config\formhandlers.config" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\config templates\config\metablogconfig.config" tofile="${build.dir}\config\metablogconfig.config" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\config templates\config\restextensions.config" tofile="${build.dir}\config\restextensions.config" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\config templates\config\xsltextensions.config" tofile="${build.dir}\config\xsltextensions.config" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\config templates\config\tinymceconfig.config" tofile="${build.dir}\config\tinymceconfig.config" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\config templates\config\umbracosettings.config" tofile="${build.dir}\config\umbracosettings.config" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\config templates\config\urlrewriting.config" tofile="${build.dir}\config\urlrewriting.config" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\config templates\config\applications.config" tofile="${build.dir}\config\applications.config" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\config templates\config\trees.config" tofile="${build.dir}\config\trees.config" failonerror="false" overwrite="true"/>
|
||||
|
||||
<!--standard /data/packages files-->
|
||||
<copy file="${root.dir}\config templates\packages\installedPackages.config" tofile="${build.dir}\data\packages\installed\installedPackages.config" failonerror="false" overwrite="true"/>
|
||||
<copy file="${root.dir}\config templates\packages\createdPackages.config" tofile="${build.dir}\data\packages\created\createdPackages.config" failonerror="false" overwrite="true"/>
|
||||
|
||||
<!-- Standard access.xml file-->
|
||||
<copy file="${root.dir}\config templates\access.xml" tofile="${build.dir}\data\access.xml" failonerror="false" overwrite="true"/>
|
||||
|
||||
<!-- Standard create UI.xml-->
|
||||
<copy file="${root.dir}\config templates\config\UI.xml" tofile="${build.dir}\umbraco\config\create\UI.xml" failonerror="false" overwrite="true"/>
|
||||
|
||||
<!-- Standard empty cache file -->
|
||||
<copy file="${root.dir}\config templates\umbraco.config" tofile="${build.dir}\umbraco\data\umbraco.config" failonerror="false" overwrite="true"/>
|
||||
|
||||
<!-- Baseline Language file for translation tool -->
|
||||
<copy file="${build.dir}\umbraco\config\lang\en.xml" tofile="${web.dir}\usercontrols\translation\langs\en.xml" failonerror="false" overwrite="true"/>
|
||||
|
||||
<!--
|
||||
<delete dir="${build.dir}\umbraco\webservices\api" />
|
||||
<mkdir dir="${build.dir}\umbraco\webservices\api" />
|
||||
|
||||
<copy todir="${build.dir}\umbraco\webservices\api">
|
||||
<fileset basedir="${root.dir}\components\umbraco.webservices}">
|
||||
<include name="*.asmx" />
|
||||
</fileset>
|
||||
</copy>
|
||||
-->
|
||||
|
||||
<!-- standard folders -->
|
||||
<mkdir dir="${build.dir}\App_Code" />
|
||||
<mkdir dir="${build.dir}\media" />
|
||||
<mkdir dir="${build.dir}\masterpages" />
|
||||
<mkdir dir="${build.dir}\scripts" />
|
||||
<mkdir dir="${build.dir}\css" />
|
||||
<mkdir dir="${build.dir}\python" />
|
||||
<mkdir dir="${build.dir}\xslt" />
|
||||
<mkdir dir="${build.dir}\usercontrols" />
|
||||
|
||||
<delete dir="${build.dir}\webservices" />
|
||||
<delete dir="${build.dir}\umbracoBase" />
|
||||
<delete dir="${build.dir}\Web References" />
|
||||
<delete dir="${build.dir}\obj" />
|
||||
<delete dir="${build.dir}\properties" />
|
||||
<delete>
|
||||
<fileset>
|
||||
<include name="${build.dir}/**/*.build" />
|
||||
<include name="${build.dir}/**/*.csproj" />
|
||||
<include name="${build.dir}/**/*.vspscc" />
|
||||
<include name="${build.dir}/**/*.scc" />
|
||||
<include name="${build.dir}/**/*.sln" />
|
||||
<include name="${build.dir}/**/*.compiled" />
|
||||
<include name="${build.dir}/**/*.resx" />
|
||||
<include name="${build.dir}/PrecompiledApp.config" />
|
||||
<include name="${build.dir}/web.config.template" />
|
||||
</fileset>
|
||||
</delete>
|
||||
|
||||
|
||||
<property name="dist.name" value="${ assemblyname::get-version( assemblyname::get-assembly-name('umbraco/presentation/bin/umbraco.dll') ) }"/>
|
||||
|
||||
|
||||
<zip zipfile="${web.dir}\nightly\umbraco40.zip" includeemptydirs="true" >
|
||||
<fileset basedir="${root.dir}">
|
||||
<include name="build/*" />
|
||||
<include name="build/**/*" />
|
||||
</fileset>
|
||||
</zip>
|
||||
|
||||
<copy file="${web.dir}\nightly\umbraco40.zip" tofile="${public.dir}\${dist.name}_${datetime::get-ticks(datetime::now())}.zip" />
|
||||
|
||||
<copy file="${root.dir}\build.xml" tofile="${web.dir}\nightly\build.xml">
|
||||
<filterchain>
|
||||
<replacetokens>
|
||||
<token key="assembly" value="${dist.name}" />
|
||||
<token key="date" value="${datetime::now()}" />
|
||||
</replacetokens>
|
||||
</filterchain>
|
||||
</copy>
|
||||
|
||||
</target>
|
||||
|
||||
<target name="init" description="init tasks for the build">
|
||||
<delete dir="${build.dir}" />
|
||||
<mkdir dir="${build.dir}" />
|
||||
</target>
|
||||
|
||||
|
||||
</project>
|
||||
@@ -2,7 +2,7 @@
|
||||
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
|
||||
<metadata>
|
||||
<id>UmbracoCms.Core</id>
|
||||
<version>4.9.0</version>
|
||||
<version>$version$</version>
|
||||
<title>Umbraco Cms Core Binaries</title>
|
||||
<authors>Morten Christensen</authors>
|
||||
<owners>Umbraco HQ</owners>
|
||||
@@ -26,6 +26,7 @@
|
||||
<file src="..\_BuildOutput\WebApp\bin\ICSharpCode.SharpZipLib.dll" target="lib\ICSharpCode.SharpZipLib.dll" />
|
||||
<file src="..\_BuildOutput\WebApp\bin\interfaces.dll" target="lib\interfaces.dll" />
|
||||
<file src="..\_BuildOutput\WebApp\bin\Lucene.Net.dll" target="lib\Lucene.Net.dll" />
|
||||
<file src="..\_BuildOutput\WebApp\bin\log4net.dll" target="lib\log4net.dll" />
|
||||
<file src="..\_BuildOutput\WebApp\bin\Microsoft.ApplicationBlocks.Data.dll" target="lib\Microsoft.ApplicationBlocks.Data.dll" />
|
||||
<file src="..\_BuildOutput\WebApp\bin\Microsoft.Web.Helpers.dll" target="lib\Microsoft.Web.Helpers.dll" />
|
||||
<file src="..\_BuildOutput\WebApp\bin\Microsoft.Web.Infrastructure.dll" target="lib\Microsoft.Web.Infrastructure.dll" />
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
|
||||
<metadata>
|
||||
<id>UmbracoCms</id>
|
||||
<version>4.9.0</version>
|
||||
<version>$version$</version>
|
||||
<title>Umbraco Cms</title>
|
||||
<authors>Morten Christensen</authors>
|
||||
<owners>Umbraco HQ</owners>
|
||||
@@ -15,7 +15,7 @@
|
||||
<language>en-US</language>
|
||||
<tags>umbraco</tags>
|
||||
<dependencies>
|
||||
<dependency id="UmbracoCms.Core" version="4.9.0" />
|
||||
<dependency id="UmbracoCms.Core" version="[$version$]" />
|
||||
</dependencies>
|
||||
</metadata>
|
||||
<files>
|
||||
@@ -27,16 +27,19 @@
|
||||
<file src="..\_BuildOutput\WebApp\scripts\**" target="Content\scripts" />
|
||||
<file src="..\_BuildOutput\WebApp\usercontrols\**" target="Content\usercontrols" />
|
||||
<file src="..\_BuildOutput\WebApp\xslt\**" target="Content\xslt" />
|
||||
<file src="..\_BuildOutput\WebApp\Views\**" target="Content\Views" />
|
||||
<file src="..\_BuildOutput\WebApp\default.aspx" target="Content\default.aspx" />
|
||||
<file src="..\_BuildOutput\WebApp\Web.config" target="Content\Web.config" />
|
||||
<file src="..\_BuildOutput\WebApp\App_Browsers\**" target="UmbracoFiles\App_Browsers" />
|
||||
<file src="..\_BuildOutput\WebApp\App_Code\**" target="UmbracoFiles\App_Code" />
|
||||
<file src="..\_BuildOutput\WebApp\App_Data\**" target="UmbracoFiles\App_Data" />
|
||||
<file src="..\_BuildOutput\WebApp\App_Plugins\**" target="UmbracoFiles\App_Plugins" />
|
||||
<file src="..\_BuildOutput\WebApp\config\**" target="UmbracoFiles\config" />
|
||||
<file src="..\_BuildOutput\WebApp\install\**" target="UmbracoFiles\install" />
|
||||
<file src="..\_BuildOutput\WebApp\umbraco\**" target="UmbracoFiles\umbraco" />
|
||||
<file src="..\_BuildOutput\WebApp\umbraco_client\**" target="UmbracoFiles\umbraco_client" />
|
||||
<file src="..\_BuildOutput\WebApp\Web.config" target="UmbracoFiles\Web.config" />
|
||||
<file src="..\_BuildOutput\WebApp\Global.asax" target="UmbracoFiles\Global.asax" />
|
||||
<file src="tools\install.ps1" target="tools\install.ps1" />
|
||||
<file src="tools\Readme.txt" target="tools\Readme.txt" />
|
||||
</files>
|
||||
|
||||
@@ -0,0 +1,128 @@
|
||||
@ECHO OFF
|
||||
|
||||
:choice
|
||||
set /P c=WARNING! Are you sure you want to continue, this will remove all package files, view files, sqlce database, etc... Press 'Y' to auto-remove all files/folders, 'N' to cancel or 'C' to prompt for each folder removal?
|
||||
if /I "%c%" EQU "C" goto :prompt
|
||||
if /I "%c%" EQU "Y" goto :auto
|
||||
if /I "%c%" EQU "N" goto :exit
|
||||
goto :choice
|
||||
|
||||
|
||||
:prompt
|
||||
|
||||
echo Current folder: %CD%
|
||||
|
||||
echo Removing sqlce database
|
||||
del ..\src\Umbraco.Web.UI\App_Data\Umbraco.sdf
|
||||
|
||||
echo Resetting installedPackages.config
|
||||
echo ^<?xml version="1.0" encoding="utf-8"?^>^<packages^>^</packages^> >..\src\Umbraco.Web.UI\App_Data\packages\installed\installedPackages.config
|
||||
|
||||
echo Removing plugin cache files
|
||||
del ..\src\Umbraco.Web.UI\App_Data\TEMP\PluginCache\*.*
|
||||
|
||||
echo Removing cache files and examine index
|
||||
del ..\src\Umbraco.Web.UI\App_Data\TEMP\*.*
|
||||
|
||||
echo Removing log files
|
||||
del ..\src\Umbraco.Web.UI\App_Data\Logs\*.*
|
||||
|
||||
echo Removing packages
|
||||
del ..\src\Umbraco.Web.UI\App_Data\packages\*.*
|
||||
|
||||
echo Removing previews
|
||||
del ..\src\Umbraco.Web.UI\App_Data\preview\*.*
|
||||
|
||||
echo Removing app code files (typically added by starterkits)
|
||||
del ..\src\Umbraco.Web.UI\App_Code\*.*
|
||||
|
||||
echo Removing xslt files
|
||||
del ..\src\Umbraco.Web.UI\xslt\*.*
|
||||
|
||||
echo Removing user control files
|
||||
del ..\src\Umbraco.Web.UI\UserControls\*.*
|
||||
|
||||
echo Removing masterpage files
|
||||
del ..\src\Umbraco.Web.UI\masterpages\*.*
|
||||
|
||||
echo Removing view files
|
||||
del ..\src\Umbraco.Web.UI\Views\*.*
|
||||
|
||||
echo Removing razor files
|
||||
del ..\src\Umbraco.Web.UI\macroScripts\*.*
|
||||
|
||||
echo Removing media files
|
||||
del ..\src\Umbraco.Web.UI\media\*.*
|
||||
|
||||
echo Removing script files
|
||||
del ..\src\Umbraco.Web.UI\scripts\*.*
|
||||
|
||||
echo Removing css files
|
||||
del ..\src\Umbraco.Web.UI\css\*.*
|
||||
|
||||
echo "Umbraco install reverted to clean install"
|
||||
pause
|
||||
exit
|
||||
|
||||
|
||||
|
||||
:auto
|
||||
|
||||
echo Current folder: %CD%
|
||||
|
||||
echo Removing sqlce database
|
||||
del ..\src\Umbraco.Web.UI\App_Data\Umbraco.sdf
|
||||
|
||||
echo Resetting installedPackages.config
|
||||
echo ^<?xml version="1.0" encoding="utf-8"?^>^<packages^>^</packages^> >..\src\Umbraco.Web.UI\App_Data\packages\installed\installedPackages.config
|
||||
|
||||
echo Removing plugin cache files
|
||||
FOR %%A IN (..\src\Umbraco.Web.UI\App_Data\TEMP\PluginCache\*.*) DO DEL %%A
|
||||
|
||||
echo Removing cache files and examine index
|
||||
FOR %%A IN (..\src\Umbraco.Web.UI\App_Data\TEMP\*.*) DO DEL %%A
|
||||
|
||||
echo Removing log files
|
||||
FOR %%A IN (..\src\Umbraco.Web.UI\App_Data\Logs\*.*) DO DEL %%A
|
||||
|
||||
echo Removing packages
|
||||
FOR %%A IN (..\src\Umbraco.Web.UI\App_Data\packages\*.*) DO DEL %%A
|
||||
|
||||
echo Removing previews
|
||||
FOR %%A IN (..\src\Umbraco.Web.UI\App_Data\preview\*.*) DO DEL %%A
|
||||
|
||||
echo Removing app code files (typically added by starterkits)
|
||||
FOR %%A IN (..\src\Umbraco.Web.UI\App_Code\*.*) DO DEL %%A
|
||||
|
||||
echo Removing xslt files
|
||||
FOR %%A IN (..\src\Umbraco.Web.UI\xslt\*.*) DO DEL %%A
|
||||
|
||||
echo Removing masterpage files
|
||||
FOR %%A IN (..\src\Umbraco.Web.UI\masterpages\*.*) DO DEL %%A
|
||||
|
||||
echo Removing user control files
|
||||
FOR %%A IN (..\src\Umbraco.Web.UI\usercontrols\*.*) DO DEL %%A
|
||||
|
||||
echo Removing view files
|
||||
FOR %%A IN (..\src\Umbraco.Web.UI\Views\*.*) DO DEL %%A
|
||||
|
||||
echo Removing razor files
|
||||
FOR %%A IN (..\src\Umbraco.Web.UI\macroScripts\*.*) DO DEL %%A
|
||||
|
||||
echo Removing media files
|
||||
FOR %%A IN (..\src\Umbraco.Web.UI\media\*.*) DO DEL %%A
|
||||
|
||||
echo Removing script files
|
||||
FOR %%A IN (..\src\Umbraco.Web.UI\scripts\*.*) DO DEL %%A
|
||||
|
||||
echo Removing css files
|
||||
FOR %%A IN (..\src\Umbraco.Web.UI\css\*.*) DO DEL %%A
|
||||
|
||||
echo "Umbraco install reverted to clean install"
|
||||
pause
|
||||
exit
|
||||
|
||||
|
||||
|
||||
:exit
|
||||
exit
|
||||
Binary file not shown.
@@ -1,24 +0,0 @@
|
||||
Hi! Thanks for grabbing the Umbraco sourcecode.
|
||||
|
||||
===========================================
|
||||
NOTE - DEFAULT BRANCH EMPTY - December 2010
|
||||
===========================================
|
||||
|
||||
|
||||
- With the help of CodePlex we have migrated much of our previous changesets (as of Dec 13th 2010) from TFS to Mercurial.
|
||||
|
||||
- However, not everything could be migrated to our new branching workflow. So for each nominal group of 4.x changes, we've created named branches. For upcoming 5.x changesets, we'll adhere to our new workflow which we'll describe on the Wiki for contributors.
|
||||
|
||||
- FOR THE MOMENT, the 'default' branch is empty - pending the addition of the 5.0 changesets
|
||||
|
||||
- To switch to the codebase on which you want to work, 'hg update' to the named branch (e.g. "4.6.0") or tag (e.g. "Release-4.5.2") and browse or work from that point.
|
||||
|
||||
|
||||
Thanks to Matt Hawley at CodePlex for his help in our migration!
|
||||
|
||||
Cheers,
|
||||
The Umbraco Team
|
||||
|
||||
http://umbraco.org
|
||||
http://our.umbraco.org
|
||||
http://umbraco.codeplex.com
|
||||
@@ -1,82 +0,0 @@
|
||||
{\rtf1\ansi\ansicpg1252\uc1\deff0\stshfdbch0\stshfloch0\stshfhich0\stshfbi0\deflang1033\deflangfe1033{\fonttbl{\f0\froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}{\f36\fswiss\fcharset0\fprq2{\*\panose 020b0604030504040204}Tahoma;}
|
||||
{\f39\froman\fcharset238\fprq2 Times New Roman CE;}{\f40\froman\fcharset204\fprq2 Times New Roman Cyr;}{\f42\froman\fcharset161\fprq2 Times New Roman Greek;}{\f43\froman\fcharset162\fprq2 Times New Roman Tur;}
|
||||
{\f44\froman\fcharset177\fprq2 Times New Roman (Hebrew);}{\f45\froman\fcharset178\fprq2 Times New Roman (Arabic);}{\f46\froman\fcharset186\fprq2 Times New Roman Baltic;}{\f47\froman\fcharset163\fprq2 Times New Roman (Vietnamese);}
|
||||
{\f399\fswiss\fcharset238\fprq2 Tahoma CE;}{\f400\fswiss\fcharset204\fprq2 Tahoma Cyr;}{\f402\fswiss\fcharset161\fprq2 Tahoma Greek;}{\f403\fswiss\fcharset162\fprq2 Tahoma Tur;}{\f404\fswiss\fcharset177\fprq2 Tahoma (Hebrew);}
|
||||
{\f405\fswiss\fcharset178\fprq2 Tahoma (Arabic);}{\f406\fswiss\fcharset186\fprq2 Tahoma Baltic;}{\f407\fswiss\fcharset163\fprq2 Tahoma (Vietnamese);}{\f408\fswiss\fcharset222\fprq2 Tahoma (Thai);}}{\colortbl;\red0\green0\blue0;\red0\green0\blue255;
|
||||
\red0\green255\blue255;\red0\green255\blue0;\red255\green0\blue255;\red255\green0\blue0;\red255\green255\blue0;\red255\green255\blue255;\red0\green0\blue128;\red0\green128\blue128;\red0\green128\blue0;\red128\green0\blue128;\red128\green0\blue0;
|
||||
\red128\green128\blue0;\red128\green128\blue128;\red192\green192\blue192;}{\stylesheet{\ql \li0\ri0\widctlpar\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0 \fs24\lang1033\langfe1033\cgrid\langnp1033\langfenp1033 \snext0 Normal;}{\*\cs10 \additive
|
||||
\ssemihidden Default Paragraph Font;}{\*\ts11\tsrowd\trftsWidthB3\trpaddl108\trpaddr108\trpaddfl3\trpaddft3\trpaddfb3\trpaddfr3\trcbpat1\trcfpat1\tscellwidthfts0\tsvertalt\tsbrdrt\tsbrdrl\tsbrdrb\tsbrdrr\tsbrdrdgl\tsbrdrdgr\tsbrdrh\tsbrdrv
|
||||
\ql \li0\ri0\widctlpar\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0 \fs20\lang1024\langfe1024\cgrid\langnp1024\langfenp1024 \snext11 \ssemihidden Normal Table;}{\s15\ql \li0\ri0\widctlpar\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0
|
||||
\f36\fs16\lang1033\langfe1033\cgrid\langnp1033\langfenp1033 \sbasedon0 \snext15 \ssemihidden \styrsid668380 Balloon Text;}}{\*\latentstyles\lsdstimax156\lsdlockeddef0}{\*\listtable{\list\listtemplateid130696116{\listlevel\levelnfc0\levelnfcn0\leveljc0
|
||||
\leveljcn0\levelfollow0\levelstartat1\levelspace0\levelindent0{\leveltext\'02\'00.;}{\levelnumbers\'01;}\fi-360\li720\jclisttab\tx720\lin720 }{\listlevel\levelnfc0\levelnfcn0\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace0\levelindent0
|
||||
{\leveltext\'02\'01.;}{\levelnumbers\'01;}\fi-360\li1440\jclisttab\tx1440\lin1440 }{\listlevel\levelnfc0\levelnfcn0\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace0\levelindent0{\leveltext\'02\'02.;}{\levelnumbers\'01;}\fi-360\li2160
|
||||
\jclisttab\tx2160\lin2160 }{\listlevel\levelnfc0\levelnfcn0\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace0\levelindent0{\leveltext\'02\'03.;}{\levelnumbers\'01;}\fi-360\li2880\jclisttab\tx2880\lin2880 }{\listlevel\levelnfc0\levelnfcn0\leveljc0
|
||||
\leveljcn0\levelfollow0\levelstartat1\levelspace0\levelindent0{\leveltext\'02\'04.;}{\levelnumbers\'01;}\fi-360\li3600\jclisttab\tx3600\lin3600 }{\listlevel\levelnfc0\levelnfcn0\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace0\levelindent0
|
||||
{\leveltext\'02\'05.;}{\levelnumbers\'01;}\fi-360\li4320\jclisttab\tx4320\lin4320 }{\listlevel\levelnfc0\levelnfcn0\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace0\levelindent0{\leveltext\'02\'06.;}{\levelnumbers\'01;}\fi-360\li5040
|
||||
\jclisttab\tx5040\lin5040 }{\listlevel\levelnfc0\levelnfcn0\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace0\levelindent0{\leveltext\'02\'07.;}{\levelnumbers\'01;}\fi-360\li5760\jclisttab\tx5760\lin5760 }{\listlevel\levelnfc0\levelnfcn0\leveljc0
|
||||
\leveljcn0\levelfollow0\levelstartat1\levelspace0\levelindent0{\leveltext\'02\'08.;}{\levelnumbers\'01;}\fi-360\li6480\jclisttab\tx6480\lin6480 }{\listname ;}\listid723138990}}{\*\listoverridetable{\listoverride\listid723138990\listoverridecount0\ls1}}
|
||||
{\*\pgptbl {\pgp\ipgp2\itap0\li0\ri0\sb0\sa0}{\pgp\ipgp0\itap0\li0\ri0\sb0\sa0}{\pgp\ipgp4\itap0\li0\ri0\sb0\sa0}{\pgp\ipgp0\itap0\li0\ri0\sb0\sa0}{\pgp\ipgp0\itap0\li0\ri0\sb0\sa0}}{\*\rsidtbl \rsid288726\rsid668380\rsid1077358\rsid1250157\rsid1778664
|
||||
\rsid2232581\rsid3018318\rsid3766585\rsid4417501\rsid4531485\rsid4807452\rsid5341002\rsid7018004\rsid7880391\rsid10749719\rsid12150908\rsid12939982\rsid13596669\rsid15149892\rsid15551579\rsid16128754\rsid16674677}{\*\generator Microsoft Word 11.0.6359;}
|
||||
{\info{\title Shared Source License for Software included in Workspaces}{\author suev}{\operator Martin Maly}{\creatim\yr2005\mo3\dy22\hr10\min45}{\revtim\yr2005\mo3\dy22\hr15\min54}{\printim\yr2002\mo9\dy20\hr15\min39}{\version3}{\edmins1}{\nofpages1}
|
||||
{\nofwords672}{\nofchars3837}{\*\company Microsoft}{\nofcharsws4501}{\vern24703}}\widowctrl\ftnbj\aenddoc\noxlattoyen\expshrtn\noultrlspc\dntblnsbdb\nospaceforul\hyphcaps0\formshade\horzdoc\dgmargin\dghspace180\dgvspace180\dghorigin1701\dgvorigin1984
|
||||
\dghshow1\dgvshow1\jexpand\viewkind5\viewscale100\pgbrdrhead\pgbrdrfoot\splytwnine\ftnlytwnine\htmautsp\nolnhtadjtbl\useltbaln\alntblind\lytcalctblwd\lyttblrtgr\lnbrkrule\nobrkwrptbl\snaptogridincell\allowfieldendsel\wrppunct
|
||||
\asianbrkrule\nojkernpunct\rsidroot15149892 \fet0\sectd \linex0\endnhere\sectlinegrid360\sectdefaultcl\sftnbj {\*\pnseclvl1\pnucrm\pnstart1\pnindent720\pnhang {\pntxta .}}{\*\pnseclvl2\pnucltr\pnstart1\pnindent720\pnhang {\pntxta .}}{\*\pnseclvl3
|
||||
\pndec\pnstart1\pnindent720\pnhang {\pntxta .}}{\*\pnseclvl4\pnlcltr\pnstart1\pnindent720\pnhang {\pntxta )}}{\*\pnseclvl5\pndec\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl6\pnlcltr\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}
|
||||
{\*\pnseclvl7\pnlcrm\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl8\pnlcltr\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl9\pnlcrm\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}\pard\plain
|
||||
\ql \li0\ri0\widctlpar\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0 \fs24\lang1033\langfe1033\cgrid\langnp1033\langfenp1033 {\b\fs28\insrsid1250157\charrsid1250157 Shared Source License for }{\b\fs28\insrsid16674677 IronPython}{
|
||||
\b\fs28\insrsid1250157
|
||||
\par }{\b\fs28\insrsid5341002
|
||||
\par }{\b\insrsid5341002\charrsid5341002 This license governs use of the accompanying software}{\b\insrsid5341002 (\'93Software\'94)}{\b\insrsid5341002\charrsid5341002 , and your use of the }{\b\insrsid5341002 S}{\b\insrsid5341002\charrsid5341002
|
||||
oftware constitutes acceptance of this license.
|
||||
\par }{\insrsid1250157\charrsid5341002
|
||||
\par }{\b\insrsid1250157\charrsid1250157 You }{\b\insrsid5341002 may}{\b\insrsid1250157\charrsid1250157 use }{\b\insrsid5341002 the}{\b\insrsid1250157\charrsid1250157 Software for any }{\b\insrsid1250157 commercial or }{\b\insrsid1250157\charrsid1250157
|
||||
noncommercial purpose, including distributing derivative}{\b\insrsid4417501 work}{\b\insrsid1250157\charrsid1250157 s}{\b\insrsid1250157 .
|
||||
\par }{\insrsid1250157
|
||||
\par }\pard \ql \li0\ri0\widctlpar\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0\pararsid1250157 {\insrsid1250157\charrsid1250157 In return, we simply require that you agree:
|
||||
\par {\listtext\pard\plain\insrsid1250157\charrsid1250157 \hich\af0\dbch\af0\loch\f0 1.\tab}}\pard \ql \fi-360\li720\ri0\widctlpar\jclisttab\tx720\aspalpha\aspnum\faauto\ls1\adjustright\rin0\lin720\itap0\pararsid1250157 {\insrsid1250157\charrsid1250157
|
||||
Not to remove any copyright}{\insrsid5341002 or other}{\insrsid1250157\charrsid1250157 notices from the Software.
|
||||
\par {\listtext\pard\plain\insrsid1250157\charrsid1250157 \hich\af0\dbch\af0\loch\f0 2.\tab}That if you distribute the Software in source code form you do so only under this }{\insrsid5341002 l}{\insrsid1250157\charrsid1250157
|
||||
icense (i.e. you must include a complete copy of this }{\insrsid5341002 l}{\insrsid1250157\charrsid1250157 icense with your distribution), and if you distribute the Software solely in object form you only do so under a license that complies with this }{
|
||||
\insrsid5341002 l}{\insrsid1250157\charrsid1250157 icense.
|
||||
\par {\listtext\pard\plain\b\insrsid1250157\charrsid1250157 \hich\af0\dbch\af0\loch\f0 3.\tab}}{\b\insrsid1250157\charrsid1250157
|
||||
That the Software comes "as is", with no warranties. None whatsoever. This means no express, implied or statutory warranty, including without limitation, warranties of merchantability or fitness for a particular purpose or any warranty of }{
|
||||
\b\insrsid5341002 title or }{\b\insrsid1250157\charrsid1250157 non}{\b\insrsid5341002 -}{\b\insrsid1250157\charrsid1250157 infringement. Also, you must pass this disclaimer on whenever you distribute the Software}{\b\insrsid5341002 or derivative works}{
|
||||
\b\insrsid1250157\charrsid1250157 .}{\insrsid1250157\charrsid1250157
|
||||
\par {\listtext\pard\plain\b\insrsid1250157\charrsid1250157 \hich\af0\dbch\af0\loch\f0 4.\tab}}{\b\insrsid1250157\charrsid1250157 That neither Microsoft nor }{\b\insrsid1250157 any contributor to the Software}{\b\insrsid1250157\charrsid1250157
|
||||
will be liable for any of those types of damages known as}{\b\insrsid5341002 }{\b\insrsid1250157\charrsid1250157 indirect, special, consequential, or incidental related to the Software or this }{\b\insrsid5341002 l}{\b\insrsid1250157\charrsid1250157
|
||||
icense, to the maximum extent the law permits, no matter what legal theory it\rquote s based on. Also, you must pass this limitation of liability on whenever you distribute the Software}{\b\insrsid5341002 or derivative works}{
|
||||
\b\insrsid1250157\charrsid1250157 .}{\insrsid1250157\charrsid1250157
|
||||
\par {\listtext\pard\plain\insrsid1250157\charrsid1250157 \hich\af0\dbch\af0\loch\f0 5.\tab}That if you sue anyone over patents that you think may apply to the Software for a person's use of the Software, your license to the Software ends automatically.
|
||||
|
||||
\par {\listtext\pard\plain\insrsid1250157 \hich\af0\dbch\af0\loch\f0 6.\tab}}{\insrsid1250157 That the patent rights, if any, }{\insrsid288726 granted in this license}{\insrsid1250157\charrsid1250157 only apply to the Software, not to any derivative}{
|
||||
\insrsid4417501 work}{\insrsid1250157\charrsid1250157 s you make.}{\insrsid3018318
|
||||
\par {\listtext\pard\plain\insrsid3018318\charrsid3018318 \hich\af0\dbch\af0\loch\f0 7.\tab}}{\insrsid3018318\charrsid3018318 That if you are an agency of the U.S. Government, (i) Software provided pursuant to a solicitation issued on or after Dece
|
||||
mber 1, 1995, is provided with the commercial license rights set forth in this license, and (ii) Software provided pursuant to a solicitation issued prior to December 1, 1995, is provided with \'93Restricted Rights\'94
|
||||
as set forth in FAR, 48 C.F.R. 52.227-14 (June 1987) or DFAR, 48 C.F.R. 252.227-7013 (Oct 1988), as applicable.}{\insrsid1250157
|
||||
\par {\listtext\pard\plain\insrsid1250157 \hich\af0\dbch\af0\loch\f0 8.\tab}That your rights under this License end automatically if you breach it in any way.
|
||||
\par {\listtext\pard\plain\insrsid5341002 \hich\af0\dbch\af0\loch\f0 9.\tab}}{\insrsid5341002 That all rights not expressly granted to you in this license are reserved.
|
||||
\par }\pard \ql \li0\ri0\widctlpar\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0\pararsid1778664 {\insrsid1778664
|
||||
\par }{\insrsid12150908 Read below}{\insrsid1778664 for answers to frequently asked questions about this license.
|
||||
\par }{\insrsid12150908
|
||||
\par }\pard \ql \li0\ri0\widctlpar\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0\pararsid12150908 {\b\insrsid12150908\charrsid12150908 Q: Is this license OSI compliant?
|
||||
\par }{\insrsid12150908
|
||||
A: This license has not been submitted to OSI, but it allows developers to take full advantage of a dynamic language on the CLR and to have the freedom to distribute their works for the benefit of the community at large. The license is half of a
|
||||
page long and very straight forward. We believe it stands up to what developers demand of an "open" license.
|
||||
\par
|
||||
\par }{\b\insrsid12150908\charrsid12150908 Q: What copyright rights does the license grant me?
|
||||
\par }{\insrsid12150908 A: The license grants you a copyright license to make unlimited copies of the Software in sour
|
||||
ce or object code form, as well as to create Derivative Works (as that term is defined under US copyright law). This means that in addition to making unlimited copies of the Software, you have a copyright license to modify the Software and to use all or p
|
||||
art of the Software to create a Derivative Work.
|
||||
\par
|
||||
\par }{\b\insrsid12150908\charrsid12150908 Q: What patent rights does the license grant me?
|
||||
\par }{\insrsid12150908 A: This license grants you a patent license to use and distribute the Software under any Microsoft patent claims that read on the Software itself. In other wo
|
||||
rds, if you create a modified version of the Software, you still retain the patent license to use and distribute the original portions of the Software under the specific Microsoft patent claims that read on the Software, but you do not have a patent licen
|
||||
s
|
||||
e as to the new functionality you may have added by modifying the Software. This result is typical of many common open source licenses, including the Common Public License (CPL) and the Mozilla Public License (MPL). In addition, this license grants no rig
|
||||
h
|
||||
ts to any Microsoft patents that read on other components or files not included in the Software. This means that no patent license is granted to use or distribute any other software or technology that may be needed to use the Software or was created from
|
||||
t
|
||||
he Software (for example, any compiled output of the Software, the combination of the Software with other hardware or other software, or any additional enabling technologies that may be necessary to make or use the Software or any final product that inclu
|
||||
des the Software).}{\insrsid12150908
|
||||
\par }{\insrsid12150908\charrsid1250157
|
||||
\par }}
|
||||
+30
-6
@@ -1,9 +1,33 @@
|
||||
!! Umbraco - the simple, flexible and friendly ASP.NET CMS
|
||||
Umbraco - the simple, flexible and friendly ASP.NET CMS
|
||||
=======================================================
|
||||
For the first time on the Microsoft platform a free user and developer friendly cms that makes it quick and easy to create websites - or a breeze to build complex web applications. umbraco got award-winning integration capabilities and supports your ASP.NET User and Custom Controls out of the box. It's a developers dream and your users will love it too. Used by more than 57.000 active websites including Heinz.com, Peugeot.com, NAIAS.com and Microsofts documentinteropinitiative.org website you can be sure that the technology is proven, stable and scales.
|
||||
[url:More info at http://umbraco.org|http://umbraco.org]
|
||||
|
||||
!! Forums
|
||||
We have a forum running on [url:http://our.umbraco.org]. The discussions area on CodePlex will be for discussions on developing the core, and not on Umbraco-implementations or extensions in general. For those topics, please use [url:http://our.umbraco.org].
|
||||
More info at http://umbraco.com
|
||||
|
||||
!! Submitting Issues
|
||||
Another way you can contribute to Umbraco is by providing issue reports, for information on how to submit an issue report refer to our [url:online guide|http://our.umbraco.org/wiki/how-tos/submitting-bug-reports].
|
||||
Exploring the repository
|
||||
========================
|
||||
Most contributors will work on their own fork and should pick the branch in which they need their fix. For more information see:
|
||||
http://our.umbraco.org/contribute/guidelines-for-core-contribution
|
||||
|
||||
Exploring the source
|
||||
====================
|
||||
The Umbraco source code is never required for you to start building sites. If you are not using the source code for debugging purposes or to contribute to the source then please download the binaries listed at http://umbraco.codeplex.com
|
||||
|
||||
With that said, the Umbraco solution can be opened in Visual Studio 2010 with SP1 installed or Visual Studio 2012.
|
||||
|
||||
Contributing
|
||||
============
|
||||
Umbraco is Open Source which means you can contribute to make it great!
|
||||
Read all about it at http://our.umbraco.org/contribute
|
||||
|
||||
Forums
|
||||
======
|
||||
We have a forum running on http://our.umbraco.org for friendly community support.
|
||||
|
||||
Documentation
|
||||
=============
|
||||
Our documentation section provides help on installing and using Umbraco including API reference documentation: http://our.umbraco.org/documentation
|
||||
|
||||
Submitting Issues
|
||||
=================
|
||||
Another way you can contribute to Umbraco is by providing issue reports, for information on how to submit an issue report refer to our online guide at http://our.umbraco.org/contribute/report-an-issue-or-request-a-feature
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<solution>
|
||||
<add key="disableSourceControlIntegration" value="true" />
|
||||
</solution>
|
||||
</configuration>
|
||||
Binary file not shown.
@@ -0,0 +1,152 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">$(MSBuildProjectDirectory)\..\</SolutionDir>
|
||||
|
||||
<!-- Enable the restore command to run before builds -->
|
||||
<RestorePackages Condition=" '$(RestorePackages)' == '' ">false</RestorePackages>
|
||||
|
||||
<!-- Property that enables building a package from a project -->
|
||||
<BuildPackage Condition=" '$(BuildPackage)' == '' ">false</BuildPackage>
|
||||
|
||||
<!-- Determines if package restore consent is required to restore packages -->
|
||||
<RequireRestoreConsent Condition=" '$(RequireRestoreConsent)' != 'false' ">true</RequireRestoreConsent>
|
||||
|
||||
<!-- Download NuGet.exe if it does not already exist -->
|
||||
<DownloadNuGetExe Condition=" '$(DownloadNuGetExe)' == '' ">false</DownloadNuGetExe>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup Condition=" '$(PackageSources)' == '' ">
|
||||
<!-- Package sources used to restore packages. By default will used the registered sources under %APPDATA%\NuGet\NuGet.Config -->
|
||||
<!--
|
||||
<PackageSource Include="https://nuget.org/api/v2/" />
|
||||
<PackageSource Include="https://my-nuget-source/nuget/" />
|
||||
-->
|
||||
<PackageSource Include="https://nuget.org/api/v2/" />
|
||||
<PackageSource Include="http://www.myget.org/F/umbracocore/" />
|
||||
</ItemGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(OS)' == 'Windows_NT'">
|
||||
<!-- Windows specific commands -->
|
||||
<NuGetToolsPath>$([System.IO.Path]::Combine($(SolutionDir), ".nuget"))</NuGetToolsPath>
|
||||
<PackagesConfig>$([System.IO.Path]::Combine($(ProjectDir), "packages.config"))</PackagesConfig>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(OS)' != 'Windows_NT'">
|
||||
<!-- We need to launch nuget.exe with the mono command if we're not on windows -->
|
||||
<NuGetToolsPath>$(SolutionDir).nuget</NuGetToolsPath>
|
||||
<PackagesConfig>packages.config</PackagesConfig>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<!-- NuGet command -->
|
||||
<NuGetExePath Condition=" '$(NuGetExePath)' == '' ">$(NuGetToolsPath)\nuget.exe</NuGetExePath>
|
||||
<PackageSources Condition=" $(PackageSources) == '' ">@(PackageSource)</PackageSources>
|
||||
|
||||
<NuGetCommand Condition=" '$(OS)' == 'Windows_NT'">"$(NuGetExePath)"</NuGetCommand>
|
||||
<NuGetCommand Condition=" '$(OS)' != 'Windows_NT' ">mono --runtime=v4.0.30319 $(NuGetExePath)</NuGetCommand>
|
||||
|
||||
<PackageOutputDir Condition="$(PackageOutputDir) == ''">$(TargetDir.Trim('\\'))</PackageOutputDir>
|
||||
|
||||
<RequireConsentSwitch Condition=" $(RequireRestoreConsent) == 'true' ">-RequireConsent</RequireConsentSwitch>
|
||||
<!-- Commands -->
|
||||
<RestoreCommand>$(NuGetCommand) install "$(PackagesConfig)" -source "$(PackageSources)" $(RequireConsentSwitch) -solutionDir "$(SolutionDir) "</RestoreCommand>
|
||||
<BuildCommand>$(NuGetCommand) pack "$(ProjectPath)" -p Configuration=$(Configuration) -o "$(PackageOutputDir)" -symbols</BuildCommand>
|
||||
|
||||
<!-- We need to ensure packages are restored prior to assembly resolve -->
|
||||
<ResolveReferencesDependsOn Condition="$(RestorePackages) == 'true'">
|
||||
RestorePackages;
|
||||
$(ResolveReferencesDependsOn);
|
||||
</ResolveReferencesDependsOn>
|
||||
|
||||
<!-- Make the build depend on restore packages -->
|
||||
<BuildDependsOn Condition="$(BuildPackage) == 'true'">
|
||||
$(BuildDependsOn);
|
||||
BuildPackage;
|
||||
</BuildDependsOn>
|
||||
</PropertyGroup>
|
||||
|
||||
<Target Name="CheckPrerequisites">
|
||||
<!-- Raise an error if we're unable to locate nuget.exe -->
|
||||
<Error Condition="'$(DownloadNuGetExe)' != 'true' AND !Exists('$(NuGetExePath)')" Text="Unable to locate '$(NuGetExePath)'" />
|
||||
<SetEnvironmentVariable EnvKey="VisualStudioVersion" EnvValue="$(VisualStudioVersion)" Condition=" '$(VisualStudioVersion)' != '' AND '$(OS)' == 'Windows_NT' " />
|
||||
<!--
|
||||
Take advantage of MsBuild's build dependency tracking to make sure that we only ever download nuget.exe once.
|
||||
This effectively acts as a lock that makes sure that the download operation will only happen once and all
|
||||
parallel builds will have to wait for it to complete.
|
||||
-->
|
||||
<MsBuild Targets="_DownloadNuGet" Projects="$(MSBuildThisFileFullPath)" Properties="Configuration=NOT_IMPORTANT" />
|
||||
</Target>
|
||||
|
||||
<Target Name="_DownloadNuGet">
|
||||
<DownloadNuGet OutputFilename="$(NuGetExePath)" Condition=" '$(DownloadNuGetExe)' == 'true' AND !Exists('$(NuGetExePath)')" />
|
||||
</Target>
|
||||
|
||||
<Target Name="RestorePackages" DependsOnTargets="CheckPrerequisites">
|
||||
<Exec Command="$(RestoreCommand)"
|
||||
Condition="'$(OS)' != 'Windows_NT' And Exists('$(PackagesConfig)')" />
|
||||
|
||||
<Exec Command="$(RestoreCommand)"
|
||||
LogStandardErrorAsError="true"
|
||||
Condition="'$(OS)' == 'Windows_NT' And Exists('$(PackagesConfig)')" />
|
||||
</Target>
|
||||
|
||||
<Target Name="BuildPackage" DependsOnTargets="CheckPrerequisites">
|
||||
<Exec Command="$(BuildCommand)"
|
||||
Condition=" '$(OS)' != 'Windows_NT' " />
|
||||
|
||||
<Exec Command="$(BuildCommand)"
|
||||
LogStandardErrorAsError="true"
|
||||
Condition=" '$(OS)' == 'Windows_NT' " />
|
||||
</Target>
|
||||
|
||||
<UsingTask TaskName="DownloadNuGet" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">
|
||||
<ParameterGroup>
|
||||
<OutputFilename ParameterType="System.String" Required="true" />
|
||||
</ParameterGroup>
|
||||
<Task>
|
||||
<Reference Include="System.Core" />
|
||||
<Using Namespace="System" />
|
||||
<Using Namespace="System.IO" />
|
||||
<Using Namespace="System.Net" />
|
||||
<Using Namespace="Microsoft.Build.Framework" />
|
||||
<Using Namespace="Microsoft.Build.Utilities" />
|
||||
<Code Type="Fragment" Language="cs">
|
||||
<![CDATA[
|
||||
try {
|
||||
OutputFilename = Path.GetFullPath(OutputFilename);
|
||||
|
||||
Log.LogMessage("Downloading latest version of NuGet.exe...");
|
||||
WebClient webClient = new WebClient();
|
||||
webClient.DownloadFile("https://nuget.org/nuget.exe", OutputFilename);
|
||||
|
||||
return true;
|
||||
}
|
||||
catch (Exception ex) {
|
||||
Log.LogErrorFromException(ex);
|
||||
return false;
|
||||
}
|
||||
]]>
|
||||
</Code>
|
||||
</Task>
|
||||
</UsingTask>
|
||||
|
||||
<UsingTask TaskName="SetEnvironmentVariable" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">
|
||||
<ParameterGroup>
|
||||
<EnvKey ParameterType="System.String" Required="true" />
|
||||
<EnvValue ParameterType="System.String" Required="true" />
|
||||
</ParameterGroup>
|
||||
<Task>
|
||||
<Using Namespace="System" />
|
||||
<Code Type="Fragment" Language="cs">
|
||||
<![CDATA[
|
||||
try {
|
||||
Environment.SetEnvironmentVariable(EnvKey, EnvValue, System.EnvironmentVariableTarget.Process);
|
||||
}
|
||||
catch {
|
||||
}
|
||||
]]>
|
||||
</Code>
|
||||
</Task>
|
||||
</UsingTask>
|
||||
</Project>
|
||||
@@ -1,38 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<TestSettings name="INDIGO64 Tests" id="338122db-6049-471e-b696-cbaf25469edc" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010">
|
||||
<Description>This is a default test run configuration for a local test run.</Description>
|
||||
<Execution>
|
||||
<Hosts type="ASP.NET" skipUnhostableTests="false">
|
||||
<AspNet name="ASP.NET" executionType="Iis" urlToTest="http://sandbox1.umbraco.local">
|
||||
<DevelopmentServer pathToWebSite="C:\Development\CodePlex\Umbraco\branches\4.1.0\umbraco\presentation" webApplicationRoot="/" />
|
||||
</AspNet>
|
||||
</Hosts>
|
||||
<TestTypeSpecific>
|
||||
<UnitTestRunConfig testTypeId="13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b">
|
||||
<AssemblyResolution>
|
||||
<TestDirectory useLoadContext="true" />
|
||||
</AssemblyResolution>
|
||||
</UnitTestRunConfig>
|
||||
<WebTestRunConfiguration testTypeId="4e7599fa-5ecb-43e9-a887-cd63cf72d207">
|
||||
<Browser name="Internet Explorer 7.0">
|
||||
<Headers>
|
||||
<Header name="User-Agent" value="Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)" />
|
||||
<Header name="Accept" value="*/*" />
|
||||
<Header name="Accept-Language" value="{{$IEAcceptLanguage}}" />
|
||||
<Header name="Accept-Encoding" value="GZIP" />
|
||||
</Headers>
|
||||
</Browser>
|
||||
</WebTestRunConfiguration>
|
||||
</TestTypeSpecific>
|
||||
<AgentRule name="LocalMachineDefaultRole">
|
||||
<DataCollectors>
|
||||
<DataCollector uri="datacollector://microsoft/TraceDebugger/1.0" assemblyQualifiedName="Microsoft.VisualStudio.TraceCollector.TraceDebuggerDataCollector, Microsoft.VisualStudio.TraceCollector, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" friendlyName="IntelliTrace">
|
||||
</DataCollector>
|
||||
<DataCollector uri="datacollector://microsoft/HttpProxy/1.0" assemblyQualifiedName="Microsoft.VisualStudio.TraceCollector.HttpProxyCollector, Microsoft.VisualStudio.TraceCollector, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" friendlyName="ASP.NET Client Proxy for IntelliTrace and Test Impact">
|
||||
</DataCollector>
|
||||
<DataCollector uri="datacollector://microsoft/AspNetProfiler/1.0" assemblyQualifiedName="Microsoft.VisualStudio.PerformanceTools.DataCollection.AspNetProfileDataCollector, Microsoft.VisualStudio.PerformanceTools.DataCollection, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" friendlyName="ASP.NET Profiler">
|
||||
</DataCollector>
|
||||
</DataCollectors>
|
||||
</AgentRule>
|
||||
</Execution>
|
||||
</TestSettings>
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 4.2 KiB |
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@@ -1,83 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!--Created with Liquid XML Studio - FREE Community Edition 7.0.5.906 (http://www.liquid-technologies.com)-->
|
||||
<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
||||
<xs:element name="DocumentTypes">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element minOccurs="0" maxOccurs="unbounded" name="DocumentType">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Repesents an Umbraco Document Type and its known properties</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:complexType>
|
||||
<xs:complexContent mixed="false">
|
||||
<xs:extension base="BaseStructure">
|
||||
<xs:sequence>
|
||||
<xs:element name="Description" type="xs:string" />
|
||||
<xs:element name="Properties">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element minOccurs="0" maxOccurs="unbounded" name="Property">
|
||||
<xs:complexType>
|
||||
<xs:complexContent mixed="false">
|
||||
<xs:extension base="BaseStructure">
|
||||
<xs:sequence>
|
||||
<xs:element name="Mandatory" type="xs:boolean" />
|
||||
<xs:element name="RegularExpression" type="xs:string" />
|
||||
<xs:element name="Type" type="xs:string" />
|
||||
<xs:element name="ControlId" type="xs:string" />
|
||||
<xs:element name="Description" type="xs:string" />
|
||||
</xs:sequence>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="Associations">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element minOccurs="0" maxOccurs="unbounded" name="Association" type="xs:string" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
<xs:attribute name="ParentId" type="xs:int" use="required" />
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
<xs:attribute name="DataContextName" use="required">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Name prefix for the DataContext that will be generated</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string" />
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="Serialization" use="required">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Serialization mode of the generated classes</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="None" />
|
||||
<xs:enumeration value="Unidirectional" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="PluralizeCollections" type="xs:boolean" use="required" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:complexType name="BaseStructure">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Pairing of ID and Name</xs:documentation>
|
||||
</xs:annotation>
|
||||
<xs:sequence>
|
||||
<xs:element name="Id" type="xs:int" />
|
||||
<xs:element name="Name" type="xs:string" />
|
||||
<xs:element name="Alias" type="xs:string" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:schema>
|
||||
@@ -1,42 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
||||
<xs:complexType name="nodeType">
|
||||
<xs:sequence>
|
||||
<xs:element minOccurs="0" maxOccurs="unbounded" name="data">
|
||||
<xs:complexType>
|
||||
<xs:simpleContent>
|
||||
<xs:extension base="xs:string">
|
||||
<xs:attribute name="alias" type="xs:string" use="required" />
|
||||
</xs:extension>
|
||||
</xs:simpleContent>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element minOccurs="0" maxOccurs="unbounded" name="node" type="nodeType" />
|
||||
</xs:sequence>
|
||||
<xs:attribute name="id" type="xs:int" use="required" />
|
||||
<xs:attribute name="version" type="xs:string" use="required" />
|
||||
<xs:attribute name="parentID" type="xs:int" use="required" />
|
||||
<xs:attribute name="level" type="xs:int" use="required" />
|
||||
<xs:attribute name="writerID" type="xs:int" use="required" />
|
||||
<xs:attribute name="creatorID" type="xs:int" use="required" />
|
||||
<xs:attribute name="nodeType" type="xs:int" use="required" />
|
||||
<xs:attribute name="template" type="xs:int" use="required" />
|
||||
<xs:attribute name="sortOrder" type="xs:int" use="required" />
|
||||
<xs:attribute name="createDate" type="xs:dateTime" use="required" />
|
||||
<xs:attribute name="updateDate" type="xs:dateTime" use="required" />
|
||||
<xs:attribute name="nodeName" type="xs:string" use="required" />
|
||||
<xs:attribute name="urlName" type="xs:string" use="required" />
|
||||
<xs:attribute name="writerName" type="xs:string" use="required" />
|
||||
<xs:attribute name="creatorName" type="xs:string" use="required" />
|
||||
<xs:attribute name="nodeTypeAlias" type="xs:string" use="required" />
|
||||
<xs:attribute name="path" type="xs:string" use="required" />
|
||||
</xs:complexType>
|
||||
<xs:element name="root">
|
||||
<xs:complexType>
|
||||
<xs:sequence minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="node" type="nodeType" />
|
||||
</xs:sequence>
|
||||
<xs:attribute name="id" type="xs:int" use="required" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:schema>
|
||||
@@ -1,83 +0,0 @@
|
||||
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>9.0.30729</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{324A7FA9-8F19-4D4D-B96A-6F673C82BC92}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>umbraco.LinqCore.Mockable.Tests</RootNamespace>
|
||||
<AssemblyName>umbraco.LinqCore.Mockable.Tests</AssemblyName>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<SccProjectName>SAK</SccProjectName>
|
||||
<SccLocalPath>SAK</SccLocalPath>
|
||||
<SccAuxPath>SAK</SccAuxPath>
|
||||
<SccProvider>SAK</SccProvider>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug - Fixed Version|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\Debug - Fixed Version\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
|
||||
<CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
|
||||
<Reference Include="Rhino.Mocks, Version=3.5.0.1337, Culture=neutral, PublicKeyToken=0b3305902db7183f, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\dep\Reference Assemblies\Mocking\Rhino.Mocks.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Runtime.Serialization">
|
||||
<RequiredTargetFramework>3.0</RequiredTargetFramework>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="..\Solution Items\SolutionInfo.cs">
|
||||
<Link>Properties\SolutionInfo.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="DataContextMockTest.cs" />
|
||||
<Compile Include="MyUmbraco.designer.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Core\umbraco.Linq.Core.csproj">
|
||||
<Project>{31CAEC36-0C3D-4D69-B092-84866811EA07}</Project>
|
||||
<Name>umbraco.Linq.Core</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
||||
@@ -1,84 +0,0 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using Rhino.Mocks;
|
||||
using umbraco.Linq.Core;
|
||||
using umbraco.Test;
|
||||
|
||||
namespace umbraco.LinqCore.Mockable.Tests
|
||||
{
|
||||
/// <summary>
|
||||
/// Summary description for DataContextMockTest
|
||||
/// </summary>
|
||||
[TestClass]
|
||||
public class DataContextMockTest
|
||||
{
|
||||
public DataContextMockTest()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private TestContext testContextInstance;
|
||||
|
||||
/// <summary>
|
||||
///Gets or sets the test context which provides
|
||||
///information about and functionality for the current test run.
|
||||
///</summary>
|
||||
public TestContext TestContext
|
||||
{
|
||||
get
|
||||
{
|
||||
return testContextInstance;
|
||||
}
|
||||
set
|
||||
{
|
||||
testContextInstance = value;
|
||||
}
|
||||
}
|
||||
|
||||
#region Additional test attributes
|
||||
//
|
||||
// You can use the following additional attributes as you write your tests:
|
||||
//
|
||||
// Use ClassInitialize to run code before running the first test in the class
|
||||
// [ClassInitialize()]
|
||||
// public static void MyClassInitialize(TestContext testContext) { }
|
||||
//
|
||||
// Use ClassCleanup to run code after all tests in a class have run
|
||||
// [ClassCleanup()]
|
||||
// public static void MyClassCleanup() { }
|
||||
//
|
||||
// Use TestInitialize to run code before running each test
|
||||
// [TestInitialize()]
|
||||
// public void MyTestInitialize() { }
|
||||
//
|
||||
// Use TestCleanup to run code after each test has run
|
||||
// [TestCleanup()]
|
||||
// public void MyTestCleanup() { }
|
||||
//
|
||||
#endregion
|
||||
|
||||
[TestMethod]
|
||||
public void DataContextMockTest_MockProvider()
|
||||
{
|
||||
var dataProvider = MockRepository.GenerateMock<UmbracoDataProvider>();
|
||||
using (var ctx = new MyUmbracoDataContext(dataProvider))
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
[TestMethod, ExpectedException(typeof(NotImplementedException))]
|
||||
public void DataContextMockTest_MockProviderThrowsException()
|
||||
{
|
||||
var dataProvider = MockRepository.GenerateMock<UmbracoDataProvider>();
|
||||
|
||||
dataProvider.Stub(d => d.LoadTree<CwsHome>()).Throw(new NotImplementedException());
|
||||
using (var ctx = new MyUmbracoDataContext(dataProvider))
|
||||
{
|
||||
var homes = ctx.CwsHomes;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
-3868
File diff suppressed because it is too large
Load Diff
@@ -1,9 +0,0 @@
|
||||
using System.Reflection;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("Core")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyProduct("Core")]
|
||||
@@ -1,118 +0,0 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using TypeMock.ArrangeActAssert;
|
||||
using umbraco.Test;
|
||||
|
||||
namespace umbraco.Linq.Core.Tests
|
||||
{
|
||||
/// <summary>
|
||||
/// Summary description for AncestorTest
|
||||
/// </summary>
|
||||
[TestClass, DeploymentItem("umbraco.config")]
|
||||
public class AncestorTest
|
||||
{
|
||||
public AncestorTest()
|
||||
{
|
||||
//
|
||||
// TODO: Add constructor logic here
|
||||
//
|
||||
}
|
||||
|
||||
private TestContext testContextInstance;
|
||||
|
||||
/// <summary>
|
||||
///Gets or sets the test context which provides
|
||||
///information about and functionality for the current test run.
|
||||
///</summary>
|
||||
public TestContext TestContext
|
||||
{
|
||||
get
|
||||
{
|
||||
return testContextInstance;
|
||||
}
|
||||
set
|
||||
{
|
||||
testContextInstance = value;
|
||||
}
|
||||
}
|
||||
|
||||
#region Additional test attributes
|
||||
//
|
||||
// You can use the following additional attributes as you write your tests:
|
||||
//
|
||||
// Use ClassInitialize to run code before running the first test in the class
|
||||
// [ClassInitialize()]
|
||||
// public static void MyClassInitialize(TestContext testContext) { }
|
||||
//
|
||||
// Use ClassCleanup to run code after all tests in a class have run
|
||||
// [ClassCleanup()]
|
||||
// public static void MyClassCleanup() { }
|
||||
//
|
||||
// Use TestInitialize to run code before running each test
|
||||
// [TestInitialize()]
|
||||
// public void MyTestInitialize() { }
|
||||
//
|
||||
// Use TestCleanup to run code after each test has run
|
||||
// [TestCleanup()]
|
||||
// public void MyTestCleanup() { }
|
||||
//
|
||||
#endregion
|
||||
|
||||
[TestMethod, Isolated]
|
||||
public void AncestorTest_NoWhereCondition_Exists()
|
||||
{
|
||||
MockHelpers.SetupFakeHttpContext();
|
||||
using (var ctx = new MyUmbracoDataContext())
|
||||
{
|
||||
var textPage = ctx.CWSTextpages.First();
|
||||
|
||||
var hp = textPage.AncestorOrDefault<CWSHome>();
|
||||
|
||||
Assert.IsNotNull(hp);
|
||||
}
|
||||
}
|
||||
|
||||
[TestMethod, Isolated]
|
||||
public void AncestorTest_NoWhereCondition_NotExists()
|
||||
{
|
||||
MockHelpers.SetupFakeHttpContext();
|
||||
using (var ctx = new MyUmbracoDataContext())
|
||||
{
|
||||
var textPage = ctx.CWSTextpages.First();
|
||||
|
||||
var a = textPage.AncestorOrDefault<CWSPhoto>();
|
||||
|
||||
Assert.IsNull(a);
|
||||
}
|
||||
}
|
||||
|
||||
[TestMethod, Isolated]
|
||||
public void AncestorTest_Where_Exists()
|
||||
{
|
||||
MockHelpers.SetupFakeHttpContext();
|
||||
using (var ctx = new MyUmbracoDataContext())
|
||||
{
|
||||
var photo = ctx.CWSPhotos.First(p => p.Name.Contains("Umbraco"));
|
||||
var gallery = photo.AncestorOrDefault<CWSGallery>(g => g.Name.Contains("Codegarden"));
|
||||
|
||||
Assert.IsNotNull(gallery);
|
||||
}
|
||||
}
|
||||
|
||||
[TestMethod, Isolated]
|
||||
public void AncestorTest_Where_NotExists()
|
||||
{
|
||||
MockHelpers.SetupFakeHttpContext();
|
||||
using (var ctx = new MyUmbracoDataContext())
|
||||
{
|
||||
var photo = ctx.CWSPhotos.First(p => p.Name.Contains("Umbraco"));
|
||||
var gallery = photo.AncestorOrDefault<CWSGallery>(g => g.Name.Contains("Bookhouses"));
|
||||
|
||||
Assert.IsNull(gallery);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<appSettings>
|
||||
<add key="umbracoPath" value="umbraco.config"/>
|
||||
</appSettings>
|
||||
</configuration>
|
||||
@@ -1,136 +0,0 @@
|
||||
==========================================================================
|
||||
Visual Studio Team System: Overview of Authoring and Running Tests
|
||||
==========================================================================
|
||||
|
||||
This overview describes the features for authoring and running tests in
|
||||
Visual Studio Team System and Visual Studio Team Edition for Software Testers.
|
||||
|
||||
Opening Tests
|
||||
-------------
|
||||
To open a test, open a test project or a test metadata file (a file with
|
||||
extension .vsmdi) that contains the definition of the test. You can find
|
||||
test projects and metadata files in Solution Explorer.
|
||||
|
||||
Viewing Tests
|
||||
-------------
|
||||
To see which tests are available to you, open the Test View window. Or,
|
||||
if you have installed Team Edition for Software Testers, you can also open
|
||||
the Test List Editor window to view tests.
|
||||
|
||||
To open the Test View window, click the Test menu, point to Windows, and
|
||||
then click Test View. To open the Test List Editor window (if you have
|
||||
installed Team Edition for Software Testers), click Test, point to Windows,
|
||||
and then click Test List Editor.
|
||||
|
||||
Running Tests
|
||||
-------------
|
||||
You can run tests from the Test View window and the Test List Editor window.
|
||||
See Viewing Tests to learn how to open these windows. To run one or more
|
||||
tests displayed in the Test View window, first select the tests in that
|
||||
window; to select multiple tests, hold either the Shift or CTRL key while
|
||||
clicking tests. Then click the Run Tests button in the Test View window
|
||||
toolbar.
|
||||
|
||||
If you have installed Visual Studio Team Edition for Software Testers, you can
|
||||
also use the Test List Editor window to run tests. To run tests in Test List Editor,
|
||||
select the check box next to each test that you want to run. Then click the
|
||||
Run Tests button in the Test List Editor window toolbar.
|
||||
|
||||
Viewing Test Results
|
||||
--------------------
|
||||
When you run a test or a series of tests, the results of the test run will be
|
||||
shown in the Test Results window. Each individual test in the run is shown on
|
||||
a separate line so that you can see its status. The window contains an
|
||||
embedded status bar in the top half of the window that provides you with
|
||||
summary details of the complete test run.
|
||||
|
||||
To see more detailed results for a particular test result, double-click it in
|
||||
the Test Results window. This opens a window that provides more information
|
||||
about the particular test result, such as any specific error messages returned
|
||||
by the test.
|
||||
|
||||
Changing the way that tests are run
|
||||
-----------------------------------
|
||||
Each time you run one or more tests, a collection of settings is used to
|
||||
determine how those tests are run. These settings are contained in a “test
|
||||
run configuration” file.
|
||||
|
||||
Here is a partial list of the changes you can make with a test run
|
||||
configuration file:
|
||||
|
||||
- Change the naming scheme for each test run.
|
||||
- Change the test controller that the tests are run on so that you can run
|
||||
tests remotely.
|
||||
- Gather code coverage data for the code being tested so that you can see
|
||||
which lines of code are covered by your tests.
|
||||
- Enable and disable test deployment.
|
||||
- Specify additional files to deploy before tests are run.
|
||||
- Select a different host, ASP.NET, for running ASP.NET unit tests.
|
||||
- Select a different host, the smart device test host, for running smart device unit tests.
|
||||
- Set various properties for the test agents that run your tests.
|
||||
- Run custom scripts at the start and end of each test run so that you can
|
||||
set up the test environment exactly as required each time tests are run.
|
||||
- Set time limits for tests and test runs.
|
||||
- Set the browser mix and the number of times to repeat Web tests in the
|
||||
test run.
|
||||
|
||||
By default, a test run configuration file is created whenever you create a
|
||||
new test project. You make changes to this file by double-clicking it in
|
||||
Solution Explorer and then changing its settings. (Test run configuration
|
||||
files have the extension .testrunconfig.)
|
||||
|
||||
A solution can contain multiple test run configuration files. Only one of
|
||||
those files, known as the “Active” test run configuration file, is used to
|
||||
determine the settings that are currently used for test runs. You select
|
||||
the active test run configuration by clicking Select Active Test Run
|
||||
Configuration on the Test menu.
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
Test Types
|
||||
----------
|
||||
Using Visual Studio Team Edition for Software Testers, you can create a number
|
||||
of different test types:
|
||||
|
||||
Unit test: Use a unit test to create a programmatic test in C++, Visual C# or
|
||||
Visual Basic that exercises source code. A unit test calls the methods of a
|
||||
class, passing suitable parameters, and verifies that the returned value is
|
||||
what you expect.
|
||||
There are three specialized variants of unit tests:
|
||||
- Data-driven unit tests are created when you configure a unit test to be
|
||||
called repeatedly for each row of a data source. The data from each row
|
||||
is used by the unit test as input data.
|
||||
- ASP.NET unit tests are unit tests that exercise code in an ASP.NET Web
|
||||
application.
|
||||
- Smart device unit tests are unit tests that are deployed to a smart device
|
||||
or emulator and then executed by the smart device test host.
|
||||
|
||||
Web Test: Web tests consist of an ordered series of HTTP requests that you
|
||||
record in a browser session using Microsoft Internet Explorer. You can have
|
||||
the test report specific details about the pages or sites it requests, such
|
||||
as whether a particular page contains a specified string.
|
||||
|
||||
Load Test: You use a load test to encapsulate non-manual tests, such as
|
||||
unit, Web, and generic tests, and then run them simultaneously by using
|
||||
virtual users. Running these tests under load generates test results,
|
||||
including performance and other counters, in tables and in graphs.
|
||||
|
||||
Generic test: A generic test is an existing program wrapped to function as a
|
||||
test in Visual Studio. The following are examples of tests or programs that
|
||||
you can turn into generic tests:
|
||||
- An existing test that uses process exit codes to communicate whether the
|
||||
test passed or failed. 0 indicates passing and any other value indicates
|
||||
a failure.
|
||||
- A general program to obtain specific functionality during a test scenario.
|
||||
- A test or program that uses a special XML file (called a “summary results
|
||||
file”), to communicate detailed results.
|
||||
|
||||
Manual test: The manual test type is used when the test tasks are to be
|
||||
completed by a test engineer as opposed to an automated script.
|
||||
|
||||
Ordered test: Use an ordered test to execute a set of tests in an order you
|
||||
specify.
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
|
||||
@@ -1,93 +0,0 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using TypeMock.ArrangeActAssert;
|
||||
using umbraco.Test;
|
||||
|
||||
namespace umbraco.Linq.Core.Tests
|
||||
{
|
||||
/// <summary>
|
||||
/// Summary description for CacheTest
|
||||
/// </summary>
|
||||
[TestClass, DeploymentItem("umbraco.config")]
|
||||
public class CacheTest
|
||||
{
|
||||
public CacheTest()
|
||||
{
|
||||
}
|
||||
|
||||
private TestContext testContextInstance;
|
||||
|
||||
/// <summary>
|
||||
///Gets or sets the test context which provides
|
||||
///information about and functionality for the current test run.
|
||||
///</summary>
|
||||
public TestContext TestContext
|
||||
{
|
||||
get
|
||||
{
|
||||
return testContextInstance;
|
||||
}
|
||||
set
|
||||
{
|
||||
testContextInstance = value;
|
||||
}
|
||||
}
|
||||
|
||||
#region Additional test attributes
|
||||
//
|
||||
// You can use the following additional attributes as you write your tests:
|
||||
//
|
||||
// Use ClassInitialize to run code before running the first test in the class
|
||||
// [ClassInitialize()]
|
||||
// public static void MyClassInitialize(TestContext testContext) { }
|
||||
//
|
||||
// Use ClassCleanup to run code after all tests in a class have run
|
||||
// [ClassCleanup()]
|
||||
// public static void MyClassCleanup() { }
|
||||
//
|
||||
// Use TestInitialize to run code before running each test
|
||||
// [TestInitialize()]
|
||||
// public void MyTestInitialize() { }
|
||||
//
|
||||
// Use TestCleanup to run code after each test has run
|
||||
// [TestCleanup()]
|
||||
// public void MyTestCleanup() { }
|
||||
//
|
||||
#endregion
|
||||
|
||||
[TestMethod, Isolated]
|
||||
public void CacheTest_ForcedRefresh()
|
||||
{
|
||||
MockHelpers.SetupFakeHttpContext();
|
||||
|
||||
using (var ctx = new MyUmbracoDataContext())
|
||||
{
|
||||
var hps = ctx.CWSHomes;
|
||||
|
||||
ctx.CWSHomes.ReloadCache();
|
||||
|
||||
var reloadedHps = ctx.CWSHomes;
|
||||
|
||||
Assert.AreNotSame(reloadedHps, hps, "Force reload should result in a different object");
|
||||
}
|
||||
}
|
||||
|
||||
[TestMethod, Isolated]
|
||||
public void CacheTest_RequeryLoadFromCache()
|
||||
{
|
||||
MockHelpers.SetupFakeHttpContext();
|
||||
|
||||
using (var ctx = new MyUmbracoDataContext())
|
||||
{
|
||||
var hps = ctx.CWSHomes;
|
||||
|
||||
var requeriedHps = ctx.CWSHomes;
|
||||
|
||||
Assert.AreSame(requeriedHps, hps, "Requeried objects should result in the same collection");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,102 +0,0 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using TypeMock.ArrangeActAssert;
|
||||
using umbraco.Test;
|
||||
|
||||
namespace umbraco.Linq.Core.Tests
|
||||
{
|
||||
/// <summary>
|
||||
/// Summary description for ChildTest
|
||||
/// </summary>
|
||||
[TestClass, DeploymentItem("umbraco.config")]
|
||||
public class ChildTest
|
||||
{
|
||||
public ChildTest()
|
||||
{
|
||||
//
|
||||
// TODO: Add constructor logic here
|
||||
//
|
||||
}
|
||||
|
||||
private TestContext testContextInstance;
|
||||
|
||||
/// <summary>
|
||||
///Gets or sets the test context which provides
|
||||
///information about and functionality for the current test run.
|
||||
///</summary>
|
||||
public TestContext TestContext
|
||||
{
|
||||
get
|
||||
{
|
||||
return testContextInstance;
|
||||
}
|
||||
set
|
||||
{
|
||||
testContextInstance = value;
|
||||
}
|
||||
}
|
||||
|
||||
#region Additional test attributes
|
||||
//
|
||||
// You can use the following additional attributes as you write your tests:
|
||||
//
|
||||
// Use ClassInitialize to run code before running the first test in the class
|
||||
// [ClassInitialize()]
|
||||
// public static void MyClassInitialize(TestContext testContext) { }
|
||||
//
|
||||
// Use ClassCleanup to run code after all tests in a class have run
|
||||
// [ClassCleanup()]
|
||||
// public static void MyClassCleanup() { }
|
||||
//
|
||||
// Use TestInitialize to run code before running each test
|
||||
// [TestInitialize()]
|
||||
// public void MyTestInitialize() { }
|
||||
//
|
||||
// Use TestCleanup to run code after each test has run
|
||||
// [TestCleanup()]
|
||||
// public void MyTestCleanup() { }
|
||||
//
|
||||
#endregion
|
||||
|
||||
[TestMethod, Isolated]
|
||||
public void ChildTest_ChildExist()
|
||||
{
|
||||
MockHelpers.SetupFakeHttpContext();
|
||||
using (var ctx = new MyUmbracoDataContext())
|
||||
{
|
||||
var pages = ctx.CWSHomes.First().CWSTextpages;
|
||||
|
||||
Assert.AreNotEqual(0, pages.Count());
|
||||
}
|
||||
}
|
||||
|
||||
[TestMethod, Isolated]
|
||||
public void ChildTest_ChildToParent()
|
||||
{
|
||||
MockHelpers.SetupFakeHttpContext();
|
||||
using (var ctx = new MyUmbracoDataContext())
|
||||
{
|
||||
var page = ctx.CWSHomes.First().CWSTextpages.First();
|
||||
|
||||
Assert.AreEqual(ctx.CWSHomes.First().Id, page.Parent<CWSHome>().Id);
|
||||
}
|
||||
}
|
||||
|
||||
[TestMethod, Isolated]
|
||||
public void ChildTest_AllChildren()
|
||||
{
|
||||
MockHelpers.SetupFakeHttpContext();
|
||||
using (var ctx = new MyUmbracoDataContext())
|
||||
{
|
||||
var hp = ctx.CWSHomes.First();
|
||||
|
||||
Assert.IsTrue(hp.Children.Count() > 0);
|
||||
Assert.IsInstanceOfType(hp.Children.First(), typeof(CWSTextpage));
|
||||
Assert.IsInstanceOfType(hp.Children.Skip(1).First(), typeof(CWSGalleryList));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,130 +0,0 @@
|
||||
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>9.0.30729</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{A80528D0-E68C-4A94-9489-C712216665B0}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>umbraco.Linq.Core.Tests</RootNamespace>
|
||||
<AssemblyName>umbraco.Linq.Core.Tests</AssemblyName>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<SccProjectName>SAK</SccProjectName>
|
||||
<SccLocalPath>SAK</SccLocalPath>
|
||||
<SccAuxPath>SAK</SccAuxPath>
|
||||
<SccProvider>SAK</SccProvider>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug - Fixed Version|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\Debug - Fixed Version\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
|
||||
<CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Data.DataSetExtensions">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Runtime.Serialization">
|
||||
<RequiredTargetFramework>3.0</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Web" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="System.Xml.Linq">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="TypeMock, Version=5.3.0.0, Culture=neutral, PublicKeyToken=3dae460033b8d8e2, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\dep\Reference Assemblies\Mocking\TypeMock.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Typemock.ArrangeActAssert, Version=5.3.0.0, Culture=neutral, PublicKeyToken=3dae460033b8d8e2, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\dep\Reference Assemblies\Mocking\Typemock.ArrangeActAssert.Dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="..\Solution Items\SolutionInfo.cs">
|
||||
<Link>Properties\SolutionInfo.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="AncestorTest.cs" />
|
||||
<Compile Include="CacheTest.cs" />
|
||||
<Compile Include="ChildTest.cs" />
|
||||
<Compile Include="CwsReplicationTest.cs" />
|
||||
<Compile Include="DataContextTest.cs" />
|
||||
<Compile Include="Extensions.cs" />
|
||||
<Compile Include="InheritanceTest.cs" />
|
||||
<Compile Include="MockHelpers.cs" />
|
||||
<Compile Include="MyUmbraco.Abstractions.cs" />
|
||||
<Compile Include="MyUmbraco.designer.cs" />
|
||||
<Compile Include="OrderingTest.cs" />
|
||||
<Compile Include="ParentTest.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="SelectTest.cs" />
|
||||
<Compile Include="WhereTest.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="AuthoringTests.txt" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="..\..\..\dep\Test Helpers\umbraco.config">
|
||||
<Link>umbraco.config</Link>
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<None Include="App.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\..\..\umbraco\businesslogic\umbraco.businesslogic.csproj">
|
||||
<Project>{E469A9CE-1BEC-423F-AC44-713CD72457EA}</Project>
|
||||
<Name>umbraco.businesslogic</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\..\..\umbraco\datalayer\umbraco.datalayer.csproj">
|
||||
<Project>{C7CB79F0-1C97-4B33-BFA7-00731B579AE2}</Project>
|
||||
<Name>umbraco.datalayer</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\..\..\umbraco\presentation\umbraco.presentation.csproj">
|
||||
<Project>{651E1350-91B6-44B7-BD60-7207006D7003}</Project>
|
||||
<Name>umbraco.presentation</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Core\umbraco.Linq.Core.csproj">
|
||||
<Project>{31CAEC36-0C3D-4D69-B092-84866811EA07}</Project>
|
||||
<Name>umbraco.Linq.Core</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
||||
@@ -1,85 +0,0 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using TypeMock.ArrangeActAssert;
|
||||
using umbraco.Test;
|
||||
|
||||
namespace umbraco.Linq.Core.Tests
|
||||
{
|
||||
/// <summary>
|
||||
/// Tests to replicate the functionality of the CWS2 xslt's
|
||||
/// </summary>
|
||||
[TestClass, DeploymentItem("umbraco.config")]
|
||||
public class CwsReplicationTest
|
||||
{
|
||||
public CwsReplicationTest()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private TestContext testContextInstance;
|
||||
|
||||
/// <summary>
|
||||
///Gets or sets the test context which provides
|
||||
///information about and functionality for the current test run.
|
||||
///</summary>
|
||||
public TestContext TestContext
|
||||
{
|
||||
get
|
||||
{
|
||||
return testContextInstance;
|
||||
}
|
||||
set
|
||||
{
|
||||
testContextInstance = value;
|
||||
}
|
||||
}
|
||||
|
||||
#region Additional test attributes
|
||||
//
|
||||
// You can use the following additional attributes as you write your tests:
|
||||
//
|
||||
// Use ClassInitialize to run code before running the first test in the class
|
||||
// [ClassInitialize()]
|
||||
// public static void MyClassInitialize(TestContext testContext) { }
|
||||
//
|
||||
// Use ClassCleanup to run code after all tests in a class have run
|
||||
// [ClassCleanup()]
|
||||
// public static void MyClassCleanup() { }
|
||||
//
|
||||
// Use TestInitialize to run code before running each test
|
||||
// [TestInitialize()]
|
||||
// public void MyTestInitialize() { }
|
||||
//
|
||||
// Use TestCleanup to run code after each test has run
|
||||
// [TestCleanup()]
|
||||
// public void MyTestCleanup() { }
|
||||
//
|
||||
#endregion
|
||||
|
||||
[TestMethod, Isolated]
|
||||
public void CwsReplicationTest_ListGalleries()
|
||||
{
|
||||
MockHelpers.SetupFakeHttpContext();
|
||||
using (var ctx = new MyUmbracoDataContext())
|
||||
{
|
||||
var galleryList = ctx.CWSGalleryLists.First(); //this would really be a Where(g => g.Id == umbracoContext.Current.PageId.Value) but since I'm not really on a page...
|
||||
|
||||
var galleries = from g in galleryList.CWSGalleries
|
||||
where g.CWSPhotos.Count() >= 1
|
||||
orderby g.Name
|
||||
select new
|
||||
{
|
||||
g.Name,
|
||||
Url = umbraco.library.NiceUrl(g.Id),
|
||||
Thumbnail = (string.IsNullOrEmpty(g.GalleryThumbnail) ? "/Assets/Placeholders/gallery_placeholder.gif" : g.GalleryThumbnail),
|
||||
PhotoCount = g.CWSPhotos.Count(),
|
||||
};
|
||||
|
||||
Assert.AreEqual(3, galleries.Count());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,145 +0,0 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using TypeMock.ArrangeActAssert;
|
||||
using umbraco.Linq.Core.Node;
|
||||
using umbraco.Test;
|
||||
using System.IO;
|
||||
using System.Web;
|
||||
|
||||
namespace umbraco.Linq.Core.Tests
|
||||
{
|
||||
/// <summary>
|
||||
/// Summary description for DataContextTest
|
||||
/// </summary>
|
||||
[TestClass, DeploymentItem("umbraco.config")]
|
||||
public class DataContextTest
|
||||
{
|
||||
public DataContextTest()
|
||||
{
|
||||
}
|
||||
|
||||
private TestContext testContextInstance;
|
||||
|
||||
/// <summary>
|
||||
///Gets or sets the test context which provides
|
||||
///information about and functionality for the current test run.
|
||||
///</summary>
|
||||
public TestContext TestContext
|
||||
{
|
||||
get
|
||||
{
|
||||
return testContextInstance;
|
||||
}
|
||||
set
|
||||
{
|
||||
testContextInstance = value;
|
||||
}
|
||||
}
|
||||
|
||||
#region Additional test attributes
|
||||
//
|
||||
// You can use the following additional attributes as you write your tests:
|
||||
//
|
||||
// Use ClassInitialize to run code before running the first test in the class
|
||||
// [ClassInitialize()]
|
||||
// public static void MyClassInitialize(TestContext testContext) { }
|
||||
//
|
||||
// Use ClassCleanup to run code after all tests in a class have run
|
||||
// [ClassCleanup()]
|
||||
// public static void MyClassCleanup() { }
|
||||
//
|
||||
// Use TestInitialize to run code before running each test
|
||||
// [TestInitialize()]
|
||||
// public void MyTestInitialize() { }
|
||||
//
|
||||
// Use TestCleanup to run code after each test has run
|
||||
// [TestCleanup()]
|
||||
// public void MyTestCleanup() { }
|
||||
//
|
||||
#endregion
|
||||
|
||||
[TestMethod, ExpectedException(typeof(ArgumentNullException))]
|
||||
public void DataContextTest_FileNameRequired()
|
||||
{
|
||||
var nodeProvider = new NodeDataProvider(string.Empty);
|
||||
}
|
||||
|
||||
[TestMethod, ExpectedException(typeof(FileNotFoundException))]
|
||||
public void DataContextTest_FileMustExist()
|
||||
{
|
||||
var nodeProvider = new NodeDataProvider(@"C:\fakeFile.config");
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void DataContextTest_ConstructFromExistingProvider()
|
||||
{
|
||||
var nodeProvider = new NodeDataProvider(Path.Combine(Environment.CurrentDirectory, "umbraco.config"));
|
||||
|
||||
MyUmbracoDataContext ctx = new MyUmbracoDataContext(nodeProvider);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void DataContextTest_EnsureSchemaValidation()
|
||||
{
|
||||
var nodeProvider = new NodeDataProvider(Path.Combine(Environment.CurrentDirectory, "umbraco.config"), true);
|
||||
|
||||
MyUmbracoDataContext ctx = new MyUmbracoDataContext(nodeProvider);
|
||||
|
||||
var hp = ctx.CWSHomes.First();
|
||||
|
||||
Assert.IsNotNull(hp);
|
||||
}
|
||||
|
||||
[TestMethod, Isolated]
|
||||
public void DataContextTest_DefaultConstructorIsNodeProvider()
|
||||
{
|
||||
MockHelpers.SetupFakeHttpContext();
|
||||
|
||||
var ctx = new MyUmbracoDataContext();
|
||||
|
||||
Assert.IsInstanceOfType(ctx.DataProvider, typeof(NodeDataProvider));
|
||||
}
|
||||
|
||||
[TestMethod, Isolated]
|
||||
public void DataContextTest_NodeCached()
|
||||
{
|
||||
MockHelpers.SetupFakeHttpContext();
|
||||
using (var ctx = new MyUmbracoDataContext())
|
||||
{
|
||||
var hp = ctx.CWSHomes.First();
|
||||
var hp2 = ctx.CWSHomes.First();
|
||||
|
||||
Assert.AreSame(hp, hp2);
|
||||
}
|
||||
}
|
||||
|
||||
[TestMethod, Isolated]
|
||||
public void DataContextTest_FullCache()
|
||||
{
|
||||
MockHelpers.SetupFakeHttpContext();
|
||||
using (var ctx = new MyUmbracoDataContext())
|
||||
{
|
||||
var one = ctx.CWSHomes;
|
||||
var two = ctx.CWSHomes;
|
||||
|
||||
Assert.AreSame(one, two);
|
||||
}
|
||||
}
|
||||
|
||||
[TestMethod, Isolated]
|
||||
public void DataContextTest_OfNodeTypes()
|
||||
{
|
||||
MockHelpers.SetupFakeHttpContext();
|
||||
using (var ctx = new MyUmbracoDataContext())
|
||||
{
|
||||
var tree = ctx.CWSHomes;
|
||||
|
||||
Assert.IsInstanceOfType(tree, typeof(NodeTree<CWSHome>));
|
||||
Assert.IsInstanceOfType(tree.First().CWSTextpages, typeof(NodeAssociationTree<CWSTextpage>));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using TypeMock.ArrangeActAssert;
|
||||
|
||||
namespace umbraco.Linq.Core.Tests
|
||||
{
|
||||
public static class Extensions
|
||||
{
|
||||
public static ActionRepeater<TReturn> WillReturnRepeat<TReturn>(this IPublicNonVoidMethodHandler<TReturn> ret, TReturn value, int numberOfReturns)
|
||||
{
|
||||
for (var i = 0; i < numberOfReturns; i++)
|
||||
ret.WillReturn(value);
|
||||
|
||||
return new ActionRepeater<TReturn>(ret);
|
||||
}
|
||||
|
||||
public static ActionRepeater<TReturn> CallOriginalRepeat<TReturn>(this IPublicNonVoidMethodHandler<TReturn> ret, int numberOfReturns)
|
||||
{
|
||||
for (var i = 0; i < numberOfReturns; i++)
|
||||
ret.CallOriginal();
|
||||
|
||||
return new ActionRepeater<TReturn>(ret);
|
||||
}
|
||||
}
|
||||
|
||||
public class ActionRepeater<TReturn>
|
||||
{
|
||||
private IPublicNonVoidMethodHandler<TReturn> _actionRepeater;
|
||||
public ActionRepeater(IPublicNonVoidMethodHandler<TReturn> actionRepeater)
|
||||
{
|
||||
_actionRepeater = actionRepeater;
|
||||
}
|
||||
|
||||
public IPublicNonVoidMethodHandler<TReturn> AndThen()
|
||||
{
|
||||
return _actionRepeater;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,80 +0,0 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using TypeMock.ArrangeActAssert;
|
||||
using umbraco.Test;
|
||||
|
||||
namespace umbraco.Linq.Core.Tests
|
||||
{
|
||||
/// <summary>
|
||||
/// Summary description for InheritanceTest
|
||||
/// </summary>
|
||||
[TestClass, DeploymentItem("umbraco.config")]
|
||||
public class InheritanceTest
|
||||
{
|
||||
public InheritanceTest()
|
||||
{
|
||||
//
|
||||
// TODO: Add constructor logic here
|
||||
//
|
||||
}
|
||||
|
||||
private TestContext testContextInstance;
|
||||
|
||||
/// <summary>
|
||||
///Gets or sets the test context which provides
|
||||
///information about and functionality for the current test run.
|
||||
///</summary>
|
||||
public TestContext TestContext
|
||||
{
|
||||
get
|
||||
{
|
||||
return testContextInstance;
|
||||
}
|
||||
set
|
||||
{
|
||||
testContextInstance = value;
|
||||
}
|
||||
}
|
||||
|
||||
#region Additional test attributes
|
||||
//
|
||||
// You can use the following additional attributes as you write your tests:
|
||||
//
|
||||
// Use ClassInitialize to run code before running the first test in the class
|
||||
// [ClassInitialize()]
|
||||
// public static void MyClassInitialize(TestContext testContext) { }
|
||||
//
|
||||
// Use ClassCleanup to run code after all tests in a class have run
|
||||
// [ClassCleanup()]
|
||||
// public static void MyClassCleanup() { }
|
||||
//
|
||||
// Use TestInitialize to run code before running each test
|
||||
// [TestInitialize()]
|
||||
// public void MyTestInitialize() { }
|
||||
//
|
||||
// Use TestCleanup to run code after each test has run
|
||||
// [TestCleanup()]
|
||||
// public void MyTestCleanup() { }
|
||||
//
|
||||
#endregion
|
||||
|
||||
[TestMethod]
|
||||
public void InheritanceTest_ImplementsBaseClass()
|
||||
{
|
||||
var tmp = new TextPageThreeCol();
|
||||
|
||||
Assert.AreEqual(typeof(CWSTextpageTwoCol), tmp.GetType().BaseType);
|
||||
}
|
||||
|
||||
[TestMethod, Isolated]
|
||||
public void InheritanceTest_PropertyFromBase()
|
||||
{
|
||||
var fake = Isolate.Fake.Instance<TextPageThreeCol>();
|
||||
|
||||
Assert.AreEqual(typeof(CWSTextpageTwoCol), fake.GetType().GetProperties().Single(p => p.Name == "Headertext").DeclaringType);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
using System;
|
||||
using System.Web;
|
||||
using TypeMock.ArrangeActAssert;
|
||||
using System.IO;
|
||||
|
||||
namespace umbraco.Linq.Core.Tests
|
||||
{
|
||||
internal class MockHelpers
|
||||
{
|
||||
public static void SetupFakeHttpContext()
|
||||
{
|
||||
HttpContext fakeHttpContext = Isolate.Fake.Instance<HttpContext>(Members.MustSpecifyReturnValues);
|
||||
HttpServerUtility fakeServer = Isolate.Fake.Instance<HttpServerUtility>();
|
||||
Isolate.WhenCalled(() => HttpContext.Current).WillReturn(fakeHttpContext);
|
||||
Isolate.WhenCalled(() => fakeHttpContext.Server).WillReturn(fakeServer);
|
||||
Isolate.WhenCalled(() => fakeServer.MapPath(string.Empty)).WillReturn(Path.Combine(Environment.CurrentDirectory, "umbraco.config"));
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,81 +0,0 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using TypeMock.ArrangeActAssert;
|
||||
using umbraco.Test;
|
||||
|
||||
namespace umbraco.Linq.Core.Tests
|
||||
{
|
||||
/// <summary>
|
||||
/// Summary description for OrderingTest
|
||||
/// </summary>
|
||||
[TestClass, DeploymentItem("umbraco.config")]
|
||||
public class OrderingTest
|
||||
{
|
||||
public OrderingTest()
|
||||
{
|
||||
//
|
||||
// TODO: Add constructor logic here
|
||||
//
|
||||
}
|
||||
|
||||
private TestContext testContextInstance;
|
||||
|
||||
/// <summary>
|
||||
///Gets or sets the test context which provides
|
||||
///information about and functionality for the current test run.
|
||||
///</summary>
|
||||
public TestContext TestContext
|
||||
{
|
||||
get
|
||||
{
|
||||
return testContextInstance;
|
||||
}
|
||||
set
|
||||
{
|
||||
testContextInstance = value;
|
||||
}
|
||||
}
|
||||
|
||||
#region Additional test attributes
|
||||
//
|
||||
// You can use the following additional attributes as you write your tests:
|
||||
//
|
||||
// Use ClassInitialize to run code before running the first test in the class
|
||||
// [ClassInitialize()]
|
||||
// public static void MyClassInitialize(TestContext testContext) { }
|
||||
//
|
||||
// Use ClassCleanup to run code after all tests in a class have run
|
||||
// [ClassCleanup()]
|
||||
// public static void MyClassCleanup() { }
|
||||
//
|
||||
// Use TestInitialize to run code before running each test
|
||||
// [TestInitialize()]
|
||||
// public void MyTestInitialize() { }
|
||||
//
|
||||
// Use TestCleanup to run code after each test has run
|
||||
// [TestCleanup()]
|
||||
// public void MyTestCleanup() { }
|
||||
//
|
||||
#endregion
|
||||
|
||||
[TestMethod, Isolated]
|
||||
public void OrderingTest_Date()
|
||||
{
|
||||
MockHelpers.SetupFakeHttpContext();
|
||||
|
||||
using (var orderedContext = new MyUmbracoDataContext())
|
||||
{
|
||||
var asc = orderedContext.CWSTextpages.OrderBy(p => p.CreateDate);
|
||||
|
||||
var desc = orderedContext.CWSTextpages.OrderByDescending(p => p.CreateDate);
|
||||
|
||||
Assert.AreEqual(asc.Count(), desc.Count());
|
||||
Assert.AreNotEqual(asc.First().Id, desc.First().Id);
|
||||
Assert.AreEqual(asc.First().Id, desc.Last().Id);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,109 +0,0 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using TypeMock.ArrangeActAssert;
|
||||
using umbraco.Test;
|
||||
|
||||
namespace umbraco.Linq.Core.Tests
|
||||
{
|
||||
/// <summary>
|
||||
/// Summary description for ParentTest
|
||||
/// </summary>
|
||||
[TestClass, DeploymentItem("umbraco.config")]
|
||||
public class ParentTest
|
||||
{
|
||||
public ParentTest()
|
||||
{
|
||||
}
|
||||
|
||||
private TestContext testContextInstance;
|
||||
|
||||
/// <summary>
|
||||
///Gets or sets the test context which provides
|
||||
///information about and functionality for the current test run.
|
||||
///</summary>
|
||||
public TestContext TestContext
|
||||
{
|
||||
get
|
||||
{
|
||||
return testContextInstance;
|
||||
}
|
||||
set
|
||||
{
|
||||
testContextInstance = value;
|
||||
}
|
||||
}
|
||||
|
||||
#region Additional test attributes
|
||||
//
|
||||
// You can use the following additional attributes as you write your tests:
|
||||
//
|
||||
// Use ClassInitialize to run code before running the first test in the class
|
||||
// [ClassInitialize()]
|
||||
// public static void MyClassInitialize(TestContext testContext) { }
|
||||
//
|
||||
// Use ClassCleanup to run code after all tests in a class have run
|
||||
// [ClassCleanup()]
|
||||
// public static void MyClassCleanup() { }
|
||||
//
|
||||
// Use TestInitialize to run code before running each test
|
||||
// [TestInitialize()]
|
||||
// public void MyTestInitialize() { }
|
||||
//
|
||||
// Use TestCleanup to run code after each test has run
|
||||
// [TestCleanup()]
|
||||
// public void MyTestCleanup() { }
|
||||
//
|
||||
#endregion
|
||||
|
||||
[TestMethod, Isolated]
|
||||
public void ParentTest_ParentIdExists()
|
||||
{
|
||||
MockHelpers.SetupFakeHttpContext();
|
||||
using (var ctx = new MyUmbracoDataContext())
|
||||
{
|
||||
var p = ctx.CWSTextpages.First();
|
||||
Assert.AreNotEqual(0, p.ParentNodeId);
|
||||
}
|
||||
}
|
||||
|
||||
[TestMethod, Isolated]
|
||||
public void ParentTest_ParentCreated()
|
||||
{
|
||||
MockHelpers.SetupFakeHttpContext();
|
||||
using (var ctx = new MyUmbracoDataContext())
|
||||
{
|
||||
var page = ctx.CWSTextpages.Single(p => p.Id == 1099);
|
||||
|
||||
Assert.AreEqual(1098, page.ParentNodeId);
|
||||
|
||||
var parent = page.Parent<CWSHome>();
|
||||
|
||||
Assert.AreEqual(page.ParentNodeId, parent.Id);
|
||||
}
|
||||
}
|
||||
|
||||
[TestMethod, Isolated]
|
||||
public void ParentTest_TopParentNull()
|
||||
{
|
||||
MockHelpers.SetupFakeHttpContext();
|
||||
using (var ctx = new MyUmbracoDataContext())
|
||||
{
|
||||
var hp = ctx.CWSHomes.First();
|
||||
Assert.IsNull(hp.Parent<CWSHome>());
|
||||
}
|
||||
}
|
||||
|
||||
[TestMethod, Isolated, ExpectedException(typeof(DocTypeMissMatchException))]
|
||||
public void ParentTest_InvalidParentType()
|
||||
{
|
||||
MockHelpers.SetupFakeHttpContext();
|
||||
using (var ctx = new MyUmbracoDataContext())
|
||||
{
|
||||
var p = ctx.CWSPhotos.First().Parent<CWSHome>();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
using System.Reflection;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("Core")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyProduct("Core")]
|
||||
@@ -1,179 +0,0 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using umbraco.Test;
|
||||
using TypeMock.ArrangeActAssert;
|
||||
|
||||
namespace umbraco.Linq.Core.Tests
|
||||
{
|
||||
/// <summary>
|
||||
/// Summary description for SelectTest
|
||||
/// </summary>
|
||||
[TestClass, DeploymentItem("umbraco.config")]
|
||||
public class SelectTest
|
||||
{
|
||||
public SelectTest()
|
||||
{
|
||||
//
|
||||
// TODO: Add constructor logic here
|
||||
//
|
||||
}
|
||||
|
||||
private TestContext testContextInstance;
|
||||
|
||||
/// <summary>
|
||||
///Gets or sets the test context which provides
|
||||
///information about and functionality for the current test run.
|
||||
///</summary>
|
||||
public TestContext TestContext
|
||||
{
|
||||
get
|
||||
{
|
||||
return testContextInstance;
|
||||
}
|
||||
set
|
||||
{
|
||||
testContextInstance = value;
|
||||
}
|
||||
}
|
||||
|
||||
#region Additional test attributes
|
||||
//
|
||||
// You can use the following additional attributes as you write your tests:
|
||||
//
|
||||
// Use ClassInitialize to run code before running the first test in the class
|
||||
// [ClassInitialize()]
|
||||
// public static void MyClassInitialize(TestContext testContext) { }
|
||||
//
|
||||
// Use ClassCleanup to run code after all tests in a class have run
|
||||
// [ClassCleanup()]
|
||||
// public static void MyClassCleanup() { }
|
||||
//
|
||||
// Use TestInitialize to run code before running each test
|
||||
// [TestInitialize()]
|
||||
// public void MyTestInitialize() { }
|
||||
//
|
||||
// Use TestCleanup to run code after each test has run
|
||||
// [TestCleanup()]
|
||||
// public void MyTestCleanup() { }
|
||||
//
|
||||
#endregion
|
||||
|
||||
[TestMethod, Isolated]
|
||||
public void SelectTest_LoopTree_Query()
|
||||
{
|
||||
MockHelpers.SetupFakeHttpContext();
|
||||
|
||||
using (var ctx = new MyUmbracoDataContext())
|
||||
{
|
||||
var homePages = from hp in ctx.CWSHomes
|
||||
select hp;
|
||||
|
||||
Assert.IsNotNull(homePages);
|
||||
foreach (var item in homePages)
|
||||
{
|
||||
Assert.IsTrue(item.BodyText.Length > 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[TestMethod, Isolated]
|
||||
public void SelectTest_LoopTree_Lambda()
|
||||
{
|
||||
MockHelpers.SetupFakeHttpContext();
|
||||
|
||||
using (var ctx = new MyUmbracoDataContext())
|
||||
{
|
||||
var homePages = ctx.CWSHomes;
|
||||
|
||||
Assert.IsNotNull(homePages);
|
||||
foreach (CWSHome item in homePages)
|
||||
{
|
||||
Assert.IsTrue(item.BodyText.Length > 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[TestMethod, Isolated]
|
||||
public void SelectTest_SingleProperty_Query()
|
||||
{
|
||||
MockHelpers.SetupFakeHttpContext();
|
||||
|
||||
using (var ctx = new MyUmbracoDataContext())
|
||||
{
|
||||
var homePageText = from hp in ctx.CWSHomes
|
||||
select hp.BodyText;
|
||||
|
||||
Assert.IsNotNull(homePageText);
|
||||
foreach (var item in homePageText)
|
||||
{
|
||||
Assert.IsNotNull(item);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[TestMethod, Isolated]
|
||||
public void SelectTest_SingleProperty_Lambda()
|
||||
{
|
||||
MockHelpers.SetupFakeHttpContext();
|
||||
|
||||
using (var ctx = new MyUmbracoDataContext())
|
||||
{
|
||||
var homePageText = ctx.CWSHomes.Select(hp => hp.BodyText);
|
||||
|
||||
Assert.IsNotNull(homePageText);
|
||||
foreach (var item in homePageText)
|
||||
{
|
||||
Assert.IsNotNull(item);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[TestMethod, Isolated]
|
||||
public void SelectTest_Anonymous_Query()
|
||||
{
|
||||
MockHelpers.SetupFakeHttpContext();
|
||||
|
||||
using (var ctx = new MyUmbracoDataContext())
|
||||
{
|
||||
var anon = from hp in ctx.CWSHomes
|
||||
select new
|
||||
{
|
||||
hp.BodyText,
|
||||
CreatedDate = hp.CreateDate
|
||||
};
|
||||
|
||||
Assert.IsNotNull(anon);
|
||||
foreach (var item in anon)
|
||||
{
|
||||
Assert.IsNotNull(item.BodyText);
|
||||
Assert.AreNotEqual(DateTime.MinValue, item.CreatedDate);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[TestMethod, Isolated]
|
||||
public void SelectTest_Anonymous_Lambda()
|
||||
{
|
||||
MockHelpers.SetupFakeHttpContext();
|
||||
|
||||
using (var ctx = new MyUmbracoDataContext())
|
||||
{
|
||||
var anon = ctx.CWSHomes.Select(hp => new
|
||||
{
|
||||
hp.BodyText,
|
||||
CreatedDate = hp.CreateDate
|
||||
});
|
||||
|
||||
Assert.IsNotNull(anon);
|
||||
foreach (var item in anon)
|
||||
{
|
||||
Assert.IsNotNull(item.BodyText);
|
||||
Assert.AreNotEqual(DateTime.MinValue, item.CreatedDate);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,130 +0,0 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using TypeMock.ArrangeActAssert;
|
||||
using umbraco.Test;
|
||||
|
||||
namespace umbraco.Linq.Core.Tests
|
||||
{
|
||||
/// <summary>
|
||||
/// Summary description for WhereTest
|
||||
/// </summary>
|
||||
[TestClass, DeploymentItem("umbraco.config")]
|
||||
public class WhereTest
|
||||
{
|
||||
public WhereTest()
|
||||
{
|
||||
//
|
||||
// TODO: Add constructor logic here
|
||||
//
|
||||
}
|
||||
|
||||
private TestContext testContextInstance;
|
||||
|
||||
/// <summary>
|
||||
///Gets or sets the test context which provides
|
||||
///information about and functionality for the current test run.
|
||||
///</summary>
|
||||
public TestContext TestContext
|
||||
{
|
||||
get
|
||||
{
|
||||
return testContextInstance;
|
||||
}
|
||||
set
|
||||
{
|
||||
testContextInstance = value;
|
||||
}
|
||||
}
|
||||
|
||||
#region Additional test attributes
|
||||
//
|
||||
// You can use the following additional attributes as you write your tests:
|
||||
//
|
||||
// Use ClassInitialize to run code before running the first test in the class
|
||||
// [ClassInitialize()]
|
||||
// public static void MyClassInitialize(TestContext testContext) { }
|
||||
//
|
||||
// Use ClassCleanup to run code after all tests in a class have run
|
||||
// [ClassCleanup()]
|
||||
// public static void MyClassCleanup() { }
|
||||
//
|
||||
// Use TestInitialize to run code before running each test
|
||||
// [TestInitialize()]
|
||||
// public void MyTestInitialize() { }
|
||||
//
|
||||
// Use TestCleanup to run code after each test has run
|
||||
// [TestCleanup()]
|
||||
// public void MyTestCleanup() { }
|
||||
//
|
||||
#endregion
|
||||
|
||||
[TestMethod, Isolated]
|
||||
public void WhereTest_SingleParameter_Query()
|
||||
{
|
||||
MockHelpers.SetupFakeHttpContext();
|
||||
|
||||
using (var ctx = new MyUmbracoDataContext())
|
||||
{
|
||||
var pages = from page in ctx.CWSTextpages
|
||||
where page.BodyText.Length > 0
|
||||
select page;
|
||||
|
||||
Assert.IsNotNull(pages);
|
||||
Assert.IsTrue(pages.Count() > 0);
|
||||
}
|
||||
}
|
||||
|
||||
[TestMethod, Isolated]
|
||||
public void WhereTest_DateTimeGreaterThan_Query()
|
||||
{
|
||||
MockHelpers.SetupFakeHttpContext();
|
||||
|
||||
using (var ctx = new MyUmbracoDataContext())
|
||||
{
|
||||
var pages = from page in ctx.CWSTextpages
|
||||
where page.CreateDate > DateTime.MinValue
|
||||
select page;
|
||||
|
||||
Assert.IsNotNull(pages);
|
||||
Assert.IsTrue(pages.Count() > 0);
|
||||
}
|
||||
}
|
||||
|
||||
[TestMethod, Isolated]
|
||||
public void WhereTest_TwoParameter_Query()
|
||||
{
|
||||
MockHelpers.SetupFakeHttpContext();
|
||||
using (var ctx = new MyUmbracoDataContext())
|
||||
{
|
||||
var pages = from page in ctx.CWSTextpages
|
||||
where page.BodyText.Length > 0
|
||||
&& page.CreateDate > DateTime.MinValue
|
||||
select page;
|
||||
|
||||
Assert.IsNotNull(pages);
|
||||
Assert.IsTrue(pages.Count() > 0);
|
||||
}
|
||||
}
|
||||
|
||||
[TestMethod, Isolated]
|
||||
public void WhereTest_ToAnonymous()
|
||||
{
|
||||
MockHelpers.SetupFakeHttpContext();
|
||||
using (var ctx = new MyUmbracoDataContext())
|
||||
{
|
||||
var pages = from page in ctx.CWSTextpages
|
||||
where page.BodyText.Length > 0
|
||||
select new
|
||||
{
|
||||
page.Id,
|
||||
page.BodyText
|
||||
};
|
||||
|
||||
Assert.AreNotEqual(0, pages.Count());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,29 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace umbraco.Linq.Core
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents the child items of TDocTypeBase
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This is used for creating a DataProvider specific child item collection of a DocType instance.
|
||||
///
|
||||
/// It allows a DocType to have strongly typed child associations, and accessors such as:
|
||||
/// <example>
|
||||
/// myDocType.SomeChildTypes
|
||||
/// </example>
|
||||
/// </remarks>
|
||||
/// <typeparam name="TDocTypeBase">The type of the DocTypeBase which this association represents.</typeparam>
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix")]
|
||||
public abstract class AssociationTree<TDocTypeBase> : Tree<TDocTypeBase> where TDocTypeBase : DocTypeBase, new()
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the parent node id which this AssociationTree is for
|
||||
/// </summary>
|
||||
/// <value>The parent node id.</value>
|
||||
public int ParentNodeId { get; protected set; }
|
||||
}
|
||||
}
|
||||
@@ -1,85 +0,0 @@
|
||||
using System;
|
||||
|
||||
namespace umbraco.Linq.Core
|
||||
{
|
||||
/// <summary>
|
||||
/// Standard umbraco info
|
||||
/// </summary>
|
||||
[global::System.AttributeUsage(AttributeTargets.Property | AttributeTargets.Class | AttributeTargets.Interface, Inherited = true, AllowMultiple = false)]
|
||||
public sealed class UmbracoInfoAttribute : Attribute
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="UmbracoInfoAttribute"/> class.
|
||||
/// </summary>
|
||||
/// <param name="alias">The alias for this piece of umbraco info.</param>
|
||||
public UmbracoInfoAttribute(string alias)
|
||||
{
|
||||
this.Alias = alias;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the display name of the item.
|
||||
/// </summary>
|
||||
/// <value>The display name.</value>
|
||||
public string DisplayName { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the alias.
|
||||
/// </summary>
|
||||
/// <value>The alias.</value>
|
||||
public string Alias { get; private set; }
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether this property is mandatory.
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if mandatory; otherwise, <c>false</c>.</value>
|
||||
public bool Mandatory { get; set; }
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Marks a class as an umbraco DocType
|
||||
/// </summary>
|
||||
[global::System.AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, Inherited = true, AllowMultiple = false)]
|
||||
public sealed class DocTypeAttribute : Attribute
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="DocTypeAttribute"/> class.
|
||||
/// </summary>
|
||||
public DocTypeAttribute()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Marks a property as a standard umbraco field
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Example usage:
|
||||
/// - ID
|
||||
/// - ParentID
|
||||
/// - CreateDate
|
||||
/// </remarks>
|
||||
[global::System.AttributeUsage(AttributeTargets.Property, Inherited = true, AllowMultiple = false)]
|
||||
public sealed class FieldAttribute : Attribute
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="FieldAttribute"/> class.
|
||||
/// </summary>
|
||||
public FieldAttribute()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Marks a property as a custom umbraco DocType property
|
||||
/// </summary>
|
||||
[global::System.AttributeUsage(AttributeTargets.Property, Inherited = true, AllowMultiple = false)]
|
||||
public sealed class PropertyAttribute : Attribute
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="PropertyAttribute"/> class.
|
||||
/// </summary>
|
||||
public PropertyAttribute()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,93 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ClassDiagram MajorVersion="1" MinorVersion="1" GroupingSetting="Access" MembersFormat="NameAndType">
|
||||
<Class Name="umbraco.Linq.Core.AssociationTree<TDocTypeBase>">
|
||||
<Position X="1" Y="4.75" Width="2.25" />
|
||||
<TypeIdentifier>
|
||||
<HashCode>AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAA=</HashCode>
|
||||
<FileName>AssociationTree.cs</FileName>
|
||||
</TypeIdentifier>
|
||||
</Class>
|
||||
<Class Name="umbraco.Linq.Core.DocTypeBase" BaseTypeListCollapsed="true">
|
||||
<Position X="8.25" Y="0.75" Width="4.5" />
|
||||
<Compartments>
|
||||
<Compartment Name="Internal" Collapsed="true" />
|
||||
<Compartment Name="Private" Collapsed="true" />
|
||||
</Compartments>
|
||||
<TypeIdentifier>
|
||||
<HashCode>MAASJAACAQCEAAAgAACUYAQBgACAAAAhEAIBAAEEAYI=</HashCode>
|
||||
<FileName>DocTypeBase.cs</FileName>
|
||||
</TypeIdentifier>
|
||||
<Lollipop Position="0.2" />
|
||||
</Class>
|
||||
<Class Name="umbraco.Linq.Core.Tree<TDocType>">
|
||||
<Position X="2.5" Y="0.75" Width="3" />
|
||||
<Compartments>
|
||||
<Compartment Name="Private" Collapsed="true" />
|
||||
</Compartments>
|
||||
<TypeIdentifier>
|
||||
<HashCode>AAAQAAAAAAAEABAQAAAAAAAAAAAAAAAEAAAAAAAAAAA=</HashCode>
|
||||
<FileName>Tree.cs</FileName>
|
||||
</TypeIdentifier>
|
||||
<Lollipop Position="0.2" />
|
||||
</Class>
|
||||
<Class Name="umbraco.Linq.Core.UmbracoDataContext" BaseTypeListCollapsed="true">
|
||||
<Position X="13" Y="0.75" Width="3.5" />
|
||||
<Compartments>
|
||||
<Compartment Name="Private" Collapsed="true" />
|
||||
</Compartments>
|
||||
<TypeIdentifier>
|
||||
<HashCode>AAAAAAAAACAEAAAAAAAAAABAAAAAAAAAAAAACACAAAA=</HashCode>
|
||||
<FileName>UmbracoDataContext.cs</FileName>
|
||||
</TypeIdentifier>
|
||||
<Lollipop Position="0.2" />
|
||||
</Class>
|
||||
<Class Name="umbraco.Linq.Core.Node.NodeAssociationTree<TDocTypeBase>">
|
||||
<Position X="0.5" Y="6.75" Width="3.25" />
|
||||
<Compartments>
|
||||
<Compartment Name="Private" Collapsed="true" />
|
||||
<Compartment Name="Internal" Collapsed="true" />
|
||||
</Compartments>
|
||||
<TypeIdentifier>
|
||||
<HashCode>AAAUABAAAAAEABAQAAAAAAAAAAAAAAAAAAAAAAAAAAA=</HashCode>
|
||||
<FileName>Node\NodeAssociationTree.cs</FileName>
|
||||
</TypeIdentifier>
|
||||
</Class>
|
||||
<Class Name="umbraco.Linq.Core.Node.NodeDataProvider" BaseTypeListCollapsed="true">
|
||||
<Position X="5.25" Y="12" Width="4.5" />
|
||||
<Compartments>
|
||||
<Compartment Name="Private" Collapsed="true" />
|
||||
<Compartment Name="Internal" Collapsed="true" />
|
||||
</Compartments>
|
||||
<TypeIdentifier>
|
||||
<HashCode>IAAAiAAAACAUAAQAAAABCKQAAAAAAAAAAAACKAiAAAA=</HashCode>
|
||||
<FileName>Node\NodeDataProvider.cs</FileName>
|
||||
</TypeIdentifier>
|
||||
</Class>
|
||||
<Class Name="umbraco.Linq.Core.Node.NodeTree<TDocTypeBase>">
|
||||
<Position X="4.5" Y="4.75" Width="3.25" />
|
||||
<Compartments>
|
||||
<Compartment Name="Private" Collapsed="true" />
|
||||
<Compartment Name="Internal" Collapsed="true" />
|
||||
</Compartments>
|
||||
<TypeIdentifier>
|
||||
<HashCode>AAASABAAAAAEABAQAAAAAAAAAAAAAAAAAAAAAAAAAAA=</HashCode>
|
||||
<FileName>Node\NodeTree.cs</FileName>
|
||||
</TypeIdentifier>
|
||||
</Class>
|
||||
<Class Name="umbraco.Linq.Core.UmbracoDataProvider">
|
||||
<Position X="5.25" Y="8.75" Width="4.5" />
|
||||
<TypeIdentifier>
|
||||
<HashCode>AAAAgAAAACAAAAQAAAABAAQAAAAAAAAAAAAAAACAAAA=</HashCode>
|
||||
<FileName>UmbracoDataProvider.cs</FileName>
|
||||
</TypeIdentifier>
|
||||
<Lollipop Position="0.2" />
|
||||
</Class>
|
||||
<Interface Name="umbraco.Linq.Core.ITree">
|
||||
<Position X="5.75" Y="0.75" Width="2.25" />
|
||||
<TypeIdentifier>
|
||||
<HashCode>AAAQAAAAAAAEAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAA=</HashCode>
|
||||
<FileName>ITree.cs</FileName>
|
||||
</TypeIdentifier>
|
||||
</Interface>
|
||||
<Font Name="Segoe UI" Size="9" />
|
||||
</ClassDiagram>
|
||||
@@ -1,442 +0,0 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Runtime.Serialization;
|
||||
using umbraco.BusinessLogic;
|
||||
using System.Collections.Generic;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace umbraco.Linq.Core
|
||||
{
|
||||
/// <summary>
|
||||
/// Provides the base framework for an umbraco item
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public class DocTypeBase : IDocTypeBase //This class should be abstract but it can't be done AND achieve the Children property like this
|
||||
{
|
||||
#region Internal Storage
|
||||
private int _Id;
|
||||
private string _nodeName;
|
||||
private string _versionId;
|
||||
private int _templateId;
|
||||
private int _parentId;
|
||||
private int writerID;
|
||||
private User _writer;
|
||||
private int creatorID;
|
||||
private User _creator;
|
||||
private string _path;
|
||||
private IEnumerable<DocTypeBase> _ancestors;
|
||||
private AssociationTree<DocTypeBase> _children;
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="DocTypeBase"/> class.
|
||||
/// </summary>
|
||||
public DocTypeBase()
|
||||
{
|
||||
this.IsDirty = true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the provider.
|
||||
/// </summary>
|
||||
/// <value>The provider.</value>
|
||||
protected internal UmbracoDataProvider Provider { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether this instance has been modified since it was first loaded
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if this instance has been modified; otherwise, <c>false</c>.</value>
|
||||
public bool IsDirty { get; protected internal set; }
|
||||
|
||||
#region Fields
|
||||
/// <summary>
|
||||
/// Gets or sets the id of the umbraco item
|
||||
/// </summary>
|
||||
/// <value>The id.</value>
|
||||
[Field]
|
||||
[UmbracoInfo("id", DisplayName = "Id", Mandatory = true), DataMember(Name = "Id")]
|
||||
public virtual int Id
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Id;
|
||||
}
|
||||
protected internal set
|
||||
{
|
||||
if (this._Id != value)
|
||||
{
|
||||
this.RaisePropertyChanging();
|
||||
this._Id = value;
|
||||
this.RaisePropertyChanged("Id");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the name (title) of the umbraco item
|
||||
/// </summary>
|
||||
/// <value>The name.</value>
|
||||
[Field]
|
||||
[UmbracoInfo("nodeName", DisplayName = "NodeName", Mandatory = true), DataMember(Name = "NodeName")]
|
||||
public virtual string NodeName
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._nodeName;
|
||||
}
|
||||
set
|
||||
{
|
||||
if (this._nodeName != value)
|
||||
{
|
||||
this.RaisePropertyChanging();
|
||||
this._nodeName = value;
|
||||
this.IsDirty = true;
|
||||
this.RaisePropertyChanged("NodeName");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[Field]
|
||||
[Obsolete("Name property is obsolete, use NodeName instead")] //this is because most people expect NodeName not Name as the property
|
||||
public virtual string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.NodeName;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.NodeName = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the template ID of the umbraco item
|
||||
/// </summary>
|
||||
/// <value>The name.</value>
|
||||
[Field]
|
||||
[UmbracoInfo("template", DisplayName = "Template", Mandatory = true), DataMember(Name = "TemplateId")]
|
||||
public virtual int TemplateId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._templateId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if (this._templateId != value)
|
||||
{
|
||||
this.RaisePropertyChanging();
|
||||
this._templateId = value;
|
||||
this.IsDirty = true;
|
||||
this.RaisePropertyChanged("Template");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the version of the umbraco item
|
||||
/// </summary>
|
||||
/// <value>The version.</value>
|
||||
[Field]
|
||||
[UmbracoInfo("version", DisplayName = "Version", Mandatory = true), DataMember(Name = "Version")]
|
||||
public virtual string Version
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._versionId;
|
||||
}
|
||||
protected internal set
|
||||
{
|
||||
if (this._versionId != value)
|
||||
{
|
||||
this.RaisePropertyChanging();
|
||||
this._versionId = value;
|
||||
this.RaisePropertyChanged("Version");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the ID of the parent node.
|
||||
/// </summary>
|
||||
/// <value>The parent node id.</value>
|
||||
[Field]
|
||||
[UmbracoInfo("parentID", DisplayName = "ParentId", Mandatory = true), DataMember(Name = "ParentId")]
|
||||
public virtual int ParentNodeId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._parentId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if (this._parentId != value)
|
||||
{
|
||||
this.RaisePropertyChanging();
|
||||
this._parentId = value;
|
||||
this.RaisePropertyChanged("ParentId");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the created date.
|
||||
/// </summary>
|
||||
/// <value>The create date.</value>
|
||||
[Field]
|
||||
[UmbracoInfo("createDate", DisplayName = "CreateDate"), DataMember(Name = "CreateDate")]
|
||||
public virtual DateTime CreateDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the sort order.
|
||||
/// </summary>
|
||||
/// <value>The sort order.</value>
|
||||
[Field]
|
||||
[UmbracoInfo("sortOrder", DisplayName = "SortOrder"), DataMember(Name = "SortOrder")]
|
||||
public virtual int SortOrder { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the last updated date of the current version
|
||||
/// </summary>
|
||||
/// <value>The update date.</value>
|
||||
[Field]
|
||||
[UmbracoInfo("updateDate", DisplayName = "UpdateDate"), DataMember(Name = "UpdateDate")]
|
||||
public virtual DateTime UpdateDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the level of this item in the content tree
|
||||
/// </summary>
|
||||
/// <value>The level.</value>
|
||||
[Field]
|
||||
[UmbracoInfo("level", DisplayName = "Level"), DataMember(Name = "Level")]
|
||||
public virtual int Level { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the path.
|
||||
/// </summary>
|
||||
/// <value>The path.</value>
|
||||
[Field]
|
||||
[UmbracoInfo("path", DisplayName = "Path")]
|
||||
[DataMember(Name = "Path")]
|
||||
public virtual string Path
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._path;
|
||||
}
|
||||
set
|
||||
{
|
||||
if (this._path != value)
|
||||
{
|
||||
this.RaisePropertyChanging();
|
||||
this._path = value;
|
||||
this.RaisePropertyChanged("Path");
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Parents and Children
|
||||
/// <summary>
|
||||
/// Gets the children of this DocType instance.
|
||||
/// </summary>
|
||||
/// <value>The children of this DocType instance.</value>
|
||||
public AssociationTree<DocTypeBase> Children
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this._children == null)
|
||||
{
|
||||
this._children = this.Provider.LoadAssociation(this.Id); //tell the provider to create it
|
||||
}
|
||||
|
||||
return this._children;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the children which are of the type TDocTypeBase.
|
||||
/// </summary>
|
||||
/// <typeparam name="TDocTypeBase">The DocType of the children desired.</typeparam>
|
||||
/// <returns>An <see cref="umbraco.Linq.Core.AssociationTree<TDocTypeBase>"/> of the children</returns>
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter")]
|
||||
protected AssociationTree<TDocTypeBase> ChildrenOfType<TDocTypeBase>() where TDocTypeBase : DocTypeBase, new()
|
||||
{
|
||||
return this.Provider.LoadAssociation<TDocTypeBase>(this.Children.Where(d => d is TDocTypeBase).Cast<TDocTypeBase>());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Parent this instance.
|
||||
/// </summary>
|
||||
/// <typeparam name="TParent">The type of the parent.</typeparam>
|
||||
/// <returns>Null when at the root level, else the parent instance</returns>
|
||||
/// <exception cref="umbraco.Linq.Core.DocTypeMissMatchException">If the type of the parent does not match the provided type</exception>
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter")]
|
||||
public virtual TParent Parent<TParent>() where TParent : DocTypeBase, new()
|
||||
{
|
||||
if (this._parentId == -1)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
return this.Provider.Load<TParent>(this._parentId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves the first matching ancestor of the current type
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Provides similar functionality to the XPath method
|
||||
/// </remarks>
|
||||
/// <returns>First ancestor matching type. Null if no match found</returns>
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter")]
|
||||
public TDocType AncestorOrDefault<TDocType>() where TDocType : DocTypeBase
|
||||
{
|
||||
return this.AncestorOrDefault<TDocType>(t => true); //just a simple little true statement ;)
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves the first matching ancestor of the current type and additional boolean function
|
||||
/// </summary>
|
||||
/// <typeparam name="TDocType">The type of the doc type.</typeparam>
|
||||
/// <param name="func">Additional boolean operation to filter on</param>
|
||||
/// <returns>First ancestor matching type and function. Null if no match found</returns>
|
||||
/// <exception cref="System.ArgumentNullException">Func parameter required</exception>
|
||||
public TDocType AncestorOrDefault<TDocType>(Func<TDocType, bool> func) where TDocType : DocTypeBase
|
||||
{
|
||||
if (func == null)
|
||||
{
|
||||
throw new ArgumentNullException("func");
|
||||
}
|
||||
|
||||
if (this._ancestors == null)
|
||||
{
|
||||
this._ancestors = this.Provider.LoadAncestors(this.Id);
|
||||
}
|
||||
|
||||
return this._ancestors.Where(a => a is TDocType).Cast<TDocType>().FirstOrDefault(func);
|
||||
}
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the creator ID.
|
||||
/// </summary>
|
||||
/// <value>The creator ID.</value>
|
||||
public int CreatorID
|
||||
{
|
||||
get
|
||||
{
|
||||
return creatorID;
|
||||
}
|
||||
internal set
|
||||
{
|
||||
this.creatorID = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets the umbraco user who created the item
|
||||
/// </summary>
|
||||
/// <value>The creator.</value>
|
||||
public virtual User Creator
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this._creator == null)
|
||||
{
|
||||
this._creator = new User(this.CreatorID);
|
||||
}
|
||||
|
||||
return this._creator;
|
||||
}
|
||||
}
|
||||
|
||||
public virtual string CreatorName { get; internal set; }
|
||||
|
||||
/// <summary>
|
||||
/// ID of the user who last edited the item
|
||||
/// </summary>
|
||||
public int WriterID
|
||||
{
|
||||
get
|
||||
{
|
||||
return writerID;
|
||||
}
|
||||
internal set
|
||||
{
|
||||
this.writerID = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets the umbraco user who last edited the instance
|
||||
/// </summary>
|
||||
/// <value>The writer.</value>
|
||||
public virtual User Writer
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this._writer == null)
|
||||
{
|
||||
this._writer = new User(this.WriterID);
|
||||
}
|
||||
|
||||
return this._writer;
|
||||
}
|
||||
}
|
||||
|
||||
public virtual string WriterName { get; internal set; }
|
||||
|
||||
/// <summary>
|
||||
/// Raises the property changing event.
|
||||
/// </summary>
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1030:UseEventsWhereAppropriate")]
|
||||
protected virtual void RaisePropertyChanging()
|
||||
{
|
||||
if (this.PropertyChanging != null)
|
||||
{
|
||||
this.PropertyChanging(this, new PropertyChangingEventArgs(String.Empty));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Raises the property changed event.
|
||||
/// </summary>
|
||||
/// <param name="name">The name of the changed property.</param>
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1030:UseEventsWhereAppropriate")]
|
||||
protected virtual void RaisePropertyChanged(string name)
|
||||
{
|
||||
if (this.PropertyChanged != null)
|
||||
{
|
||||
this.PropertyChanged(this, new PropertyChangedEventArgs(name));
|
||||
}
|
||||
}
|
||||
|
||||
#region INotifyPropertyChanging Members
|
||||
|
||||
/// <summary>
|
||||
/// Occurs when a property value is changing.
|
||||
/// </summary>
|
||||
public event PropertyChangingEventHandler PropertyChanging;
|
||||
|
||||
#endregion
|
||||
|
||||
#region INotifyPropertyChanged Members
|
||||
|
||||
/// <summary>
|
||||
/// Occurs when a property value changes.
|
||||
/// </summary>
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
||||
#endregion
|
||||
|
||||
protected void ValidateProperty(string regex, string value)
|
||||
{
|
||||
Regex r = new Regex(regex);
|
||||
if (!r.IsMatch(value))
|
||||
{
|
||||
throw new InvalidCastException("Value does not match validation expression from Umbraco");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,128 +0,0 @@
|
||||
using System;
|
||||
|
||||
namespace umbraco.Linq.Core
|
||||
{
|
||||
/// <summary>
|
||||
/// Exception for when the provided class does not meet the expected class
|
||||
/// </summary>
|
||||
[global::System.Serializable]
|
||||
public class DocTypeMissMatchException : ArgumentException
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="DocTypeMissMatchException"/> class.
|
||||
/// </summary>
|
||||
/// <param name="actual">The actual doc type alias.</param>
|
||||
/// <param name="expected">The expcected doc type alias.</param>
|
||||
public DocTypeMissMatchException(string actual, string expected) : this(actual, expected, string.Empty) { }
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="DocTypeMissMatchException"/> class.
|
||||
/// </summary>
|
||||
/// <param name="actual">The actual doc type alias.</param>
|
||||
/// <param name="expected">The expcected doc type alias.</param>
|
||||
/// <param name="message">Additional message information.</param>
|
||||
public DocTypeMissMatchException(string actual, string expected, string message)
|
||||
: base(string.Format("DocTypeAlias provided did not match what was expected (provided: {0}, expected: {1}){2}{3}", actual, expected, Environment.NewLine, message))
|
||||
{
|
||||
Expected = expected;
|
||||
Actual = actual;
|
||||
}
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="DocTypeMissMatchException"/> class.
|
||||
/// </summary>
|
||||
/// <param name="actual">The actual doc type alias.</param>
|
||||
/// <param name="expected">The expcected doc type alias.</param>
|
||||
/// <param name="message">Additional message information.</param>
|
||||
/// <param name="innerException">The inner exception.</param>
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Globalization", "CA1305:SpecifyIFormatProvider", MessageId = "System.String.Format(System.String,System.Object[])")]
|
||||
public DocTypeMissMatchException(string actual, string expected, string message, Exception innerException)
|
||||
: base(string.Format("DocTypeAlias provided did not match what was expected (provided: {0}, expected: {1}){2}{3}", actual, expected, Environment.NewLine, message), innerException)
|
||||
{
|
||||
Expected = expected;
|
||||
Actual = actual;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="MandatoryFailureException"/> class.
|
||||
/// </summary>
|
||||
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo"/> that holds the serialized object data about the exception being thrown.</param>
|
||||
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext"/> that contains contextual information about the source or destination.</param>
|
||||
/// <exception cref="T:System.ArgumentNullException">
|
||||
/// The <paramref name="info"/> parameter is null.
|
||||
/// </exception>
|
||||
/// <exception cref="T:System.Runtime.Serialization.SerializationException">
|
||||
/// The class name is null or <see cref="P:System.Exception.HResult"/> is zero (0).
|
||||
/// </exception>
|
||||
protected DocTypeMissMatchException(
|
||||
System.Runtime.Serialization.SerializationInfo info,
|
||||
System.Runtime.Serialization.StreamingContext context)
|
||||
: base(info, context) { }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the expected DocTypeAlias
|
||||
/// </summary>
|
||||
/// <value>The expected DocTypeAlias.</value>
|
||||
public string Expected { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the actual DocTypeAlias
|
||||
/// </summary>
|
||||
/// <value>The actual DocTypeAlias.</value>
|
||||
public string Actual { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Exception raised when a field isn't meeting its mandatory requirement
|
||||
/// </summary>
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1032:ImplementStandardExceptionConstructors"), global::System.Serializable]
|
||||
public class MandatoryFailureException : Exception
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="MandatoryFailureException"/> class.
|
||||
/// </summary>
|
||||
/// <param name="propertyName">Name of the property that failed the mandatory check.</param>
|
||||
public MandatoryFailureException(string propertyName) : this(propertyName, string.Empty) { }
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="MandatoryFailureException"/> class.
|
||||
/// </summary>
|
||||
/// <param name="propertyName">Name of the property that failed the mandatory check.</param>
|
||||
/// <param name="message">Additional message information.</param>
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Globalization", "CA1305:SpecifyIFormatProvider", MessageId = "System.String.Format(System.String,System.Object,System.Object,System.Object)")]
|
||||
public MandatoryFailureException(string propertyName, string message)
|
||||
: base(string.Format("The mandatory property \"{0}\" did not have a value.{1}{2}", propertyName, Environment.NewLine, message))
|
||||
{
|
||||
PropertyName = propertyName;
|
||||
}
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="MandatoryFailureException"/> class.
|
||||
/// </summary>
|
||||
/// <param name="propertyName">Name of the property that failed the mandatory check.</param>
|
||||
/// <param name="message">Additional message information.</param>
|
||||
/// <param name="innerException">The inner exception.</param>
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Globalization", "CA1305:SpecifyIFormatProvider", MessageId = "System.String.Format(System.String,System.Object,System.Object,System.Object)")]
|
||||
public MandatoryFailureException(string propertyName, string message, Exception innerException)
|
||||
: base(string.Format("The mandatory property \"{0}\" did not have a value.{1}{2}", propertyName, Environment.NewLine, message), innerException)
|
||||
{
|
||||
PropertyName = propertyName;
|
||||
}
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="MandatoryFailureException"/> class.
|
||||
/// </summary>
|
||||
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo"/> that holds the serialized object data about the exception being thrown.</param>
|
||||
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext"/> that contains contextual information about the source or destination.</param>
|
||||
/// <exception cref="T:System.ArgumentNullException">
|
||||
/// The <paramref name="info"/> parameter is null.
|
||||
/// </exception>
|
||||
/// <exception cref="T:System.Runtime.Serialization.SerializationException">
|
||||
/// The class name is null or <see cref="P:System.Exception.HResult"/> is zero (0).
|
||||
/// </exception>
|
||||
protected MandatoryFailureException(
|
||||
System.Runtime.Serialization.SerializationInfo info,
|
||||
System.Runtime.Serialization.StreamingContext context)
|
||||
: base(info, context) { }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the name of the property the exception was raised for.
|
||||
/// </summary>
|
||||
/// <value>The name of the property.</value>
|
||||
public string PropertyName { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
// This file is used by Code Analysis to maintain SuppressMessage
|
||||
// attributes that are applied to this project.
|
||||
// Project-level suppressions either have no target or are given
|
||||
// a specific target and scoped to a namespace, type, member, etc.
|
||||
//
|
||||
// To add a suppression to this file, right-click the message in the
|
||||
// Error List, point to "Suppress Message(s)", and click
|
||||
// "In Project Suppression File".
|
||||
// You do not need to add suppressions to this file manually.
|
||||
|
||||
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "umbraco", Scope = "namespace", Target = "umbraco.Linq.Core")]
|
||||
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1020:AvoidNamespacesWithFewTypes", Scope = "namespace", Target = "umbraco.Linq.Core.Node")]
|
||||
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "umbraco", Scope = "namespace", Target = "umbraco.Linq.Core.Node")]
|
||||
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "umbraco")]
|
||||
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1032:ImplementStandardExceptionConstructors", Scope = "type", Target = "umbraco.Linq.Core.DocTypeMissMatchException")]
|
||||
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Globalization", "CA1305:SpecifyIFormatProvider", MessageId = "System.String.Format(System.String,System.Object[])", Scope = "member", Target = "umbraco.Linq.Core.DocTypeMissMatchException.#.ctor(System.String,System.String,System.String)")]
|
||||
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "umbraco", Scope = "member", Target = "umbraco.Linq.Core.ReflectionAssistance.#GetumbracoInfoAttribute(System.Type)")]
|
||||
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "umbraco", Scope = "type", Target = "umbraco.Linq.Core.umbracoDataContext")]
|
||||
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "umbraco", Scope = "type", Target = "umbraco.Linq.Core.umbracoDataProvider")]
|
||||
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter", Scope = "member", Target = "umbraco.Linq.Core.umbracoDataProvider.#Load`1(System.Int32)")]
|
||||
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter", Scope = "member", Target = "umbraco.Linq.Core.umbracoDataProvider.#LoadTree`1()")]
|
||||
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "umbraco", Scope = "type", Target = "umbraco.Linq.Core.umbracoInfoAttribute")]
|
||||
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix", Scope = "type", Target = "umbraco.Linq.Core.Node.NodeAssociationTree`1")]
|
||||
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter", Scope = "member", Target = "umbraco.Linq.Core.Node.NodeDataProvider.#LoadTree`1()")]
|
||||
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix", Scope = "type", Target = "umbraco.Linq.Core.Node.NodeTree`1")]
|
||||
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter", Scope = "member", Target = "umbraco.Linq.Core.Node.NodeDataProvider.#Load`1(System.Int32)")]
|
||||
@@ -1,27 +0,0 @@
|
||||
|
||||
namespace umbraco.Linq.Core
|
||||
{
|
||||
/// <summary>
|
||||
/// Base of an umbraco content tree
|
||||
/// </summary>
|
||||
public interface IContentTree
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the <see cref="UmbracoDataProvider"/> Provider associated with this instance
|
||||
/// </summary>
|
||||
/// <value>The provider.</value>
|
||||
UmbracoDataProvider Provider { get; }
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether this instance is read only.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// <c>true</c> if this instance is read only; otherwise, <c>false</c>.
|
||||
/// </value>
|
||||
bool IsReadOnly { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Reloads the cache for the particular tree
|
||||
/// </summary>
|
||||
void ReloadCache();
|
||||
}
|
||||
}
|
||||
@@ -1,116 +0,0 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
namespace umbraco.Linq.Core
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public interface IDocTypeBase : INotifyPropertyChanging, INotifyPropertyChanged
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the Ancestor or Default based on type
|
||||
/// </summary>
|
||||
/// <typeparam name="TDocType">The type of the Ancestor.</typeparam>
|
||||
/// <returns></returns>
|
||||
TDocType AncestorOrDefault<TDocType>() where TDocType : DocTypeBase;
|
||||
/// <summary>
|
||||
/// Gets the Ancestor or Default based on type
|
||||
/// </summary>
|
||||
/// <typeparam name="TDocType">The type of the Ancestor.</typeparam>
|
||||
/// <param name="func">The func.</param>
|
||||
/// <returns></returns>
|
||||
TDocType AncestorOrDefault<TDocType>(Func<TDocType, bool> func) where TDocType : DocTypeBase;
|
||||
/// <summary>
|
||||
/// Gets the children.
|
||||
/// </summary>
|
||||
/// <value>The children.</value>
|
||||
AssociationTree<DocTypeBase> Children { get; }
|
||||
/// <summary>
|
||||
/// Gets or sets the create date.
|
||||
/// </summary>
|
||||
/// <value>The create date.</value>
|
||||
DateTime CreateDate { get; set; }
|
||||
/// <summary>
|
||||
/// Gets the creator user ID.
|
||||
/// </summary>
|
||||
/// <value>The creator ID.</value>
|
||||
int CreatorID { get; }
|
||||
/// <summary>
|
||||
/// Gets the name of the creator.
|
||||
/// </summary>
|
||||
/// <value>The name of the creator.</value>
|
||||
string CreatorName { get; }
|
||||
/// <summary>
|
||||
/// Gets the id of the item.
|
||||
/// </summary>
|
||||
/// <value>The id.</value>
|
||||
int Id { get; }
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether this instance is dirty.
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if this instance is dirty; otherwise, <c>false</c>.</value>
|
||||
bool IsDirty { get; }
|
||||
/// <summary>
|
||||
/// Gets or sets the level of the item
|
||||
/// </summary>
|
||||
/// <value>The level.</value>
|
||||
int Level { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the name.
|
||||
/// </summary>
|
||||
/// <value>The name.</value>
|
||||
string NodeName { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the name.
|
||||
/// </summary>
|
||||
/// <value>The name.</value>
|
||||
[Obsolete("Name property is obsolete, use NodeName instead")] //this is because most people expect NodeName not Name as the property
|
||||
string Name { get; set; }
|
||||
/// <summary>
|
||||
/// Parent if current instance
|
||||
/// </summary>
|
||||
/// <typeparam name="TParent">The type of the parent.</typeparam>
|
||||
/// <returns></returns>
|
||||
TParent Parent<TParent>() where TParent : DocTypeBase, new();
|
||||
/// <summary>
|
||||
/// Gets or sets the parent node id.
|
||||
/// </summary>
|
||||
/// <value>The parent node id.</value>
|
||||
int ParentNodeId { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the sort order.
|
||||
/// </summary>
|
||||
/// <value>The sort order.</value>
|
||||
int SortOrder { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the template id.
|
||||
/// </summary>
|
||||
/// <value>The template id.</value>
|
||||
int TemplateId { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the update date.
|
||||
/// </summary>
|
||||
/// <value>The update date.</value>
|
||||
DateTime UpdateDate { get; set; }
|
||||
/// <summary>
|
||||
/// Gets the version.
|
||||
/// </summary>
|
||||
/// <value>The version.</value>
|
||||
string Version { get; }
|
||||
/// <summary>
|
||||
/// Gets the writer user ID.
|
||||
/// </summary>
|
||||
/// <value>The writer ID.</value>
|
||||
int WriterID { get; }
|
||||
/// <summary>
|
||||
/// Gets the name of the writer.
|
||||
/// </summary>
|
||||
/// <value>The name of the writer.</value>
|
||||
string WriterName { get; }
|
||||
/// <summary>
|
||||
/// Gets or sets the path.
|
||||
/// </summary>
|
||||
/// <value>The path.</value>
|
||||
string Path { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
using System;
|
||||
namespace umbraco.Linq.Core
|
||||
{
|
||||
/// <summary>
|
||||
/// Abstraction of the UmbracoDataContext
|
||||
/// </summary>
|
||||
public interface IUmbracoDataContext : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the data provider.
|
||||
/// </summary>
|
||||
/// <value>The data provider.</value>
|
||||
UmbracoDataProvider DataProvider { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Submits the changes tracked in this data context
|
||||
/// </summary>
|
||||
void SubmitChanges();
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user