mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 17:02:10 -10:00
Compare commits
789
Commits
2.10
...
moon/3.99.0.2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
32b3b31f74 | ||
|
|
1be427d6d3 | ||
|
|
862e1a20d2 | ||
|
|
4c1bc31c53 | ||
|
|
89c1c938ec | ||
|
|
d91cebb747 | ||
|
|
089b4086dc | ||
|
|
16435bd037 | ||
|
|
5cdeff4846 | ||
|
|
cc72712e4e | ||
|
|
f4326c0bce | ||
|
|
c5e37f197d | ||
|
|
1bf1f268f2 | ||
|
|
dd79962df7 | ||
|
|
5ede770a67 | ||
|
|
238a65fbfe | ||
|
|
17317ee088 | ||
|
|
71259e744e | ||
|
|
928550dff2 | ||
|
|
cdadec93c0 | ||
|
|
430d01adef | ||
|
|
53e5b292ab | ||
|
|
1d8dbddfd1 | ||
|
|
f286a4278d | ||
|
|
3595d1d20e | ||
|
|
79132ee417 | ||
|
|
5b4dfe2800 | ||
|
|
21157e91e0 | ||
|
|
3137e2c0c6 | ||
|
|
e2af590bc6 | ||
|
|
1fe37c584d | ||
|
|
9869f11cb4 | ||
|
|
b81988637e | ||
|
|
cd40af130d | ||
|
|
3c1a805c6d | ||
|
|
19d8b7e3de | ||
|
|
ac9d0c11ab | ||
|
|
8753386e4b | ||
|
|
7da86f1edf | ||
|
|
7b207f9f4b | ||
|
|
cc8b19c1a1 | ||
|
|
40b3c2f288 | ||
|
|
98b048cbc4 | ||
|
|
5d757ea7df | ||
|
|
cdd12cb801 | ||
|
|
f1ce13ae04 | ||
|
|
985b888796 | ||
|
|
f1b86e38b3 | ||
|
|
463d8ebf82 | ||
|
|
7cca5459f9 | ||
|
|
a5fe143613 | ||
|
|
1d62f3e9e5 | ||
|
|
86977acb58 | ||
|
|
f4dfb13cc7 | ||
|
|
acc0384e01 | ||
|
|
59fcb4f8d3 | ||
|
|
2c9f304f50 | ||
|
|
798d03b364 | ||
|
|
198e553ae4 | ||
|
|
28d33683a2 | ||
|
|
fa34f80319 | ||
|
|
1f7d8637e5 | ||
|
|
b8ecb21ef2 | ||
|
|
3aaf87fe84 | ||
|
|
3dbfe75434 | ||
|
|
2de488bf5d | ||
|
|
766db2eadf | ||
|
|
3c19080f53 | ||
|
|
f8b219931c | ||
|
|
4fa12b94b0 | ||
|
|
2685ac100c | ||
|
|
bac5d7a27f | ||
|
|
5fe1e8df35 | ||
|
|
3f3f13ef21 | ||
|
|
7c911b67e7 | ||
|
|
93fd158296 | ||
|
|
eae45fd704 | ||
|
|
d4ec12dbaa | ||
|
|
fee0b115fd | ||
|
|
7570eef1b6 | ||
|
|
39a5c7f6d4 | ||
|
|
679be0d28f | ||
|
|
1239b13d1a | ||
|
|
6450a342e5 | ||
|
|
c033e6dea6 | ||
|
|
325580a101 | ||
|
|
5dbf63ae30 | ||
|
|
d25f6ac751 | ||
|
|
7b07f2b024 | ||
|
|
8390e2da1e | ||
|
|
62b6eb2540 | ||
|
|
274c05b8a6 | ||
|
|
9930a95a1a | ||
|
|
2392c6a50d | ||
|
|
6afc6ea42f | ||
|
|
a5f2fa7186 | ||
|
|
b4e0414776 | ||
|
|
7bbda0750f | ||
|
|
29b419d427 | ||
|
|
95dcd2ad9b | ||
|
|
04c7aea04f | ||
|
|
44bf6d5a50 | ||
|
|
8cfe56d80c | ||
|
|
665cf6c6e6 | ||
|
|
2fa2ca3565 | ||
|
|
e940d4fa30 | ||
|
|
81a76ad07e | ||
|
|
78a40c59be | ||
|
|
16ebb08ee2 | ||
|
|
5f7a56d356 | ||
|
|
991bedc101 | ||
|
|
3664f9db8f | ||
|
|
7ef058f135 | ||
|
|
b061ae7569 | ||
|
|
a9de626f74 | ||
|
|
15742c6ea9 | ||
|
|
38253abf8c | ||
|
|
97e585b5ec | ||
|
|
7bcc94629d | ||
|
|
31dd8c91be | ||
|
|
64a750eff3 | ||
|
|
c365c9a8f2 | ||
|
|
bda2b7dc1b | ||
|
|
28a47b5d39 | ||
|
|
4571528f8f | ||
|
|
ede1365668 | ||
|
|
d833c08b45 | ||
|
|
0317e5e5ed | ||
|
|
2714556067 | ||
|
|
0eba8d0a5b | ||
|
|
5505faf960 | ||
|
|
44cb0e4def | ||
|
|
8a95d5a5a6 | ||
|
|
fee645b660 | ||
|
|
bf8270de10 | ||
|
|
78925eeebf | ||
|
|
bb2e1d1d5e | ||
|
|
a9374ea1ba | ||
|
|
e23bf4799a | ||
|
|
76638d26cd | ||
|
|
82a3eedf58 | ||
|
|
10289b6604 | ||
|
|
075c339228 | ||
|
|
81b38e3b33 | ||
|
|
1163a2f579 | ||
|
|
69948672b2 | ||
|
|
c9376a26e0 | ||
|
|
8110b6b179 | ||
|
|
49b35c4b9b | ||
|
|
83bc684f2d | ||
|
|
ff54c98812 | ||
|
|
b1248b22e4 | ||
|
|
b92b165ddb | ||
|
|
6493ec7731 | ||
|
|
a99608d830 | ||
|
|
b508d87299 | ||
|
|
7d0e224a7a | ||
|
|
8e7f14ecd6 | ||
|
|
3fe558adb8 | ||
|
|
7a69dca123 | ||
|
|
4efd718bc0 | ||
|
|
3204e13673 | ||
|
|
24b33b7617 | ||
|
|
30e3a346e0 | ||
|
|
61e42aed24 | ||
|
|
b6513d2047 | ||
|
|
62f459cdca | ||
|
|
046b5f13cf | ||
|
|
a2d588d433 | ||
|
|
0bc2c5b8a4 | ||
|
|
7bb97fcd64 | ||
|
|
9bc886aed7 | ||
|
|
d352810dff | ||
|
|
1afdb2bead | ||
|
|
d84abdc22a | ||
|
|
f9a2bab548 | ||
|
|
b956f6dc78 | ||
|
|
df5d05c37f | ||
|
|
2364636375 | ||
|
|
bae9eb37ca | ||
|
|
5de92f8563 | ||
|
|
507973ab5a | ||
|
|
46dd06e61e | ||
|
|
11ef57f0f6 | ||
|
|
b1436dd4bb | ||
|
|
8fa5360efd | ||
|
|
24d225dd5b | ||
|
|
95641fcca1 | ||
|
|
a7158d99cd | ||
|
|
58a7b75bd8 | ||
|
|
a9082416b0 | ||
|
|
83b91243c1 | ||
|
|
c649da58f9 | ||
|
|
f42c415b09 | ||
|
|
be07f04c62 | ||
|
|
1171cacd8d | ||
|
|
22794e9c8f | ||
|
|
2670761ee7 | ||
|
|
b8f9fee496 | ||
|
|
77c53b9b18 | ||
|
|
6ae889bd4f | ||
|
|
d4ff53c6ad | ||
|
|
ac358ae161 | ||
|
|
8abe2f6c49 | ||
|
|
8d2b210632 | ||
|
|
c71944e2bb | ||
|
|
df5e0831fa | ||
|
|
dc27dd4c02 | ||
|
|
13ff58f9ae | ||
|
|
f93d21ce8b | ||
|
|
a8362f1a14 | ||
|
|
90f74ba8f2 | ||
|
|
4ad5f42e11 | ||
|
|
2e1216beab | ||
|
|
2a5d9080c0 | ||
|
|
1e936ba574 | ||
|
|
f83c5cf581 | ||
|
|
d214c8e133 | ||
|
|
0bed23d764 | ||
|
|
581d84c140 | ||
|
|
8fd7a9abf0 | ||
|
|
f3bba38d86 | ||
|
|
0d4ad4e387 | ||
|
|
8b3782ad4d | ||
|
|
8dd4acf57a | ||
|
|
fcd39a34a4 | ||
|
|
7e3c6f434f | ||
|
|
b1be7755df | ||
|
|
8e916dc39c | ||
|
|
0bc4795214 | ||
|
|
b36f4c2dd9 | ||
|
|
f25db7a794 | ||
|
|
bef5178b89 | ||
|
|
997394024f | ||
|
|
18438b44ac | ||
|
|
9e9f11f160 | ||
|
|
2008975524 | ||
|
|
6aac6da3d1 | ||
|
|
a352bb2f72 | ||
|
|
a7e40bc796 | ||
|
|
274c891972 | ||
|
|
fa6166183d | ||
|
|
cae51172f8 | ||
|
|
0351f32bb8 | ||
|
|
5eca8e1a22 | ||
|
|
8ac8f73fc3 | ||
|
|
f443dbf4fa | ||
|
|
5959975e9e | ||
|
|
d8aea7ac70 | ||
|
|
1be9686bd4 | ||
|
|
8a4ece04d3 | ||
|
|
21ffd44a42 | ||
|
|
8eeb1a34e8 | ||
|
|
cb09118840 | ||
|
|
e0a3b79880 | ||
|
|
b9de2e7293 | ||
|
|
fadf1103d8 | ||
|
|
736d225d76 | ||
|
|
a6da6fd3c4 | ||
|
|
cd72a7bcb5 | ||
|
|
886240dea0 | ||
|
|
24f3f8167a | ||
|
|
af6e1f8cd7 | ||
|
|
8c005a8302 | ||
|
|
acb031c92c | ||
|
|
76a0076e97 | ||
|
|
5f04c544fb | ||
|
|
5ba4cb0b55 | ||
|
|
e6c74ffbd1 | ||
|
|
8ceb2172dd | ||
|
|
93fcc4a3a7 | ||
|
|
c1e53ceb4a | ||
|
|
657c0588c0 | ||
|
|
a227dbd93e | ||
|
|
e1b4ccf163 | ||
|
|
c197b470f8 | ||
|
|
805da076e0 | ||
|
|
b96746a946 | ||
|
|
24642f04ac | ||
|
|
49427a1b28 | ||
|
|
cf2b1d58af | ||
|
|
9109d38e09 | ||
|
|
b67c0980c3 | ||
|
|
9d2a548321 | ||
|
|
1f930bb19d | ||
|
|
fde2f884b5 | ||
|
|
7c508d9ce0 | ||
|
|
1e9a82634d | ||
|
|
30cc982eb8 | ||
|
|
a2f1b9fb76 | ||
|
|
96e617e7ac | ||
|
|
6e2b9d3da4 | ||
|
|
bb29e352e0 | ||
|
|
f81cd730a0 | ||
|
|
faf1b2c8c1 | ||
|
|
d588d7ffee | ||
|
|
e96c335c73 | ||
|
|
6e1a729b71 | ||
|
|
133db04626 | ||
|
|
049a51aa06 | ||
|
|
b70344fdd5 | ||
|
|
d976580bd0 | ||
|
|
f9c8a5c71c | ||
|
|
d44879348f | ||
|
|
83586e4900 | ||
|
|
3f21f9037a | ||
|
|
00641d503d | ||
|
|
f735f6d9a1 | ||
|
|
652eff2162 | ||
|
|
8fce8113a0 | ||
|
|
43df638bac | ||
|
|
b5b5e51559 | ||
|
|
23a7a0b657 | ||
|
|
9f92cc615e | ||
|
|
d7ad74f11f | ||
|
|
dccae3c382 | ||
|
|
6f1cb10490 | ||
|
|
140f7b72d9 | ||
|
|
b9d5892425 | ||
|
|
7c47d212cc | ||
|
|
6911e05b2d | ||
|
|
89d1455a80 | ||
|
|
8eb1189099 | ||
|
|
7424fef442 | ||
|
|
8fb3773a2e | ||
|
|
122fb8dd72 | ||
|
|
f95563a476 | ||
|
|
6a5e36d799 | ||
|
|
5e261c905b | ||
|
|
0e5106e896 | ||
|
|
5e5b296eae | ||
|
|
ef49ad4708 | ||
|
|
051d9bd0de | ||
|
|
e2059c1ca4 | ||
|
|
620d6afed1 | ||
|
|
bb4e4e1a00 | ||
|
|
ab2cc9fed9 | ||
|
|
b15dcd8943 | ||
|
|
c71ee51faf | ||
|
|
64ecfe59e7 | ||
|
|
4604fe76e2 | ||
|
|
224abec3da | ||
|
|
cd038bf2c8 | ||
|
|
40c3113d8f | ||
|
|
d49ecf5a4d | ||
|
|
f4c13c06c7 | ||
|
|
3d2caadfb5 | ||
|
|
63a9a149c4 | ||
|
|
fa036727ae | ||
|
|
732f1c617e | ||
|
|
08f00f0d02 | ||
|
|
060c61e08f | ||
|
|
c3a038e2cb | ||
|
|
ecce3f42e4 | ||
|
|
3df62f0850 | ||
|
|
14f4fbe9ee | ||
|
|
f93bb42f7c | ||
|
|
9021910845 | ||
|
|
c410acbb5b | ||
|
|
696c528ac5 | ||
|
|
360f833e48 | ||
|
|
1b8d34db5f | ||
|
|
1012ab0bbc | ||
|
|
d8520bf769 | ||
|
|
cd6a584860 | ||
|
|
a7bfa16bd9 | ||
|
|
e2e8734262 | ||
|
|
e5f3169d70 | ||
|
|
b84968161f | ||
|
|
94d9671ac6 | ||
|
|
02a65349e1 | ||
|
|
08cdfb5d1e | ||
|
|
d05387a0bd | ||
|
|
ea9864ac6c | ||
|
|
64cb57088a | ||
|
|
7903b30fd9 | ||
|
|
70225f154f | ||
|
|
fb081e88fd | ||
|
|
cb1d4d7241 | ||
|
|
ddecc53e23 | ||
|
|
a554acdc4f | ||
|
|
7b7562d0e9 | ||
|
|
f831cfdf27 | ||
|
|
447fa3f0e8 | ||
|
|
81b8a39b9c | ||
|
|
f775654495 | ||
|
|
42e2e27e05 | ||
|
|
7a0ebccfaa | ||
|
|
1c28d8d27f | ||
|
|
652e71d6e9 | ||
|
|
2975432969 | ||
|
|
734fef0a91 | ||
|
|
6c92b5d5cc | ||
|
|
e51049ee3b | ||
|
|
be2b05b3d3 | ||
|
|
76f606e495 | ||
|
|
1e0428889f | ||
|
|
4423ad060b | ||
|
|
cda8353f0c | ||
|
|
8048982713 | ||
|
|
2fc89c1557 | ||
|
|
92a01903df | ||
|
|
e228282412 | ||
|
|
0dfe460dc6 | ||
|
|
6cb0994257 | ||
|
|
c47765e4a2 | ||
|
|
77fabf1209 | ||
|
|
053cc05107 | ||
|
|
beddbef60a | ||
|
|
54d50f2656 | ||
|
|
567512bd8f | ||
|
|
fb75a201a3 | ||
|
|
ae2d6d1f7d | ||
|
|
d6fdad900c | ||
|
|
a5ee4f3b76 | ||
|
|
145d6be351 | ||
|
|
a9be3295ac | ||
|
|
9ce569a853 | ||
|
|
d7e670c0c7 | ||
|
|
237ac7c68b | ||
|
|
73b624bb2d | ||
|
|
86b3d1371f | ||
|
|
b87d4ad402 | ||
|
|
72a7dcbc53 | ||
|
|
ce9afaf47f | ||
|
|
eb8be6f651 | ||
|
|
16d4fd790b | ||
|
|
78dbed369d | ||
|
|
a3cf6d4379 | ||
|
|
e508315f87 | ||
|
|
cb3f41ca57 | ||
|
|
bce7739486 | ||
|
|
96ee0a8380 | ||
|
|
f224ec361f | ||
|
|
6fe8e00cee | ||
|
|
0765c50516 | ||
|
|
76c9d06873 | ||
|
|
773e8b4d03 | ||
|
|
0f51fe59c2 | ||
|
|
4fb24e90fc | ||
|
|
a4c64b0def | ||
|
|
dd4b543381 | ||
|
|
58e173c891 | ||
|
|
b6daf66fa0 | ||
|
|
926585d833 | ||
|
|
e9ff4409d4 | ||
|
|
83e999b7d7 | ||
|
|
7f2d20a0a8 | ||
|
|
d6a2891a00 | ||
|
|
03933195e5 | ||
|
|
669674a166 | ||
|
|
ee84564501 | ||
|
|
e097a64432 | ||
|
|
e9d51317d8 | ||
|
|
02d7955fa4 | ||
|
|
a90b8c070d | ||
|
|
96a671fba6 | ||
|
|
ffe59cfe9d | ||
|
|
42becb825f | ||
|
|
0840a96eee | ||
|
|
f91a01c747 | ||
|
|
6f84c66659 | ||
|
|
1ea727aa74 | ||
|
|
5ba9f7a270 | ||
|
|
4b084b4966 | ||
|
|
32be083d89 | ||
|
|
0169babb49 | ||
|
|
faabb845d8 | ||
|
|
4e09a1c56d | ||
|
|
357546f6ed | ||
|
|
f2bc22cbf0 | ||
|
|
f88963b09d | ||
|
|
2c12dad9b1 | ||
|
|
66ceeeebae | ||
|
|
567f2f507e | ||
|
|
e60769f5d6 | ||
|
|
699c32cae6 | ||
|
|
1465bf891a | ||
|
|
a9d2a48766 | ||
|
|
402313372c | ||
|
|
d66b7f5543 | ||
|
|
144632ec7c | ||
|
|
4a812850f8 | ||
|
|
b688d53ce7 | ||
|
|
7a505099cf | ||
|
|
bd10f1c50a | ||
|
|
3a820d87a6 | ||
|
|
b17767ef12 | ||
|
|
6a0cd05f65 | ||
|
|
585c0ad5ba | ||
|
|
325a483d42 | ||
|
|
0b04a18b5c | ||
|
|
175bf44280 | ||
|
|
e72f9fb0a0 | ||
|
|
408b7c2c49 | ||
|
|
b4b7fbbd37 | ||
|
|
bf0339ea2b | ||
|
|
aa0a9518f1 | ||
|
|
29cba278a0 | ||
|
|
b6dcc8e3af | ||
|
|
104510d8e2 | ||
|
|
717e88dd0c | ||
|
|
9aa6670554 | ||
|
|
564162304b | ||
|
|
c0ea39424d | ||
|
|
d5cdff0243 | ||
|
|
3e324cc18e | ||
|
|
f01e132493 | ||
|
|
c74e30f6ac | ||
|
|
e278b5edc2 | ||
|
|
48936b2dc6 | ||
|
|
95ce92b57f | ||
|
|
ae8a8ff0b2 | ||
|
|
3fe5cb1897 | ||
|
|
165c64a38b | ||
|
|
3b24253962 | ||
|
|
7cbc385772 | ||
|
|
6bafe0d2d0 | ||
|
|
7bbd3a3ec9 | ||
|
|
14ccd823df | ||
|
|
122b56052b | ||
|
|
2fd30cbfbe | ||
|
|
1b406592e1 | ||
|
|
0b2d2e17cd | ||
|
|
f4d59f294f | ||
|
|
91074e3475 | ||
|
|
c4cc62d42d | ||
|
|
0d732b13a0 | ||
|
|
b2802fa2d5 | ||
|
|
3691992579 | ||
|
|
feec98f870 | ||
|
|
531147d772 | ||
|
|
65a304bd30 | ||
|
|
68bbc4c2d7 | ||
|
|
7a0f8f89a0 | ||
|
|
a2ed4f6fc2 | ||
|
|
9ab0344df9 | ||
|
|
b9cdc5ad7f | ||
|
|
6d17a89132 | ||
|
|
697955e768 | ||
|
|
8bc4226e75 | ||
|
|
c53dcf0463 | ||
|
|
4a8b716e0b | ||
|
|
4f384ab0fc | ||
|
|
e92d099435 | ||
|
|
0f37296695 | ||
|
|
1a9d2e5148 | ||
|
|
37b80b8e29 | ||
|
|
82360af0ca | ||
|
|
5b065d9878 | ||
|
|
8a362ef7e6 | ||
|
|
8f13c9cee5 | ||
|
|
f125c17b1a | ||
|
|
d2b89d8151 | ||
|
|
34b2c955cf | ||
|
|
4e4e92f4fa | ||
|
|
d6ceea638c | ||
|
|
f4d9b0ef94 | ||
|
|
d8aaac8baa | ||
|
|
90f8bf7ffd | ||
|
|
91286f14ae | ||
|
|
53467adcb7 | ||
|
|
5975fd2bb7 | ||
|
|
743508b1f0 | ||
|
|
d382b36521 | ||
|
|
cc3be8ed58 | ||
|
|
79d0cfc7a8 | ||
|
|
1244cd3ac6 | ||
|
|
63f3a0c93f | ||
|
|
5c44482089 | ||
|
|
fb121b6809 | ||
|
|
6bfb5c3644 | ||
|
|
e52514e1a1 | ||
|
|
21026ad130 | ||
|
|
bdef99df34 | ||
|
|
4a5f7c742c | ||
|
|
2464cfc869 | ||
|
|
192bc3e85b | ||
|
|
00e05147a5 | ||
|
|
c46e5f9ece | ||
|
|
c188c7abd3 | ||
|
|
da16ca5a32 | ||
|
|
19532cd5be | ||
|
|
2a3952e27e | ||
|
|
f4dd4e067a | ||
|
|
19f259840c | ||
|
|
a4d66b17da | ||
|
|
e3157bf62d | ||
|
|
fbbbdf8ef1 | ||
|
|
5564f2cdab | ||
|
|
54c0b5c422 | ||
|
|
2482aedbb8 | ||
|
|
2fc97ad932 | ||
|
|
a091409334 | ||
|
|
997a5664a9 | ||
|
|
7d5b5a1b7f | ||
|
|
6af5e953e7 | ||
|
|
ba3b8be8be | ||
|
|
956e8bc42d | ||
|
|
01ca29caf8 | ||
|
|
c4cc8b4b65 | ||
|
|
e7732645c3 | ||
|
|
e96fbeb319 | ||
|
|
0501df25ef | ||
|
|
667cf394f0 | ||
|
|
c6b1dd9db3 | ||
|
|
8027402817 | ||
|
|
3feb4e7f7f | ||
|
|
ca2a9ec584 | ||
|
|
1f6bdc7f36 | ||
|
|
68b93c5ec1 | ||
|
|
fb13ef43ce | ||
|
|
1b95c9e7aa | ||
|
|
d47d06a19c | ||
|
|
839d595e2b | ||
|
|
082589b0f7 | ||
|
|
7f146f9f07 | ||
|
|
9ae3d21c17 | ||
|
|
11bf89d6d4 | ||
|
|
b81c4662c2 | ||
|
|
86190c96d0 | ||
|
|
e6d7773566 | ||
|
|
bacdafc90b | ||
|
|
ee83bdd1f6 | ||
|
|
27bef54a6f | ||
|
|
4383deb009 | ||
|
|
89ef327cd5 | ||
|
|
1e9c83e031 | ||
|
|
772d9cb780 | ||
|
|
6c271d651c | ||
|
|
3c06aa3b92 | ||
|
|
dfe4190650 | ||
|
|
84c53cecc2 | ||
|
|
ef6a07d9d1 | ||
|
|
70df5f5a3d | ||
|
|
b7f41b092a | ||
|
|
9926e923d7 | ||
|
|
694d59471f | ||
|
|
c63efd57c4 | ||
|
|
7f89bd25f1 | ||
|
|
9557c417b8 | ||
|
|
13cc149429 | ||
|
|
63c991322f | ||
|
|
dbd3938763 | ||
|
|
7476fb6eee | ||
|
|
357c8a8503 | ||
|
|
b8d211bccf | ||
|
|
6c02c15153 | ||
|
|
cb59d308ff | ||
|
|
77f622799e | ||
|
|
cec87bd861 | ||
|
|
26009f71a0 | ||
|
|
acc565bfea | ||
|
|
a966f0bdae | ||
|
|
a138175b8f | ||
|
|
659a007604 | ||
|
|
3e62637623 | ||
|
|
cd511eafd2 | ||
|
|
aa2ad86f6d | ||
|
|
d18d08622c | ||
|
|
1d5e3d4350 | ||
|
|
0582257db3 | ||
|
|
c372ab7518 | ||
|
|
8dab9d20d4 | ||
|
|
9affd715fb | ||
|
|
4bc6806eb8 | ||
|
|
669d9a664d | ||
|
|
ea617d2555 | ||
|
|
0f7a69d568 | ||
|
|
2b516ade6d | ||
|
|
8566c056b2 | ||
|
|
e9267b1f21 | ||
|
|
c85558427d | ||
|
|
6c34e3ab54 | ||
|
|
d3a5fe689a | ||
|
|
8bafdbd612 | ||
|
|
674699abef | ||
|
|
a4078aa9a9 | ||
|
|
83db413a2a | ||
|
|
2daab2feda | ||
|
|
728847d662 | ||
|
|
ee9454fc50 | ||
|
|
33947a674f | ||
|
|
a47c2f51f4 | ||
|
|
e524cfd9e1 | ||
|
|
2fb5ad4bba | ||
|
|
397b54e8b5 | ||
|
|
ffdb957cf2 | ||
|
|
a494244e06 | ||
|
|
ed50eda10f | ||
|
|
1e030b8a96 | ||
|
|
262fe52fbf | ||
|
|
b9ec9f676d | ||
|
|
16b911500e | ||
|
|
891af303aa | ||
|
|
afd0bc3f79 | ||
|
|
965dff7832 | ||
|
|
b6dc6e1077 | ||
|
|
d68c6c9361 | ||
|
|
4b304dc8c6 | ||
|
|
bf5c6494a8 | ||
|
|
6258fab1c4 | ||
|
|
e11aa526d2 | ||
|
|
8d04b0aabd | ||
|
|
8a407a87f7 | ||
|
|
11161ffcfb | ||
|
|
2fdd06c04b | ||
|
|
e0072cdcfa | ||
|
|
046d0678a5 | ||
|
|
0c85cec10b | ||
|
|
a105464971 | ||
|
|
1a0dda70bc | ||
|
|
f9d2682cc0 | ||
|
|
147580e6cc | ||
|
|
50834de0dd | ||
|
|
46b3891b74 | ||
|
|
2b17a5fa81 | ||
|
|
8ff4c9d487 | ||
|
|
bc16216a6b | ||
|
|
88ca4d4c06 | ||
|
|
f1b9a15708 | ||
|
|
8d27c2b992 | ||
|
|
74b8f910e1 | ||
|
|
3f56bd1df7 | ||
|
|
f9aec637ac | ||
|
|
4f58465978 | ||
|
|
579665f7ba | ||
|
|
10d26a8ad8 | ||
|
|
32bd1f9b70 | ||
|
|
e74e993f69 | ||
|
|
58b0cad7f5 | ||
|
|
b22b764ba7 | ||
|
|
87d61bce7f | ||
|
|
398bdfe46a | ||
|
|
fe3539c36b | ||
|
|
a1d84d7a67 | ||
|
|
4091f624db | ||
|
|
6b7b757403 | ||
|
|
f495fea71a | ||
|
|
9f3ce4b1e5 | ||
|
|
a50440aef7 | ||
|
|
4a33efa191 | ||
|
|
47fa78c28e | ||
|
|
ee3b72364a | ||
|
|
fdda65364f | ||
|
|
cc80f06487 | ||
|
|
afa06e35df | ||
|
|
1a16bb1813 | ||
|
|
72ebf494e2 | ||
|
|
327d01dc97 | ||
|
|
7b66d53d46 | ||
|
|
c2042b7835 | ||
|
|
abba1c3446 | ||
|
|
64ec934b0e | ||
|
|
0bbf0a2abb | ||
|
|
b51e078d37 | ||
|
|
2e2337e80a | ||
|
|
3fe8ea7fcd | ||
|
|
5d3c9886fe | ||
|
|
f85a022ad0 | ||
|
|
556f15f6eb | ||
|
|
2cb680cddf | ||
|
|
f272e3663d | ||
|
|
fd981e67cb | ||
|
|
61d56a7148 | ||
|
|
009dfc4d52 | ||
|
|
99ac282cf3 | ||
|
|
6b5ab67b05 | ||
|
|
fbe5b6a90b | ||
|
|
1b0acda60e | ||
|
|
25280a542d | ||
|
|
f4b5acc984 | ||
|
|
eecee98e4e | ||
|
|
bebd88b14b | ||
|
|
57078fc3bb | ||
|
|
6f47ef4a71 | ||
|
|
9ea6bba25e | ||
|
|
e169505e2c | ||
|
|
aa30274379 | ||
|
|
8a9521a1ce | ||
|
|
094ec3a24a | ||
|
|
bfd4d16e12 | ||
|
|
4dc67cf08a | ||
|
|
606cbfde03 | ||
|
|
f54988c03b | ||
|
|
b953dfd9dc | ||
|
|
8dd9fd9092 | ||
|
|
cc881c63a5 | ||
|
|
262e68086c |
No files matched your search
+10
-1
@@ -19,7 +19,16 @@ DIST_SUBDIRS = po libgc eglib mono ikvm-native support data runtime scripts man
|
||||
endif
|
||||
endif
|
||||
|
||||
EXTRA_DIST= nls.m4 po.m4 progtest.m4 mono-uninstalled.pc.in build-mingw32.sh LICENSE mkinstalldirs autogen.sh
|
||||
EXTRA_DIST= \
|
||||
LICENSE \
|
||||
autogen.sh \
|
||||
build-mingw32.sh \
|
||||
mkinstalldirs \
|
||||
mono-uninstalled.pc.in \
|
||||
nls.m4 \
|
||||
po.m4 \
|
||||
progtest.m4 \
|
||||
winconfig.h
|
||||
|
||||
DISTCHECK_CONFIGURE_FLAGS = EXTERNAL_MCS=false EXTERNAL_RUNTIME=false
|
||||
|
||||
|
||||
+106
-43
@@ -2,7 +2,7 @@
|
||||
CURDIR="`pwd`"
|
||||
MINGW=i386-mingw32msvc
|
||||
CROSS_DIR=/opt/cross/$MINGW
|
||||
COPY_DLLS="libgio*.dll libglib*.dll libgmodule*.dll libgthread*.dll libgobject*.dll"
|
||||
EXTRA_CROSS_DIR=
|
||||
INSTALL_DESTDIR="$CURDIR/mono-win32"
|
||||
PROFILES="default net_2_0 net_3_5 net_4_0 moonlight"
|
||||
TEMPORARY_PKG_CONFIG_DIR=/tmp/$RANDOM-pkg-config-$RANDOM
|
||||
@@ -17,62 +17,119 @@ function cleanup ()
|
||||
fi
|
||||
}
|
||||
|
||||
function check_pkg_config_dir ()
|
||||
{
|
||||
local DIR="$1"
|
||||
local DIR_PREFIX="$2"
|
||||
|
||||
if [ ! -d "$DIR" ]; then
|
||||
return
|
||||
fi
|
||||
|
||||
install -d -m 755 "$TEMPORARY_PKG_CONFIG_DIR"
|
||||
for pc in "$DIR"/*.pc; do
|
||||
if [ -f $pc ]; then
|
||||
pcname="`basename $pc`"
|
||||
sed -e "s;^prefix=.*;prefix=$DIR_PREFIX;g" < $pc > "$TEMPORARY_PKG_CONFIG_DIR"/$pcname
|
||||
fi;
|
||||
done
|
||||
|
||||
if [ -z "$CROSS_PKG_CONFIG_DIR" ]; then
|
||||
CROSS_PKG_CONFIG_DIR="$TEMPORARY_PKG_CONFIG_DIR"
|
||||
fi
|
||||
}
|
||||
|
||||
function show_build_info ()
|
||||
{
|
||||
cat <<EOF
|
||||
Installation prefix: $MONO_PREFIX
|
||||
CPPFLAGS: ${CPPFLAGS:=not set}
|
||||
LDFLAGS: ${LDFLAGS:=not set}
|
||||
MONO_PATH: ${MONO_PATH:=not set}
|
||||
EOF
|
||||
}
|
||||
|
||||
function setup ()
|
||||
{
|
||||
local pcname
|
||||
|
||||
CROSS_BIN_DIR="$CROSS_DIR/bin"
|
||||
CROSS_DLL_DIR="$CROSS_DIR/bin"
|
||||
CROSS_PKG_CONFIG_DIR=$CROSS_DIR/lib/pkgconfig
|
||||
PATH=$CROSS_BIN_DIR:$PATH
|
||||
|
||||
export PATH
|
||||
if [ -d ./.git/svn ]; then
|
||||
SVN_INFO='git svn info'
|
||||
elif [ -d ./.svn ]; then
|
||||
SVN_INFO='svn info'
|
||||
else
|
||||
SVN_INFO=""
|
||||
fi
|
||||
|
||||
if [ -n "$SVN_INFO" ]; then
|
||||
MONO_SVN_REVISION=`$SVN_INFO | grep Revision | sed 's/.*: //'`
|
||||
MONO_BRANCH=`$SVN_INFO | grep URL | sed -e 's;.*source/;;g' -e 's;/mono;;g'`
|
||||
else
|
||||
MONO_SVN_REVISION="rUNKNOWN"
|
||||
MONO_BRANCH="tarball"
|
||||
fi
|
||||
|
||||
MONO_VERSION=`grep AM_INIT_AUTOMAKE configure.in | cut -d ',' -f 2|tr -d '\)'`
|
||||
MONO_RELEASE="$MONO_VERSION-$MONO_BRANCH-r$MONO_SVN_REVISION"
|
||||
MONO_PREFIX="/mono-$MONO_RELEASE"
|
||||
|
||||
if [ -d ./.git ]; then
|
||||
MONO_GIT_COMMIT="`git log -1 --format=format:%t`"
|
||||
MONO_GIT_BRANCH="`git branch|grep '\*'|cut -d ' ' -f 2`"
|
||||
MONO_RELEASE="$MONO_VERSION-$MONO_GIT_BRANCH-$MONO_GIT_COMMIT"
|
||||
else
|
||||
MONO_RELEASE="$MONO_VERSION"
|
||||
fi
|
||||
|
||||
MONO_PREFIX="$MONO_PREFIX/mono-$MONO_RELEASE"
|
||||
|
||||
NOCONFIGURE=yes
|
||||
export NOCONFIGURE
|
||||
|
||||
if [ -d "$CROSS_PKG_CONFIG_DIR" ]; then
|
||||
install -d -m 755 "$TEMPORARY_PKG_CONFIG_DIR"
|
||||
for pc in "$CROSS_PKG_CONFIG_DIR"/*.pc; do
|
||||
pcname="`basename $pc`"
|
||||
sed -e "s;^prefix=.*;prefix=$CROSS_DIR;g" < $pc > "$TEMPORARY_PKG_CONFIG_DIR"/$pcname
|
||||
done
|
||||
CROSS_PKG_CONFIG_DIR="$TEMPORARY_PKG_CONFIG_DIR"
|
||||
fi
|
||||
check_pkg_config_dir "$CROSS_DIR/lib/pkgconfig" "$CROSS_DIR"
|
||||
|
||||
echo Mono Win32 installation prefix: $MONO_PREFIX
|
||||
if [ -n "$EXTRA_CROSS_DIR" -a -d "$EXTRA_CROSS_DIR" ]; then
|
||||
if [ -d "$EXTRA_CROSS_DIR/bin" ]; then
|
||||
PATH="$EXTRA_CROSS_DIR/bin":$PATH
|
||||
fi
|
||||
|
||||
check_pkg_config_dir "$EXTRA_CROSS_DIR/lib/pkgconfig" "$EXTRA_CROSS_DIR"
|
||||
|
||||
if [ -d "$EXTRA_CROSS_DIR/include" ]; then
|
||||
if [ -z "$CPPFLAGS" ]; then
|
||||
CPPFLAGS="-I \"$EXTRA_CROSS_DIR/include\""
|
||||
else
|
||||
CPPFLAGS="-I \"$EXTRA_CROSS_DIR/include\" $CFLAGS"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -d "$EXTRA_CROSS_DIR/lib" ]; then
|
||||
if [ -z "$LDFLAGS" ]; then
|
||||
LDFLAGS="-I \"$EXTRA_CROSS_DIR/lib\""
|
||||
else
|
||||
LDFLAGS="-I \"$EXTRA_CROSS_DIR/lib\" $LDFLAGS"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -d "$EXTRA_CROSS_DIR/share/aclocal" ]; then
|
||||
if [ -z "$MONO_PATH" ]; then
|
||||
MONO_PATH="\"$EXTRA_CROSS_DIR\""
|
||||
else
|
||||
MONO_PATH="\"$EXTRA_CROSS_DIR\":$MONO_PATH"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
export PATH MONO_PATH CPPFLAGS
|
||||
show_build_info
|
||||
}
|
||||
|
||||
function build ()
|
||||
{
|
||||
if [ -f ./Makefile ]; then
|
||||
make distclean
|
||||
fi
|
||||
|
||||
if [ -d ./autom4te.cache ]; then
|
||||
rm -rf ./autom4te.cache
|
||||
fi
|
||||
|
||||
if [ -f ./config.status ]; then
|
||||
for f in `find -name config.status -type f`; do
|
||||
rm $f
|
||||
done
|
||||
fi
|
||||
|
||||
./autogen.sh
|
||||
|
||||
BUILD="`./config.guess`"
|
||||
|
||||
if [ -f ./Makefile ]; then
|
||||
make distclean
|
||||
rm -rf autom4te.cache
|
||||
fi
|
||||
|
||||
if [ ! -d "$CURDIR/build-cross-windows" ]; then
|
||||
mkdir "$CURDIR/build-cross-windows"
|
||||
fi
|
||||
@@ -105,27 +162,28 @@ function doinstall ()
|
||||
cd "$CURDIR/build-cross-windows"
|
||||
make DESTDIR="$INSTALL_DESTDIR" USE_BATCH_FILES=yes install
|
||||
|
||||
cd "$CURDIR/../mcs/mcs"
|
||||
if test -d $CURDIR/mcs; then
|
||||
mcsdir=$CURDIR/mcs
|
||||
else
|
||||
mcsdir=$CURDIR/../mcs
|
||||
fi
|
||||
|
||||
cd "$mcsdir/mcs"
|
||||
for p in $PROFILES; do
|
||||
make DESTDIR="$INSTALL_DESTDIR" PROFILE=$p install || echo "mcs profile $p installation failed"
|
||||
done
|
||||
|
||||
cd "$CURDIR/../mcs/class"
|
||||
cd "$mcsdir/class"
|
||||
for p in $PROFILES; do
|
||||
make DESTDIR="$INSTALL_DESTDIR" PROFILE=$p install || echo "class library profile $p installation failed"
|
||||
done
|
||||
|
||||
cd "$CURDIR/../mcs/tools"
|
||||
cd "$mcsdir/tools"
|
||||
for p in $PROFILES; do
|
||||
make DESTDIR="$INSTALL_DESTDIR" PROFILE=$p install || echo "tools profile $p installation failed"
|
||||
done
|
||||
|
||||
cd "$CURDIR/mono-win32"
|
||||
for dll in $COPY_DLLS; do
|
||||
cp -ap "$CROSS_DLL_DIR"/$dll "$INSTALL_DESTDIR/$MONO_PREFIX/bin"
|
||||
done
|
||||
|
||||
rm -f "$CURDIR/mono-win32-$MONO_RELEASE".zip
|
||||
zip -9r "$CURDIR/mono-win32-$MONO_RELEASE".zip .
|
||||
|
||||
@@ -139,7 +197,9 @@ Usage: build-mingw32.sh [OPTIONS]
|
||||
where OPTIONS are:
|
||||
|
||||
-d DIR Sets the location of directory where MINGW is installed [$CROSS_DIR]
|
||||
-e DIR Sets the location of directory where additional cross develoment packages are installed [${EXTRA_CROSS_DIR:=none}]
|
||||
-m MINGW Sets the MINGW target name to be passed to configure [$MINGW]
|
||||
-p PREFIX Prefix at which Mono is to be installed. Build will append the 'mono-X.Y' string to that path
|
||||
EOF
|
||||
|
||||
exit 1
|
||||
@@ -149,10 +209,12 @@ trap cleanup 0
|
||||
|
||||
pushd . > /dev/null
|
||||
|
||||
while getopts "d:m:h" opt; do
|
||||
while getopts "d:m:e:p:" opt; do
|
||||
case "$opt" in
|
||||
d) CROSS_DIR="$OPTARG" ;;
|
||||
m) MINGW="$OPTARG" ;;
|
||||
e) EXTRA_CROSS_DIR="$OPTARG" ;;
|
||||
p) MONO_PREFIX="$OPTARG" ;;
|
||||
*) usage ;;
|
||||
esac
|
||||
done
|
||||
@@ -160,5 +222,6 @@ done
|
||||
setup
|
||||
build
|
||||
doinstall
|
||||
show_build_info
|
||||
|
||||
popd > /dev/null
|
||||
+42
-53
@@ -6,7 +6,7 @@ AC_CANONICAL_SYSTEM
|
||||
m4_ifdef([_A][M_PROG_TAR],[_A][M_SET_OPTION([tar-ustar])])
|
||||
|
||||
AM_CONFIG_HEADER(config.h)
|
||||
AM_INIT_AUTOMAKE(mono,2.9)
|
||||
AM_INIT_AUTOMAKE(mono,2.11)
|
||||
AM_MAINTAINER_MODE
|
||||
|
||||
API_VER=2.0
|
||||
@@ -561,28 +561,15 @@ AC_ARG_WITH(crosspkgdir, [ --with-crosspkgdir=/path/to/pkg-config/dir Chan
|
||||
fi
|
||||
)
|
||||
|
||||
AC_ARG_WITH([glib],
|
||||
[ --with-glib=embedded|system Choose glib API: system or embedded (default to embedded)],
|
||||
[], [with_glib=embedded])
|
||||
|
||||
ac_configure_args="$ac_configure_args \"CPPFLAGS_FOR_EGLIB=$EGLIB_CPPFLAGS\" \"CFLAGS_FOR_EGLIB=$CFLAGS_FOR_EGLIB\""
|
||||
AC_CONFIG_SUBDIRS(eglib)
|
||||
|
||||
case $with_glib in
|
||||
embedded)
|
||||
GLIB_CFLAGS='-I$(top_srcdir)/eglib/src -I$(top_builddir)/eglib/src'
|
||||
GLIB_LIBS='-L$(top_builddir)/eglib/src -leglib -lm'
|
||||
BUILD_GLIB_CFLAGS="$GLIB_CFLAGS"
|
||||
BUILD_GLIB_LIBS="$GLIB_LIBS"
|
||||
GMODULE_CFLAGS="$GLIB_CFLAGS"
|
||||
GMODULE_LIBS="$GLIB_LIBS"
|
||||
;;
|
||||
system)
|
||||
AC_MSG_ERROR([--with-glib=system is no longer supported as of Mono 2.8])
|
||||
;;
|
||||
*)
|
||||
AC_MSG_ERROR([Invalid argument to --with-glib.])
|
||||
esac
|
||||
GLIB_CFLAGS='-I$(top_srcdir)/eglib/src -I$(top_builddir)/eglib/src'
|
||||
GLIB_LIBS='-L$(top_builddir)/eglib/src -leglib -lm'
|
||||
BUILD_GLIB_CFLAGS="$GLIB_CFLAGS"
|
||||
BUILD_GLIB_LIBS="$GLIB_LIBS"
|
||||
GMODULE_CFLAGS="$GLIB_CFLAGS"
|
||||
GMODULE_LIBS="$GLIB_LIBS"
|
||||
|
||||
AC_SUBST(GLIB_CFLAGS)
|
||||
AC_SUBST(GLIB_LIBS)
|
||||
@@ -851,6 +838,14 @@ case "x$gc" in
|
||||
if test "x$found_gc_enable" = "xyes"; then
|
||||
BOEHM_DEFINES="-DHAVE_GC_ENABLE $BOEHM_DEFINES"
|
||||
fi
|
||||
|
||||
# check whether we need to explicitly allow
|
||||
# thread registering
|
||||
AC_CHECK_LIB(gc, GC_allow_register_threads, found_allow_register_threads="yes",,$libdl)
|
||||
if test "x$found_allow_register_threads" = "xyes"; then
|
||||
AC_DEFINE(HAVE_GC_ALLOW_REGISTER_THREADS, 1, [GC requires thread registration])
|
||||
fi
|
||||
|
||||
;;
|
||||
|
||||
xincluded)
|
||||
@@ -1746,6 +1741,11 @@ if test x$target_win32 = xno; then
|
||||
dnl * on xp+
|
||||
AC_DEFINE(HAVE_GETPROCESSID, 1, [Define if GetProcessId is available])
|
||||
else
|
||||
dnl *********************************
|
||||
dnl *** Checks for Windows compilation ***
|
||||
dnl *********************************
|
||||
AC_CHECK_HEADERS(winternl.h)
|
||||
|
||||
jdk_headers_found=no
|
||||
AC_CHECK_LIB(ws2_32, main, LIBS="$LIBS -lws2_32", AC_ERROR(bad mingw install?))
|
||||
AC_CHECK_LIB(psapi, main, LIBS="$LIBS -lpsapi", AC_ERROR(bad mingw install?))
|
||||
@@ -2066,7 +2066,7 @@ X11="libX11.so"
|
||||
|
||||
sizeof_register="SIZEOF_VOID_P"
|
||||
|
||||
jit_wanted=false
|
||||
jit_wanted=true
|
||||
interp_wanted=false
|
||||
sgen_supported=false
|
||||
case "$host" in
|
||||
@@ -2079,7 +2079,6 @@ case "$host" in
|
||||
arch_target=mips;
|
||||
ACCESS_UNALIGNED="no"
|
||||
JIT_SUPPORTED=yes
|
||||
jit_wanted=true
|
||||
|
||||
AC_MSG_CHECKING(for mips n32)
|
||||
AC_TRY_COMPILE([], [
|
||||
@@ -2099,7 +2098,6 @@ case "$host" in
|
||||
TARGET=X86;
|
||||
arch_target=x86;
|
||||
JIT_SUPPORTED=yes
|
||||
jit_wanted=true
|
||||
case $host_os in
|
||||
solaris*)
|
||||
LIBC="libc.so"
|
||||
@@ -2140,7 +2138,6 @@ case "$host" in
|
||||
TARGET=AMD64;
|
||||
arch_target=amd64;
|
||||
JIT_SUPPORTED=yes
|
||||
jit_wanted=true
|
||||
case $host_os in
|
||||
linux*)
|
||||
sgen_supported=true
|
||||
@@ -2162,7 +2159,6 @@ case "$host" in
|
||||
arch_target=ia64
|
||||
ACCESS_UNALIGNED="no"
|
||||
JIT_SUPPORTED=yes
|
||||
jit_wanted=true
|
||||
LIBC="libc.so.6.1"
|
||||
INTL="libc.so.6.1"
|
||||
AC_CHECK_LIB(unwind, _U_dyn_register, [], [AC_MSG_ERROR(library libunwind not found)])
|
||||
@@ -2183,7 +2179,6 @@ case "$host" in
|
||||
LIBC="libc.so"
|
||||
INTL="libintl.so"
|
||||
esac
|
||||
jit_wanted=true
|
||||
if test x"$GCC" = xyes; then
|
||||
# We don't support v8 cpus
|
||||
CFLAGS="$CFLAGS -Wno-cast-align -mcpu=v9"
|
||||
@@ -2196,7 +2191,6 @@ case "$host" in
|
||||
TARGET=ALPHA;
|
||||
ACCESS_UNALIGNED="no"
|
||||
JIT_SUPPORTED=yes
|
||||
jit_wanted=true
|
||||
arch_target=alpha;
|
||||
CFLAGS="$CFLAGS -mieee -O0"
|
||||
case $host_os in
|
||||
@@ -2223,7 +2217,6 @@ case "$host" in
|
||||
arch_target=hppa;
|
||||
ACCESS_UNALIGNED="no"
|
||||
JIT_SUPPORTED=yes
|
||||
jit_wanted=true
|
||||
;;
|
||||
macppc-*-openbsd* | powerpc*-*-linux* | powerpc-*-openbsd* | \
|
||||
powerpc-*-sysv* | powerpc-*-darwin* | powerpc-*-netbsd* | powerpc-*-freebsd* )
|
||||
@@ -2237,7 +2230,6 @@ case "$host" in
|
||||
fi
|
||||
arch_target=ppc;
|
||||
JIT_SUPPORTED=yes
|
||||
jit_wanted=true
|
||||
case $host_os in
|
||||
linux*|darwin*)
|
||||
sgen_supported=true
|
||||
@@ -2250,7 +2242,6 @@ case "$host" in
|
||||
ACCESS_UNALIGNED="no"
|
||||
JIT_SUPPORTED=yes
|
||||
CPPFLAGS="$CPPFLAGS -DARM_FPU_NONE=1"
|
||||
jit_wanted=true
|
||||
sgen_supported=true
|
||||
;;
|
||||
arm*-linux*)
|
||||
@@ -2258,15 +2249,14 @@ case "$host" in
|
||||
arch_target=arm;
|
||||
ACCESS_UNALIGNED="no"
|
||||
JIT_SUPPORTED=yes
|
||||
jit_wanted=true
|
||||
sgen_supported=true
|
||||
AOT_SUPPORTED="yes"
|
||||
;;
|
||||
s390-*-linux*)
|
||||
TARGET=S390;
|
||||
arch_target=s390;
|
||||
ACCESS_UNALIGNED="yes"
|
||||
JIT_SUPPORTED=yes
|
||||
jit_wanted=true
|
||||
sgen_supported=true
|
||||
# Required CFLAGS for s390[x]. USE_STRING_INLINES is automatic with gcc 4.1
|
||||
CFLAGS="$CFLAGS -mbackchain -D__USE_STRING_INLINES"
|
||||
@@ -2276,7 +2266,6 @@ case "$host" in
|
||||
arch_target=s390x;
|
||||
ACCESS_UNALIGNED="yes"
|
||||
JIT_SUPPORTED=yes
|
||||
jit_wanted=true
|
||||
sgen_supported=true
|
||||
CFLAGS="$CFLAGS -mbackchain -D__USE_STRING_INLINES"
|
||||
;;
|
||||
@@ -2338,6 +2327,9 @@ POWERPC64)
|
||||
AC_DEFINE(TARGET_POWERPC, 1, [...])
|
||||
AC_DEFINE(TARGET_POWERPC64, 1, [...])
|
||||
;;
|
||||
S390x)
|
||||
AC_DEFINE(TARGET_S390X, 1, [...])
|
||||
;;
|
||||
esac
|
||||
|
||||
if test "x$sizeof_register" = "x4"; then
|
||||
@@ -2386,22 +2378,6 @@ fi
|
||||
AC_SUBST(SGEN_DEFINES)
|
||||
AM_CONDITIONAL(SUPPORT_SGEN, test x$buildsgen = xyes)
|
||||
|
||||
AC_ARG_WITH(jit, [ --with-jit=yes,no If you want to build scripts that default to the JIT (defaults to no)],[
|
||||
if test x$withval = xyes; then
|
||||
jit_wanted=true
|
||||
else
|
||||
jit_wanted=false
|
||||
fi
|
||||
])
|
||||
|
||||
AC_ARG_WITH(interp, [ --with-interp=yes,no If you want to build scripts that default to the interpreter (defaults to no)],[
|
||||
if test x$withval = xyes; then
|
||||
interp_wanted=true
|
||||
else
|
||||
interp_wanted=false
|
||||
fi
|
||||
])
|
||||
|
||||
USEJIT=false
|
||||
if test x$JIT_SUPPORTED = xyes; then
|
||||
if $jit_wanted; then
|
||||
@@ -2541,9 +2517,18 @@ if test ${TARGET} = ARM && test x$cross_compiling = xno && test x$enable_mcs_bui
|
||||
dnl ******************************************
|
||||
AC_MSG_CHECKING(which FPU to use)
|
||||
|
||||
AC_TRY_COMPILE([], [
|
||||
__asm__ ("ldfd f0, [r0]");
|
||||
], fpu=FPA, fpu=NONE)
|
||||
ORIG_CFLAGS=$CFLAGS
|
||||
CFLAGS="$CFLAGS -mfpu=vfp -mfloat-abi=softfp"
|
||||
AC_TRY_RUN([
|
||||
int main () { __asm__ ("faddd d7, d6, d7"); return 0; }
|
||||
], fpu=VFP, fpu=NONE)
|
||||
CFLAGS=$ORIG_CFLAGS
|
||||
|
||||
if test x$fpu = xNONE; then
|
||||
AC_TRY_COMPILE([], [
|
||||
__asm__ ("ldfd f0, [r0]");
|
||||
], fpu=FPA, fpu=NONE)
|
||||
fi
|
||||
|
||||
AC_MSG_RESULT($fpu)
|
||||
CPPFLAGS="$CPPFLAGS -DARM_FPU_$fpu=1"
|
||||
@@ -2964,6 +2949,11 @@ fi
|
||||
enable_system_aot=yes
|
||||
fi
|
||||
|
||||
if test "x$enable_loadedllvm" = "xyes"; then
|
||||
# This seems to fail on the x86 buildbots
|
||||
enable_system_aot=no
|
||||
fi
|
||||
|
||||
if test x$host_win32 = xno -a x$platform_darwin != xyes -a x$enable_system_aot = xyes; then
|
||||
echo "ENABLE_AOT = 1" >> $mcs_topdir/build/config.make
|
||||
fi
|
||||
@@ -3004,7 +2994,6 @@ echo "
|
||||
|
||||
Engine:
|
||||
GC: $gc_msg
|
||||
GLIB: $with_glib
|
||||
TLS: $with_tls
|
||||
SIGALTSTACK: $with_sigaltstack
|
||||
Engine: $jit_status
|
||||
|
||||
@@ -288,6 +288,8 @@ def lookup_pretty_printer(val):
|
||||
return ObjectPrinter (val)
|
||||
if t == "string":
|
||||
return StringPrinter (val)
|
||||
if t == "MonoString *":
|
||||
return StringPrinter (val)
|
||||
if t == "MonoMethod *":
|
||||
return MonoMethodPrinter (val)
|
||||
if t == "MonoClass *":
|
||||
|
||||
@@ -84,6 +84,10 @@
|
||||
<section name="serviceHostingEnvironment" type="System.ServiceModel.Configuration.ServiceHostingEnvironmentSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<section name="services" type="System.ServiceModel.Configuration.ServicesSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
</sectionGroup>
|
||||
<sectionGroup name="system.transactions" type="System.Transactions.Configuration.TransactionsSectionGroup, System.Transactions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null">
|
||||
<section name="defaultSettings" type="System.Transactions.Configuration.DefaultSettingsSection, System.Transactions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null"/>
|
||||
<section name="machineSettings" type="System.Transactions.Configuration.MachineSettingsSection, System.Transactions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null" allowDefinition="MachineOnly" allowExeDefinition="MachineOnly"/>
|
||||
</sectionGroup>
|
||||
<section name="system.webServer" type="System.Configuration.IgnoreSection, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<section name="uri" type="System.Configuration.UriSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
</configSections>
|
||||
|
||||
@@ -98,6 +98,10 @@
|
||||
<section name="routing" type="System.ServiceModel.Routing.Configuration.RoutingSection, System.ServiceModel.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
|
||||
<section name="protocolMapping" type="System.ServiceModel.Configuration.ProtocolMappingSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
|
||||
</sectionGroup>
|
||||
<sectionGroup name="system.transactions" type="System.Transactions.Configuration.TransactionsSectionGroup, System.Transactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null">
|
||||
<section name="defaultSettings" type="System.Transactions.Configuration.DefaultSettingsSection, System.Transactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null"/>
|
||||
<section name="machineSettings" type="System.Transactions.Configuration.MachineSettingsSection, System.Transactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null" allowDefinition="MachineOnly" allowExeDefinition="MachineOnly"/>
|
||||
</sectionGroup>
|
||||
<section name="system.webServer" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<section name="uri" type="System.Configuration.UriSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<sectionGroup name="system.runtime.caching" type="System.Runtime.Caching.Configuration.CachingSectionGroup, System.Runtime.Caching, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
|
||||
+1
-1
@@ -126,7 +126,7 @@ if test "x$have_iso_varargs" = "xyes"; then
|
||||
fi
|
||||
AC_SUBST(G_HAVE_ISO_VARARGS)
|
||||
|
||||
AC_CHECK_HEADERS(getopt.h sys/time.h sys/wait.h pwd.h langinfo.h iconv.h localcharset.h)
|
||||
AC_CHECK_HEADERS(getopt.h sys/time.h sys/wait.h pwd.h langinfo.h iconv.h localcharset.h sys/types.h)
|
||||
AC_CHECK_HEADER(alloca.h, [HAVE_ALLOCA_H=1], [HAVE_ALLOCA_H=0])
|
||||
AC_SUBST(HAVE_ALLOCA_H)
|
||||
|
||||
|
||||
@@ -24,7 +24,6 @@ os_files = $(unix_files)
|
||||
endif
|
||||
|
||||
libeglib_la_SOURCES = \
|
||||
eglib-config.h \
|
||||
eglib-remap.h \
|
||||
sort.frag.h \
|
||||
glib.h \
|
||||
|
||||
@@ -579,13 +579,13 @@ g_direct_hash (gconstpointer v1)
|
||||
gboolean
|
||||
g_int_equal (gconstpointer v1, gconstpointer v2)
|
||||
{
|
||||
return GPOINTER_TO_INT (v1) == GPOINTER_TO_INT (v2);
|
||||
return *(gint *)v1 == *(gint *)v2;
|
||||
}
|
||||
|
||||
guint
|
||||
g_int_hash (gconstpointer v1)
|
||||
{
|
||||
return GPOINTER_TO_UINT(v1);
|
||||
return *(guint *)v1;
|
||||
}
|
||||
|
||||
gboolean
|
||||
|
||||
@@ -16,6 +16,10 @@
|
||||
/* For pid_t */
|
||||
#ifndef WIN32
|
||||
#include <unistd.h>
|
||||
#else
|
||||
#ifdef HAVE_SYS_TYPES_H
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -28,6 +32,11 @@
|
||||
#include <alloca.h>
|
||||
#endif
|
||||
|
||||
#ifdef WIN32
|
||||
/* For alloca */
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
|
||||
#ifndef offsetof
|
||||
# define offsetof(s_name,n_name) (size_t)(char *)&(((s_name*)0)->m_name)
|
||||
#endif
|
||||
|
||||
@@ -338,6 +338,7 @@ g_utf16_to_utf8 (const gunichar2 *str, glong len, glong *items_read, glong *item
|
||||
} else {
|
||||
surrogate = 0;
|
||||
/* invalid surrogate pair */
|
||||
++in_pos;
|
||||
continue;
|
||||
}
|
||||
} else {
|
||||
@@ -354,6 +355,7 @@ g_utf16_to_utf8 (const gunichar2 *str, glong len, glong *items_read, glong *item
|
||||
else if (ch >= 0xD800 && ch <= 0xDBFF)
|
||||
surrogate = ch;
|
||||
else if (ch >= 0xDC00 && ch <= 0xDFFF) {
|
||||
++in_pos;
|
||||
/* invalid surrogate pair */
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ int vasprintf(char **ret, const char *fmt, va_list ap)
|
||||
size_t buflen;
|
||||
va_list ap2;
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#if defined(_MSC_VER) || defined(__MINGW64_VERSION_MAJOR)
|
||||
ap2 = ap;
|
||||
len = _vscprintf(fmt, ap2); // NOTE MS specific extension ( :-( )
|
||||
#else
|
||||
|
||||
@@ -423,8 +423,8 @@ void GC_print_callers GC_PROTO((struct callinfo info[NFRAMES]));
|
||||
# else
|
||||
# if defined(GC_SOLARIS_THREADS) || defined(GC_WIN32_THREADS) \
|
||||
|| defined(GC_PTHREADS)
|
||||
void GC_stop_world();
|
||||
void GC_start_world();
|
||||
void GC_stop_world(void);
|
||||
void GC_start_world(void);
|
||||
# define STOP_WORLD() GC_stop_world()
|
||||
# define START_WORLD() GC_start_world()
|
||||
# else
|
||||
@@ -1840,7 +1840,7 @@ void GC_dump GC_PROTO((void));
|
||||
# ifdef __DMC__
|
||||
GC_API void GC_noop(...);
|
||||
# else
|
||||
GC_API void GC_noop();
|
||||
GC_API void GC_noop(void*,...);
|
||||
# endif
|
||||
# endif
|
||||
|
||||
@@ -1929,17 +1929,17 @@ void GC_err_puts GC_PROTO((GC_CONST char *s));
|
||||
/* GC_notify_all_builder() is called when GC_fl_builder_count */
|
||||
/* reaches 0. */
|
||||
|
||||
extern void GC_acquire_mark_lock();
|
||||
extern void GC_release_mark_lock();
|
||||
extern void GC_notify_all_builder();
|
||||
extern void GC_acquire_mark_lock(void);
|
||||
extern void GC_release_mark_lock(void);
|
||||
extern void GC_notify_all_builder(void);
|
||||
/* extern void GC_wait_builder(); */
|
||||
extern void GC_wait_for_reclaim();
|
||||
extern void GC_wait_for_reclaim(void);
|
||||
|
||||
extern word GC_fl_builder_count; /* Protected by mark lock. */
|
||||
# endif /* PARALLEL_MARK || THREAD_LOCAL_ALLOC */
|
||||
# ifdef PARALLEL_MARK
|
||||
extern void GC_notify_all_marker();
|
||||
extern void GC_wait_marker();
|
||||
extern void GC_notify_all_marker(void);
|
||||
extern void GC_wait_marker(void);
|
||||
extern word GC_mark_no; /* Protected by mark lock. */
|
||||
|
||||
extern void GC_help_marker(word my_mark_no);
|
||||
|
||||
@@ -2480,7 +2480,7 @@
|
||||
extern void *ps3_get_mem (size_t size);
|
||||
# define GET_MEM(bytes) (struct hblk*) ps3_get_mem (bytes)
|
||||
# else
|
||||
extern ptr_t GC_unix_get_mem();
|
||||
extern ptr_t GC_unix_get_mem(word size);
|
||||
# define GET_MEM(bytes) (struct hblk *)GC_unix_get_mem(bytes)
|
||||
#endif
|
||||
# endif
|
||||
|
||||
@@ -102,7 +102,7 @@ GC_thread GC_lookup_thread(pthread_t id);
|
||||
|
||||
void GC_thread_deregister_foreign (void *data);
|
||||
|
||||
void GC_stop_init();
|
||||
void GC_stop_init(void);
|
||||
|
||||
extern GC_bool GC_in_thread_creation;
|
||||
/* We may currently be in thread creation or destruction. */
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@
|
||||
#ifdef __WATCOMC__
|
||||
void GC_noop(void *p, ...) {}
|
||||
#else
|
||||
void GC_noop() {}
|
||||
void GC_noop(void *p, ...) {}
|
||||
#endif
|
||||
|
||||
/* Single argument version, robust against whole program analysis. */
|
||||
|
||||
+19
-1
@@ -6,7 +6,7 @@
|
||||
.SH NAME
|
||||
csharp, gsharp \- Interactive C# Shell
|
||||
.SH SYNOPSIS
|
||||
.B csharp [--attach PID] [file1 [file2]]
|
||||
.B csharp [--attach PID] [-e EXPRESSION] [file1 [file2]]
|
||||
[options]
|
||||
.P
|
||||
.B gsharp [file1 [file2]]
|
||||
@@ -29,7 +29,22 @@ target process.
|
||||
.PP
|
||||
Files specified in the command line will be loaded and executed as
|
||||
scripts.
|
||||
.PP
|
||||
Starting with Mono 2.10, the
|
||||
.I csharp
|
||||
command can be used as an interpreter executed by executables flagged
|
||||
with the Unix execute attribute. To do this, make the first line of
|
||||
your C# source code look like this:
|
||||
.nf
|
||||
"#!/usr/bin/csharp"
|
||||
Console.WriteLine ("Hello, World");
|
||||
.fi
|
||||
.SH OPTIONS
|
||||
The commands accept all of the commands that are available to the
|
||||
.I mcs
|
||||
command, so you can reference assemblies, specify paths, language
|
||||
level and so on from the command line. In addition, the following
|
||||
command line options are supported:
|
||||
.TP
|
||||
.I "\-\-attach"
|
||||
This is an advanced option and should only be used if you have a deep
|
||||
@@ -42,6 +57,9 @@ special measures to avoid crashing the target application while using
|
||||
it. For example, you might have to take the proper locks before
|
||||
issuing any commands that might affect the target process state, or
|
||||
sending commands through a method dispatcher.
|
||||
.TP
|
||||
.I "\-e" EXPRESSION
|
||||
This will evaluate the specified C# EXPRESSION and exit
|
||||
.SH OPERATION
|
||||
Once you launch the csharp command, you will be greeted with the
|
||||
interactive prompt:
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
..
|
||||
.TH mcs 1 "6 January 2001"
|
||||
.SH NAME
|
||||
mcs, gmcs, smcs \- Mono C# Compiler (1.0, 2.0, Moonlight)
|
||||
mcs \- Mono C# Compiler
|
||||
.SH SYNOPSIS
|
||||
.B mcs
|
||||
[option] [source-files]
|
||||
@@ -17,23 +17,8 @@ prepending the @ symbol to the response file name.
|
||||
.PP
|
||||
The
|
||||
.I mcs
|
||||
compiler is used to compile against the 1.x profile and implements
|
||||
C# 1.0 and parts of C# 2.0 and C# 3.0 specification which do not depend
|
||||
on generics.
|
||||
.PP
|
||||
The
|
||||
.I gmcs
|
||||
compiler is used to compile against the 2.0 profile and implements
|
||||
the complete C# 3.0 specification.
|
||||
.PP
|
||||
The
|
||||
.I smcs
|
||||
compiler is used to compile against the Silverlight/Moonlight profile.
|
||||
This profile is designed to be used for creating Silverlight/Moonlight
|
||||
applications that will run on a web browser. The API exposed by this
|
||||
profile is a small subset of the 3.5 API (even if it is commonly
|
||||
referred as the 2.1 API, this API is a small subset of 2.0 with a few
|
||||
extensions).
|
||||
compiler is used to compile against the latest Mono Base Class Library
|
||||
version and fully implements C# 1.0, 2.0, 3.0 and 4.0 specifications.
|
||||
.PP
|
||||
See the section on packages for more information.
|
||||
.PP
|
||||
@@ -148,6 +133,11 @@ generate an exception that can be caught by a debugger.
|
||||
This flag is ignored by Mono's C# compiler and is present only to
|
||||
allow MCS to be used as a CSC replacement for msbuild/xbuild.
|
||||
.TP
|
||||
.I \-fullpaths
|
||||
Any source code error or warning issued by the compiler includes file
|
||||
name only by default. This option causes compiler to issue absolute file
|
||||
path instead.
|
||||
.TP
|
||||
.I \-keyfile:KEYFILE
|
||||
Strongname (sign) the output assembly using the key pair present in
|
||||
the specified strong name key file (snk). A full key pair is required
|
||||
@@ -190,13 +180,12 @@ Restrict the compiler to use only the features available in C# 3.0
|
||||
(a superset of ISO-1 and ISO-2).
|
||||
.TP
|
||||
.I "future"
|
||||
Enables features from upcoming versions of the language. As of
|
||||
May 2009 this includes support for C# 4 as released in Visual Studio 2010 beta 1.
|
||||
Enables unstable features from upcoming versions of the language.
|
||||
.PP
|
||||
Notice that this flag only controls the language features available to
|
||||
the programmer, it does not control the kind of assemblies produced.
|
||||
Programs compiled with mcs will reference the 1.1 APIs, Programs
|
||||
compiled with gmcs reference the 2.0 APIs.
|
||||
Notice that this flag only restricts the language features available to
|
||||
the programmer. A version of produced assemblies can be controled using
|
||||
.I SDK
|
||||
option.
|
||||
.ne
|
||||
.RE
|
||||
.TP
|
||||
@@ -262,11 +251,7 @@ libraries).
|
||||
.TP
|
||||
.I \-pkg:silver
|
||||
References the assemblies for creating Moonlight/Silverlight
|
||||
applications. This is automatically used when using the
|
||||
.I smcs
|
||||
compiler, but it is here when developers want to use it with the
|
||||
.I gmcs
|
||||
compiler.
|
||||
applications.
|
||||
.TP
|
||||
.I \-pkg:silverdesktop
|
||||
Use this option to create Moonlight/Silverlight applications that
|
||||
@@ -351,6 +336,14 @@ shell will perform globbing, so you might want to use it like this:
|
||||
$ mcs -recurse:'*.cs'
|
||||
.fi
|
||||
.TP
|
||||
.I \-sdk:VERSION
|
||||
Used to specify the version of Base Class Library assemblies used for
|
||||
compilation. Following predefined values are valid: 2, 4 (default) as
|
||||
well as any custom value. The predefined version number means which
|
||||
.NET version should the produced assembly be compatible with. When
|
||||
custom value is specified mcs will try to find Base Class Libraries
|
||||
in the mono installed location PREFIX/lib/mono/<value>.
|
||||
.TP
|
||||
.I \-\-shell
|
||||
Starts up the compiler in interactive mode, providing a C# shell for
|
||||
statements and expressions. A shortcut is to use the
|
||||
@@ -413,10 +406,6 @@ current directory, the compiler base directory and if the assembly is
|
||||
not found in any of those places in the directories specified as
|
||||
arguments to the -lib: command argument.
|
||||
.PP
|
||||
Depending on the invocation for the C# compiler (mcs, gmcs, or smcs)
|
||||
you will get a default set of libraries and versions of those
|
||||
libraries that are referenced.
|
||||
.PP
|
||||
The compiler uses the library path to locate libraries, and is able to
|
||||
reference libraries from a particular package if that directory is
|
||||
used. To simplify the use of packages, the C# compiler includes the
|
||||
@@ -539,7 +528,7 @@ the MIT X11. Please read the accompanying `COPYING' file for details.
|
||||
Alternative licensing for the compiler is available from Novell.
|
||||
.PP
|
||||
.SH SEE ALSO
|
||||
csharp(1), mdb(1), mono(1), mopen(1), mint(1), pkg-config(1),sn(1)
|
||||
csharp(1), mdb(1), mono(1), mopen(1), pkg-config(1), sn(1)
|
||||
.PP
|
||||
.SH BUGS
|
||||
To report bugs in the compiler, you must file them on our bug tracking
|
||||
|
||||
+35
-8
@@ -1,11 +1,11 @@
|
||||
.\"
|
||||
.\" mono manual page.
|
||||
.\" Copyright 2003 Ximian, Inc.
|
||||
.\" Copyright 2004-2009 Novell, Inc.
|
||||
.\" Copyright 2004-2011 Novell, Inc.
|
||||
.\" Author:
|
||||
.\" Miguel de Icaza ([email protected])
|
||||
.\"
|
||||
.TH Mono "Mono 2.5"
|
||||
.TH Mono "Mono 2.11"
|
||||
.SH NAME
|
||||
mono \- Mono's ECMA-CLI native code generator (Just-in-Time and Ahead-of-Time)
|
||||
.SH SYNOPSIS
|
||||
@@ -163,11 +163,11 @@ hardware configurations like the cell phones and video gaming
|
||||
consoles).
|
||||
.TP
|
||||
.I static
|
||||
Create an ELF object file (.o) which can be statically linked into an executable
|
||||
when embedding the mono runtime. When this option is used, the object file needs to
|
||||
be registered with the embedded runtime using the mono_aot_register_module function
|
||||
which takes as its argument the mono_aot_module_<ASSEMBLY NAME>_info global symbol
|
||||
from the object file:
|
||||
Create an ELF object file (.o) or .s file which can be statically linked into an
|
||||
executable when embedding the mono runtime. When this option is used, the object file
|
||||
needs to be registered with the embedded runtime using the mono_aot_register_module
|
||||
function which takes as its argument the mono_aot_module_<ASSEMBLY NAME>_info global
|
||||
symbol from the object file:
|
||||
|
||||
.nf
|
||||
extern void *mono_aot_module_hello_info;
|
||||
@@ -175,6 +175,23 @@ extern void *mono_aot_module_hello_info;
|
||||
mono_aot_register_module (mono_aot_module_hello_info);
|
||||
.fi
|
||||
.ne
|
||||
.TP
|
||||
.I mtriple=<TRIPLE>
|
||||
Use the GNU style target triple <TRIPLE> to determine some code generation options, i.e.
|
||||
--mtriple=armv7-linux-gnueabi will generate code that targets ARMv7. This is currently
|
||||
only supported by the ARM backend. In LLVM mode, this triple is passed on to the LLVM
|
||||
llc compiler.
|
||||
.TP
|
||||
.I tool-prefix=<PREFIX>
|
||||
Prepends <PREFIX> to the name of tools ran by the AOT compiler, i.e. 'as'/'ld'. For
|
||||
example, --tool=prefix=arm-linux-gnueabi- will make the AOT compiler run
|
||||
'arm-linux-gnueabi-as' instead of 'as'.
|
||||
.TP
|
||||
.I llvm-path=<PREFIX>
|
||||
Same for the llvm tools 'opt' and 'llc'.
|
||||
.TP
|
||||
.I stats
|
||||
Print various stats collected during AOT compilation.
|
||||
|
||||
.PP
|
||||
For more information about AOT, see: http://www.mono-project.com/AOT
|
||||
@@ -1021,6 +1038,16 @@ Enables or disables concurrent sweep for the Mark&Sweep collector. If
|
||||
enabled, the sweep phase of the garbage collection is done in a thread
|
||||
concurrently with the application. Concurrent sweep is disabled by
|
||||
default.
|
||||
.TP
|
||||
\fBstack-mark=\fImark-mode\fR
|
||||
Specifies how application threads should be scanned. Options are
|
||||
`precise` and `conservative`. Precise marking allow the collector
|
||||
to know what values on stack are references and what are not.
|
||||
Conservative marking threats all values as potentially references
|
||||
and leave them untouched. Precise marking reduces floating garbage
|
||||
and can speed up nursery collection and allocation rate, it has
|
||||
the downside of requiring a significant extra memory per compiled
|
||||
method. The right option, unfortunately, requires experimentation.
|
||||
.ne
|
||||
.RE
|
||||
.TP
|
||||
@@ -1548,7 +1575,7 @@ http://www.mono-project.com
|
||||
.SH SEE ALSO
|
||||
.PP
|
||||
certmgr(1), csharp(1), mcs(1), mdb(1), monocov(1), monodis(1),
|
||||
mono-config(5), mozroots(1), pdb2mdb(1), xsp(1), mod_mono(8).
|
||||
mono-config(5), mozroots(1), mprof-report(1), pdb2mdb(1), xsp(1), mod_mono(8).
|
||||
.PP
|
||||
For more information on AOT:
|
||||
http://www.mono-project.com/AOT
|
||||
|
||||
+8
-3
@@ -73,9 +73,10 @@ to $prefix/lib/mono/xbuild . When used in Import, like:
|
||||
|
||||
xbuild tries various values for the msbuild property $(MSBuildExtensionsPath), in order:
|
||||
|
||||
1. Paths specified in the environment variable $MSBuildExtensionsPath.
|
||||
2. $XDG_CONFIG_HOME/xbuild/tasks (or Environment.SpecialFolder.ApplicationData)
|
||||
3. $prefix/lib/mono/xbuild (default location)
|
||||
1. /Library/Frameworks/Mono.framework/External/xbuild on Mac OSX.
|
||||
2. Paths specified in the environment variable $MSBuildExtensionsPath.
|
||||
3. $XDG_CONFIG_HOME/xbuild/tasks (or Environment.SpecialFolder.ApplicationData)
|
||||
4. $prefix/lib/mono/xbuild (default location)
|
||||
|
||||
Anywhere else in the project files, $(MSBuildExtensionsPath) will always resolve to the default
|
||||
location. This is a xbuild-only feature.
|
||||
@@ -111,6 +112,10 @@ For example, you could set this variable from your shell:
|
||||
You can disable the built-in color scheme by setting this variable to
|
||||
"disable".
|
||||
|
||||
.SH NOTES
|
||||
On Mac OSX, for locating pkg-config (.pc) files, xbuild additionally
|
||||
looks in "/Library/Frameworks/Mono.framework/External/pkgconfig" .
|
||||
|
||||
.SH SEE ALSO
|
||||
.BR mono(1), mcs(1)
|
||||
.SH COPYRIGHT
|
||||
|
||||
+2
-3
@@ -7,9 +7,9 @@
|
||||
TestResult-*.log
|
||||
TestResult-*.xml
|
||||
TestResult*.xml
|
||||
errors/?mcs.log
|
||||
errors/*.log
|
||||
errors/dummy.xml
|
||||
tests/?mcs.log
|
||||
tests/*.log
|
||||
tests/gtest-*.dll
|
||||
tests/test-*.dll
|
||||
tests/xml-*.xml
|
||||
@@ -17,7 +17,6 @@ tests/?xml-*.xml
|
||||
tests/test-*.netmodule
|
||||
tests/data.xml
|
||||
class/Mono.Data.Sqlite/test.db
|
||||
class/Mono.CSharp/Mono.CSharp.dll.sources
|
||||
class/RabbitMQ.Client/docs/specs/autogenerated-api-0-8.cs
|
||||
class/RabbitMQ.Client/docs/specs/autogenerated-api-0-9.cs
|
||||
class/RabbitMQ.Client/docs/specs/autogenerated-api-qpid-0-8.cs
|
||||
|
||||
+15
-12
@@ -2,14 +2,16 @@ thisdir := .
|
||||
|
||||
SUBDIRS := build jay mcs class nunit24 ilasm tools tests errors docs
|
||||
|
||||
basic_SUBDIRS := build jay mcs class tools
|
||||
net_2_0_SUBDIRS := build class nunit24 ilasm tools tests errors mcs
|
||||
moonlight_raw_SUBDIRS := build class tools mcs
|
||||
moonlight_SUBDIRS := tools
|
||||
monodroid_SUBDIRS := build class mcs
|
||||
monotouch_SUBDIRS := build class mcs
|
||||
# Resgen is corlib specific tool
|
||||
|
||||
basic_SUBDIRS := build jay mcs class
|
||||
build_SUBDIRS := build class mcs class/aot-compiler tools
|
||||
net_2_0_SUBDIRS := build class nunit24 ilasm tools tests errors
|
||||
moonlight_raw_SUBDIRS := build class
|
||||
monodroid_SUBDIRS := build class
|
||||
monotouch_SUBDIRS := build class
|
||||
net_3_5_SUBDIRS := build class tools/xbuild
|
||||
net_4_0_SUBDIRS := build class nunit24 ilasm tools tests errors mcs docs
|
||||
net_4_0_SUBDIRS := build mcs class nunit24 ilasm tools tests errors docs
|
||||
|
||||
# List of test subdirs that should pass 100%
|
||||
centum_tests := \
|
||||
@@ -100,13 +102,14 @@ profiles-do--run-test:
|
||||
|
||||
# Orchestrate the bootstrap here.
|
||||
_boot_ = all clean install
|
||||
$(_boot_:%=profile-do--net_4_0--%): profile-do--net_4_0--%: profile-do--basic--%
|
||||
$(_boot_:%=profile-do--net_4_0--%): profile-do--net_4_0--%: profile-do--build--%
|
||||
$(_boot_:%=profile-do--net_3_5--%): profile-do--net_3_5--%: profile-do--net_2_0--%
|
||||
$(_boot_:%=profile-do--moonlight--%): profile-do--moonlight--%: profile-do--moonlight_raw--%
|
||||
$(_boot_:%=profile-do--monodroid--%): profile-do--monodroid--%: profile-do--basic--%
|
||||
$(_boot_:%=profile-do--monotouch--%): profile-do--monotouch--%: profile-do--basic--%
|
||||
$(_boot_:%=profile-do--moonlight_raw--%): profile-do--moonlight_raw--%: profile-do--basic--%
|
||||
$(_boot_:%=profile-do--net_2_0--%): profile-do--net_2_0--%: profile-do--basic--%
|
||||
$(_boot_:%=profile-do--monodroid--%): profile-do--monodroid--%: profile-do--build--%
|
||||
$(_boot_:%=profile-do--monotouch--%): profile-do--monotouch--%: profile-do--build--%
|
||||
$(_boot_:%=profile-do--moonlight_raw--%): profile-do--moonlight_raw--%:
|
||||
$(_boot_:%=profile-do--net_2_0--%): profile-do--net_2_0--%: profile-do--build--%
|
||||
$(_boot_:%=profile-do--build--%): profile-do--build--%: profile-do--basic--%
|
||||
|
||||
testcorlib:
|
||||
@cd class/corlib && $(MAKE) test run-test
|
||||
|
||||
+1
-1
@@ -17,9 +17,9 @@ common/Consts.cs: common/Consts.cs.in $(wildcard config.make)
|
||||
PLATFORMS = darwin linux win32
|
||||
PROFILES = \
|
||||
basic \
|
||||
build \
|
||||
net_2_0 \
|
||||
moonlight_raw \
|
||||
moonlight \
|
||||
net_3_5 \
|
||||
net_4_0
|
||||
|
||||
|
||||
@@ -4,7 +4,9 @@
|
||||
|
||||
base_prog = $(notdir $(PROGRAM))
|
||||
prog_dir := $(filter-out . ./, $(dir $(PROGRAM)))
|
||||
sourcefile = $(base_prog).sources
|
||||
ifndef sourcefile
|
||||
sourcefile := $(base_prog).sources
|
||||
endif
|
||||
base_prog_config := $(wildcard $(base_prog).config.$(PROFILE))
|
||||
ifndef base_prog_config
|
||||
base_prog_config := $(wildcard $(base_prog).config)
|
||||
@@ -132,14 +134,14 @@ all-local: $(makefrag) $(extra_targets)
|
||||
|
||||
csproj-local:
|
||||
config_file=`basename $(PROGRAM) .exe`-$(PROFILE).input; \
|
||||
echo $(thisdir):$$config_file >> $(topdir)/../mono/msvc/scripts/order; \
|
||||
echo $(thisdir):$$config_file >> $(topdir)/../msvc/scripts/order; \
|
||||
(echo $(is_boot); \
|
||||
echo $(MCS); \
|
||||
echo $(USE_MCS_FLAGS) $(LIBRARY_FLAGS) $(LIB_MCS_FLAGS); \
|
||||
echo $(PROGRAM); \
|
||||
echo $(BUILT_SOURCES_cmdline); \
|
||||
echo $(build_lib); \
|
||||
echo $(response)) > $(topdir)/../mono/msvc/scripts/inputs/$$config_file
|
||||
echo $(response)) > $(topdir)/../msvc/scripts/inputs/$$config_file
|
||||
|
||||
|
||||
ifneq ($(response),$(sourcefile))
|
||||
|
||||
@@ -66,10 +66,12 @@ library_CLEAN_FILES += $(build_lib) $(build_lib).so $(build_lib).mdb $(build_lib
|
||||
ifdef NO_SIGN_ASSEMBLY
|
||||
SN = :
|
||||
else
|
||||
sn = $(topdir)/class/lib/basic/sn.exe
|
||||
SN = $(Q) MONO_PATH="$(topdir)/class/lib/basic$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(RUNTIME_FLAGS) $(sn)
|
||||
ifeq ("$(SN)","")
|
||||
sn = $(topdir)/class/lib/$(BUILD_TOOLS_PROFILE)/sn.exe
|
||||
SN = $(Q) MONO_PATH="$(topdir)/class/lib/$(BUILD_TOOLS_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(RUNTIME_FLAGS) $(sn)
|
||||
SNFLAGS = -q
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(PLATFORM), win32)
|
||||
GACDIR = `cygpath -w $(mono_libdir)`
|
||||
@@ -92,14 +94,14 @@ endif
|
||||
|
||||
csproj-local:
|
||||
config_file=`basename $(LIBRARY) .dll`-$(PROFILE).input; \
|
||||
echo $(thisdir):$$config_file >> $(topdir)/../mono/msvc/scripts/order; \
|
||||
echo $(thisdir):$$config_file >> $(topdir)/../msvc/scripts/order; \
|
||||
(echo $(is_boot); \
|
||||
echo $(MCS); \
|
||||
echo $(USE_MCS_FLAGS) $(LIBRARY_FLAGS) $(LIB_MCS_FLAGS); \
|
||||
echo $(LIBRARY_NAME); \
|
||||
echo $(BUILT_SOURCES_cmdline); \
|
||||
echo $(build_lib); \
|
||||
echo $(response)) > $(topdir)/../mono/msvc/scripts/inputs/$$config_file
|
||||
echo $(response)) > $(topdir)/../msvc/scripts/inputs/$$config_file
|
||||
|
||||
|
||||
install-local: all-local
|
||||
|
||||
@@ -12,7 +12,6 @@ PLATFORM_TEST_HARNESS_EXCLUDES = NotOnMac,
|
||||
EXTERNAL_MCS = gmcs
|
||||
EXTERNAL_MBAS = mbas
|
||||
EXTERNAL_RUNTIME = mono
|
||||
RESGEN = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_RESGEN)
|
||||
#ILDISASM = monodis
|
||||
ILDISASM = false
|
||||
|
||||
|
||||
@@ -12,7 +12,6 @@ PLATFORM_TEST_HARNESS_EXCLUDES =
|
||||
EXTERNAL_MCS = gmcs
|
||||
EXTERNAL_MBAS = mbas
|
||||
EXTERNAL_RUNTIME = mono
|
||||
RESGEN = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_RESGEN)
|
||||
#ILDISASM = monodis
|
||||
ILDISASM = false
|
||||
|
||||
|
||||
@@ -14,9 +14,7 @@ EXTERNAL_MBAS = vbc.exe
|
||||
EXTERNAL_RUNTIME =
|
||||
|
||||
# Disabled since it needs the SDK
|
||||
#RESGEN = resgen.exe
|
||||
#ILDISASM = ildasm.exe /test
|
||||
RESGEN = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_RESGEN)
|
||||
|
||||
#ILDISASM = monodis.bat
|
||||
## Gross hack
|
||||
|
||||
@@ -6,9 +6,11 @@ with_mono_path_monolite = MONO_PATH="$(topdir)/class/lib/monolite$(PLATFORM_PATH
|
||||
monolite_flag := $(depsdir)/use-monolite
|
||||
use_monolite := $(wildcard $(monolite_flag))
|
||||
|
||||
MONOLITE_MCS = $(topdir)/class/lib/monolite/basic.exe
|
||||
|
||||
ifdef use_monolite
|
||||
PROFILE_RUNTIME = $(with_mono_path_monolite) $(RUNTIME)
|
||||
BOOTSTRAP_MCS = $(PROFILE_RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/monolite/mcs.exe
|
||||
BOOTSTRAP_MCS = $(PROFILE_RUNTIME) $(RUNTIME_FLAGS) $(MONOLITE_MCS)
|
||||
else
|
||||
PROFILE_RUNTIME = $(EXTERNAL_RUNTIME)
|
||||
BOOTSTRAP_MCS = $(EXTERNAL_MCS)
|
||||
@@ -60,7 +62,7 @@ do-profile-check: $(depsdir)/.stamp
|
||||
$(MAKE) $(MAKE_Q) $(PROFILE_OUT) || ok=false; \
|
||||
rm -f $(PROFILE_EXE) $(PROFILE_OUT); \
|
||||
if $$ok; then :; else \
|
||||
if test -f $(topdir)/class/lib/monolite/mcs.exe; then \
|
||||
if test -f $(MONOLITE_MCS); then \
|
||||
$(MAKE) -s do-profile-check-monolite ; \
|
||||
else \
|
||||
echo "*** The compiler '$(BOOTSTRAP_MCS)' doesn't appear to be usable." 1>&2; \
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
# -*- makefile -*-
|
||||
|
||||
BOOTSTRAP_PROFILE = basic
|
||||
BUILD_TOOLS_PROFILE = basic
|
||||
|
||||
INTERNAL_GMCS = $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/$(BUILD_TOOLS_PROFILE)/basic.exe
|
||||
BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_GMCS)
|
||||
MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_GMCS)
|
||||
|
||||
# nuttzing!
|
||||
|
||||
profile-check:
|
||||
@:
|
||||
|
||||
DEFAULT_REFERENCES = -r:mscorlib.dll
|
||||
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0 -d:NET_3_0 -d:NET_3_5 -d:NET_4_0 -nowarn:1699 -nostdlib -lib:$(topdir)/class/lib/$(PROFILE) $(DEFAULT_REFERENCES)
|
||||
|
||||
NO_SIGN_ASSEMBLY = yes
|
||||
NO_TEST = yes
|
||||
NO_INSTALL = yes
|
||||
|
||||
FRAMEWORK_VERSION = 4.0
|
||||
@@ -1,6 +1,6 @@
|
||||
#! -*- makefile -*-
|
||||
|
||||
BOOTSTRAP_PROFILE = basic
|
||||
BOOTSTRAP_PROFILE = build
|
||||
|
||||
BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_GMCS)
|
||||
MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_GMCS)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#! -*- makefile -*-
|
||||
|
||||
BOOTSTRAP_PROFILE = basic
|
||||
BOOTSTRAP_PROFILE = build
|
||||
|
||||
BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_GMCS)
|
||||
MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_GMCS)
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
#! -*- makefile -*-
|
||||
|
||||
my_runtime = $(RUNTIME) $(RUNTIME_FLAGS) --security=temporary-smcs-hack
|
||||
INTERNAL_SMCS = $(my_runtime) $(topdir)/class/lib/$(PROFILE)/smcs.exe
|
||||
|
||||
BOOTSTRAP_PROFILE = moonlight_bootstrap
|
||||
|
||||
BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(my_runtime) $(topdir)/class/lib/$(BOOTSTRAP_PROFILE)/smcs.exe
|
||||
MCS = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_SMCS)
|
||||
|
||||
profile-check:
|
||||
@:
|
||||
|
||||
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0 -d:NET_2_1 -d:MOONLIGHT
|
||||
FRAMEWORK_VERSION = 2.1
|
||||
NO_TEST = yes
|
||||
|
||||
# the tuner takes care of the install
|
||||
NO_INSTALL = yes
|
||||
@@ -1,15 +1,16 @@
|
||||
#! -*- makefile -*-
|
||||
|
||||
BOOTSTRAP_PROFILE = basic
|
||||
BOOTSTRAP_PROFILE = build
|
||||
|
||||
BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_GMCS)
|
||||
MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_GMCS)
|
||||
BOOTSTRAP_MCS = mcs
|
||||
MCS = $(BOOTSTRAP_MCS)
|
||||
|
||||
profile-check:
|
||||
profile-check: $(depsdir)/.stamp
|
||||
@:
|
||||
|
||||
DEFAULT_REFERENCES = -r:mscorlib.dll
|
||||
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0 -d:NET_2_1 -d:MOONLIGHT -nowarn:1699 -nostdlib -lib:$(topdir)/class/lib/$(PROFILE) $(DEFAULT_REFERENCES)
|
||||
PROFILE_MCS_FLAGS = -lib:$(topdir)/class/lib/moonlight_raw -d:NET_1_1 -d:NET_2_0 -d:NET_2_1 -d:MOONLIGHT -d:SILVERLIGHT -nowarn:1699 -nostdlib -lib:$(topdir)/class/lib/$(PROFILE) $(DEFAULT_REFERENCES)
|
||||
SN = sn
|
||||
FRAMEWORK_VERSION = 2.1
|
||||
NO_TEST = yes
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# -*- makefile -*-
|
||||
|
||||
BOOTSTRAP_PROFILE = basic
|
||||
BOOTSTRAP_PROFILE = build
|
||||
BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_GMCS)
|
||||
MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_GMCS)
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# -*- makefile -*-
|
||||
|
||||
BOOTSTRAP_PROFILE = basic
|
||||
BOOTSTRAP_PROFILE = build
|
||||
|
||||
MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_GMCS)
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# -*- makefile -*-
|
||||
|
||||
BOOTSTRAP_PROFILE = basic
|
||||
BOOTSTRAP_PROFILE = build
|
||||
|
||||
BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_GMCS)
|
||||
MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_GMCS)
|
||||
|
||||
+10
-9
@@ -24,6 +24,10 @@ Q=$(if $(V),,@)
|
||||
# echo -e "\\t" does not work on some systems, so use 5 spaces
|
||||
Q_MCS=$(if $(V),,@echo "MCS [$(PROFILE)] $(notdir $(@))";)
|
||||
|
||||
ifndef BUILD_TOOLS_PROFILE
|
||||
BUILD_TOOLS_PROFILE = build
|
||||
endif
|
||||
|
||||
USE_MCS_FLAGS = /codepage:$(CODEPAGE) $(LOCAL_MCS_FLAGS) $(PLATFORM_MCS_FLAGS) $(PROFILE_MCS_FLAGS) $(MCS_FLAGS)
|
||||
USE_MBAS_FLAGS = /codepage:$(CODEPAGE) $(LOCAL_MBAS_FLAGS) $(PLATFORM_MBAS_FLAGS) $(PROFILE_MBAS_FLAGS) $(MBAS_FLAGS)
|
||||
USE_CFLAGS = $(LOCAL_CFLAGS) $(CFLAGS)
|
||||
@@ -37,15 +41,12 @@ INSTALL_BIN = $(INSTALL) -c -m 755
|
||||
INSTALL_LIB = $(INSTALL_BIN)
|
||||
MKINSTALLDIRS = $(SHELL) $(topdir)/mkinstalldirs
|
||||
INTERNAL_MBAS = $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/mbas/mbas.exe
|
||||
INTERNAL_GMCS = $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/basic/mcs.exe
|
||||
INTERNAL_GMCS = $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/$(BUILD_TOOLS_PROFILE)/mcs.exe
|
||||
INTERNAL_ILASM = $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/$(PROFILE)/ilasm.exe
|
||||
corlib = mscorlib.dll
|
||||
|
||||
ifndef BUILD_TOOLS_PROFILE
|
||||
BUILD_TOOLS_PROFILE = basic
|
||||
endif
|
||||
|
||||
INTERNAL_RESGEN = $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/$(BUILD_TOOLS_PROFILE)/resgen.exe
|
||||
INTERNAL_RESGEN = $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/$(PROFILE)/resgen.exe
|
||||
RESGEN = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_RESGEN)
|
||||
|
||||
depsdir = $(topdir)/build/deps
|
||||
|
||||
@@ -102,7 +103,7 @@ endif
|
||||
# Rest of the configuration
|
||||
|
||||
ifndef PROFILE
|
||||
PROFILE = net_2_0
|
||||
PROFILE = net_4_0
|
||||
endif
|
||||
|
||||
include $(topdir)/build/profiles/$(PROFILE).make
|
||||
@@ -117,8 +118,8 @@ endif
|
||||
ifdef NO_INSTALL
|
||||
GACUTIL = :
|
||||
else
|
||||
gacutil = $(topdir)/class/lib/basic/gacutil.exe
|
||||
GACUTIL = MONO_PATH="$(topdir)/class/lib/basic$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(RUNTIME_FLAGS) $(gacutil)
|
||||
gacutil = $(topdir)/class/lib/$(BUILD_TOOLS_PROFILE)/gacutil.exe
|
||||
GACUTIL = MONO_PATH="$(topdir)/class/lib/$(BUILD_TOOLS_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(RUNTIME_FLAGS) $(gacutil)
|
||||
endif
|
||||
|
||||
STD_TARGETS = test run-test run-test-ondotnet clean install uninstall doc-update
|
||||
|
||||
@@ -0,0 +1,76 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<OutputPath>./../../class/lib/net_2_0</OutputPath>
|
||||
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>mscorlib</RootNamespace>
|
||||
<AssemblyName>Accessibility</AssemblyName>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<StartupObject>
|
||||
</StartupObject>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AdditionalLibPaths>./../../class/lib/net_2_0</AdditionalLibPaths>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AdditionalLibPaths>./../../class/lib/net_2_0</AdditionalLibPaths>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<ItemGroup>
|
||||
<Compile Include="Accessibility\IAccessible.cs" />
|
||||
<Compile Include="Accessibility\IAccessibleHandler.cs" />
|
||||
<Compile Include="Assembly\AssemblyInfo.cs" />
|
||||
<Compile Include="..\..\build\common\Consts.cs" />
|
||||
|
||||
</ItemGroup>
|
||||
<!-- 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>
|
||||
-->
|
||||
<PropertyGroup>
|
||||
<PreBuildEvent></PreBuildEvent>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="mscorlib.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="mscorlib.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Properties\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -0,0 +1,76 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<OutputPath>./../../class/lib/net_4_0</OutputPath>
|
||||
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>mscorlib</RootNamespace>
|
||||
<AssemblyName>Accessibility</AssemblyName>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<StartupObject>
|
||||
</StartupObject>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AdditionalLibPaths>./../../class/lib/net_4_0</AdditionalLibPaths>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AdditionalLibPaths>./../../class/lib/net_4_0</AdditionalLibPaths>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<ItemGroup>
|
||||
<Compile Include="Accessibility\IAccessible.cs" />
|
||||
<Compile Include="Accessibility\IAccessibleHandler.cs" />
|
||||
<Compile Include="Assembly\AssemblyInfo.cs" />
|
||||
<Compile Include="..\..\build\common\Consts.cs" />
|
||||
|
||||
</ItemGroup>
|
||||
<!-- 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>
|
||||
-->
|
||||
<PropertyGroup>
|
||||
<PreBuildEvent></PreBuildEvent>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="mscorlib.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="mscorlib.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Properties\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -0,0 +1,125 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<OutputPath>./../../class/lib/net_2_0</OutputPath>
|
||||
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>mscorlib</RootNamespace>
|
||||
<AssemblyName>Commons.Xml.Relaxng</AssemblyName>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<StartupObject>
|
||||
</StartupObject>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AdditionalLibPaths>./../../class/lib/net_2_0</AdditionalLibPaths>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AdditionalLibPaths>./../../class/lib/net_2_0</AdditionalLibPaths>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<ItemGroup>
|
||||
<Compile Include="Assembly\AssemblyInfo.cs" />
|
||||
<Compile Include="..\..\build\common\Consts.cs" />
|
||||
<Compile Include="..\..\build\common\Locale.cs" />
|
||||
<Compile Include="Commons.Xml\XmlDefaultReader.cs" />
|
||||
<Compile Include="Commons.Xml.Relaxng\Misc.cs" />
|
||||
<Compile Include="Commons.Xml.Relaxng\RelaxngDatatype.cs" />
|
||||
<Compile Include="Commons.Xml.Relaxng\RelaxngDatatypeProvider.cs" />
|
||||
<Compile Include="Commons.Xml.Relaxng\RelaxngDefaultDatatypes.cs" />
|
||||
<Compile Include="Commons.Xml.Relaxng\RelaxngException.cs" />
|
||||
<Compile Include="Commons.Xml.Relaxng\RelaxngGrammar.cs" />
|
||||
<Compile Include="Commons.Xml.Relaxng\RelaxngMergedProvider.cs" />
|
||||
<Compile Include="Commons.Xml.Relaxng\RelaxngNameClass.cs" />
|
||||
<Compile Include="Commons.Xml.Relaxng\RelaxngPattern.cs" />
|
||||
<Compile Include="Commons.Xml.Relaxng\RelaxngPatternType.cs" />
|
||||
<Compile Include="Commons.Xml.Relaxng\RelaxngReader.cs" />
|
||||
<Compile Include="Commons.Xml.Relaxng\RelaxngValidatingReader.cs" />
|
||||
<Compile Include="Commons.Xml.Relaxng\XsdDatatypeProvider.cs" />
|
||||
<Compile Include="Commons.Xml.Relaxng.Derivative\RdpContentType.cs" />
|
||||
<Compile Include="Commons.Xml.Relaxng.Derivative\RdpNameClasses.cs" />
|
||||
<Compile Include="Commons.Xml.Relaxng.Derivative\RdpObjects.cs" />
|
||||
<Compile Include="Commons.Xml.Relaxng.Derivative\RdpPatterns.cs" />
|
||||
<Compile Include="Commons.Xml.Relaxng.Derivative\Util.cs" />
|
||||
<Compile Include="Commons.Xml.Relaxng.Inference\RelaxngInference.cs" />
|
||||
<Compile Include="Commons.Xml.Relaxng.Rnc\RncTokenizer.cs" />
|
||||
<Compile Include="Commons.Xml.Relaxng.Rnc\RncWriter.cs" />
|
||||
<Compile Include="Commons.Xml.Relaxng.Rnc\XmlChar.cs" />
|
||||
<Compile Include="Commons.Xml.Nvdl\NvdlBuiltInValidationProvider.cs" />
|
||||
<Compile Include="Commons.Xml.Nvdl\NvdlCompileContext.cs" />
|
||||
<Compile Include="Commons.Xml.Nvdl\NvdlConfig.cs" />
|
||||
<Compile Include="Commons.Xml.Nvdl\NvdlException.cs" />
|
||||
<Compile Include="Commons.Xml.Nvdl\NvdlFilteredXmlReader.cs" />
|
||||
<Compile Include="Commons.Xml.Nvdl\NvdlReader.cs" />
|
||||
<Compile Include="Commons.Xml.Nvdl\NvdlRelaxngSupport.cs" />
|
||||
<Compile Include="Commons.Xml.Nvdl\NvdlSimplified.cs" />
|
||||
<Compile Include="Commons.Xml.Nvdl\NvdlStructures.cs" />
|
||||
<Compile Include="Commons.Xml.Nvdl\NvdlValidatingReader.cs" />
|
||||
<Compile Include="Commons.Xml.Nvdl\NvdlValidationProvider.cs" />
|
||||
<Compile Include="Commons.Xml.Nvdl\NvdlValidator.cs" />
|
||||
<Compile Include="Commons.Xml.Nvdl\NvdlXsdSupport.cs" />
|
||||
<Compile Include="Commons.Xml.Relaxng.Rnc\RncParser.cs" />
|
||||
|
||||
</ItemGroup>
|
||||
<!-- 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>
|
||||
-->
|
||||
<PropertyGroup>
|
||||
<PreBuildEvent></PreBuildEvent>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="mscorlib.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="mscorlib.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\\lib\build\System.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Xml.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\\lib\build\System.Xml.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Properties\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="resources/relaxng.rng">
|
||||
<LogicalName>relaxng.rng</LogicalName>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -0,0 +1,125 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<OutputPath>./../../class/lib/net_4_0</OutputPath>
|
||||
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>mscorlib</RootNamespace>
|
||||
<AssemblyName>Commons.Xml.Relaxng</AssemblyName>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<StartupObject>
|
||||
</StartupObject>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AdditionalLibPaths>./../../class/lib/net_4_0</AdditionalLibPaths>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AdditionalLibPaths>./../../class/lib/net_4_0</AdditionalLibPaths>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<ItemGroup>
|
||||
<Compile Include="Assembly\AssemblyInfo.cs" />
|
||||
<Compile Include="..\..\build\common\Consts.cs" />
|
||||
<Compile Include="..\..\build\common\Locale.cs" />
|
||||
<Compile Include="Commons.Xml\XmlDefaultReader.cs" />
|
||||
<Compile Include="Commons.Xml.Relaxng\Misc.cs" />
|
||||
<Compile Include="Commons.Xml.Relaxng\RelaxngDatatype.cs" />
|
||||
<Compile Include="Commons.Xml.Relaxng\RelaxngDatatypeProvider.cs" />
|
||||
<Compile Include="Commons.Xml.Relaxng\RelaxngDefaultDatatypes.cs" />
|
||||
<Compile Include="Commons.Xml.Relaxng\RelaxngException.cs" />
|
||||
<Compile Include="Commons.Xml.Relaxng\RelaxngGrammar.cs" />
|
||||
<Compile Include="Commons.Xml.Relaxng\RelaxngMergedProvider.cs" />
|
||||
<Compile Include="Commons.Xml.Relaxng\RelaxngNameClass.cs" />
|
||||
<Compile Include="Commons.Xml.Relaxng\RelaxngPattern.cs" />
|
||||
<Compile Include="Commons.Xml.Relaxng\RelaxngPatternType.cs" />
|
||||
<Compile Include="Commons.Xml.Relaxng\RelaxngReader.cs" />
|
||||
<Compile Include="Commons.Xml.Relaxng\RelaxngValidatingReader.cs" />
|
||||
<Compile Include="Commons.Xml.Relaxng\XsdDatatypeProvider.cs" />
|
||||
<Compile Include="Commons.Xml.Relaxng.Derivative\RdpContentType.cs" />
|
||||
<Compile Include="Commons.Xml.Relaxng.Derivative\RdpNameClasses.cs" />
|
||||
<Compile Include="Commons.Xml.Relaxng.Derivative\RdpObjects.cs" />
|
||||
<Compile Include="Commons.Xml.Relaxng.Derivative\RdpPatterns.cs" />
|
||||
<Compile Include="Commons.Xml.Relaxng.Derivative\Util.cs" />
|
||||
<Compile Include="Commons.Xml.Relaxng.Inference\RelaxngInference.cs" />
|
||||
<Compile Include="Commons.Xml.Relaxng.Rnc\RncTokenizer.cs" />
|
||||
<Compile Include="Commons.Xml.Relaxng.Rnc\RncWriter.cs" />
|
||||
<Compile Include="Commons.Xml.Relaxng.Rnc\XmlChar.cs" />
|
||||
<Compile Include="Commons.Xml.Nvdl\NvdlBuiltInValidationProvider.cs" />
|
||||
<Compile Include="Commons.Xml.Nvdl\NvdlCompileContext.cs" />
|
||||
<Compile Include="Commons.Xml.Nvdl\NvdlConfig.cs" />
|
||||
<Compile Include="Commons.Xml.Nvdl\NvdlException.cs" />
|
||||
<Compile Include="Commons.Xml.Nvdl\NvdlFilteredXmlReader.cs" />
|
||||
<Compile Include="Commons.Xml.Nvdl\NvdlReader.cs" />
|
||||
<Compile Include="Commons.Xml.Nvdl\NvdlRelaxngSupport.cs" />
|
||||
<Compile Include="Commons.Xml.Nvdl\NvdlSimplified.cs" />
|
||||
<Compile Include="Commons.Xml.Nvdl\NvdlStructures.cs" />
|
||||
<Compile Include="Commons.Xml.Nvdl\NvdlValidatingReader.cs" />
|
||||
<Compile Include="Commons.Xml.Nvdl\NvdlValidationProvider.cs" />
|
||||
<Compile Include="Commons.Xml.Nvdl\NvdlValidator.cs" />
|
||||
<Compile Include="Commons.Xml.Nvdl\NvdlXsdSupport.cs" />
|
||||
<Compile Include="Commons.Xml.Relaxng.Rnc\RncParser.cs" />
|
||||
|
||||
</ItemGroup>
|
||||
<!-- 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>
|
||||
-->
|
||||
<PropertyGroup>
|
||||
<PreBuildEvent></PreBuildEvent>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="mscorlib.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="mscorlib.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\\lib\build\System.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Xml.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\\lib\build\System.Xml.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Properties\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="resources/relaxng.rng">
|
||||
<LogicalName>relaxng.rng</LogicalName>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
+118
@@ -0,0 +1,118 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<OutputPath>./../../class/compat/net_2_0</OutputPath>
|
||||
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>mscorlib</RootNamespace>
|
||||
<AssemblyName>ICSharpCode.SharpZipLib</AssemblyName>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<StartupObject>
|
||||
</StartupObject>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AdditionalLibPaths>./../../class/lib/net_2_0</AdditionalLibPaths>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AdditionalLibPaths>./../../class/lib/net_2_0</AdditionalLibPaths>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<ItemGroup>
|
||||
<Compile Include=".\ICSharpCode.SharpZipLib\BZip2\BZip2.cs" />
|
||||
<Compile Include=".\ICSharpCode.SharpZipLib\BZip2\BZip2Constants.cs" />
|
||||
<Compile Include=".\ICSharpCode.SharpZipLib\BZip2\BZip2InputStream.cs" />
|
||||
<Compile Include=".\ICSharpCode.SharpZipLib\BZip2\BZip2OutputStream.cs" />
|
||||
<Compile Include=".\ICSharpCode.SharpZipLib\Checksums\Adler32.cs" />
|
||||
<Compile Include=".\ICSharpCode.SharpZipLib\Checksums\Crc32.cs" />
|
||||
<Compile Include=".\ICSharpCode.SharpZipLib\Checksums\IChecksum.cs" />
|
||||
<Compile Include=".\ICSharpCode.SharpZipLib\Checksums\StrangeCrc.cs" />
|
||||
<Compile Include=".\ICSharpCode.SharpZipLib\GZip\GZipConstants.cs" />
|
||||
<Compile Include=".\ICSharpCode.SharpZipLib\GZip\GZipInputStream.cs" />
|
||||
<Compile Include=".\ICSharpCode.SharpZipLib\GZip\GZipOutputStream.cs" />
|
||||
<Compile Include=".\ICSharpCode.SharpZipLib\Tar\InvalidHeaderException.cs" />
|
||||
<Compile Include=".\ICSharpCode.SharpZipLib\Tar\TarArchive.cs" />
|
||||
<Compile Include=".\ICSharpCode.SharpZipLib\Tar\TarBuffer.cs" />
|
||||
<Compile Include=".\ICSharpCode.SharpZipLib\Tar\TarEntry.cs" />
|
||||
<Compile Include=".\ICSharpCode.SharpZipLib\Tar\TarHeader.cs" />
|
||||
<Compile Include=".\ICSharpCode.SharpZipLib\Tar\TarInputStream.cs" />
|
||||
<Compile Include=".\ICSharpCode.SharpZipLib\Tar\TarOutputStream.cs" />
|
||||
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\Deflater.cs" />
|
||||
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\DeflaterConstants.cs" />
|
||||
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\DeflaterEngine.cs" />
|
||||
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\DeflaterHuffman.cs" />
|
||||
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\DeflaterPending.cs" />
|
||||
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\Inflater.cs" />
|
||||
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\InflaterDynHeader.cs" />
|
||||
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\InflaterHuffmanTree.cs" />
|
||||
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\PendingBuffer.cs" />
|
||||
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\Streams\DeflaterOutputStream.cs" />
|
||||
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\Streams\InflaterInputStream.cs" />
|
||||
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\Streams\OutputWindow.cs" />
|
||||
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\Streams\StreamManipulator.cs" />
|
||||
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\ZipConstants.cs" />
|
||||
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\ZipEntry.cs" />
|
||||
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\ZipFile.cs" />
|
||||
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\ZipInputStream.cs" />
|
||||
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\ZipOutputStream.cs" />
|
||||
<Compile Include=".\ICSharpCode.SharpZipLib\AssemblyInfo.cs" />
|
||||
<Compile Include=".\ICSharpCode.SharpZipLib\ZipException.cs" />
|
||||
|
||||
</ItemGroup>
|
||||
<!-- 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>
|
||||
-->
|
||||
<PropertyGroup>
|
||||
<PreBuildEvent></PreBuildEvent>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="mscorlib.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="mscorlib.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\\lib\build\System.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Xml.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\\lib\build\System.Xml.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Properties\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -0,0 +1,83 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<OutputPath>./../../class/lib/net_2_0</OutputPath>
|
||||
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>mscorlib</RootNamespace>
|
||||
<AssemblyName>cscompmgd</AssemblyName>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<StartupObject>
|
||||
</StartupObject>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AdditionalLibPaths>./../../class/lib/net_2_0</AdditionalLibPaths>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AdditionalLibPaths>./../../class/lib/net_2_0</AdditionalLibPaths>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<ItemGroup>
|
||||
<Compile Include="Assembly\AssemblyInfo.cs" />
|
||||
<Compile Include="..\..\build\common\Consts.cs" />
|
||||
<Compile Include="..\..\build\common\Locale.cs" />
|
||||
<Compile Include="Microsoft.CSharp\Compiler.cs" />
|
||||
<Compile Include="Microsoft.CSharp\CompilerError.cs" />
|
||||
<Compile Include="Microsoft.CSharp\ErrorLevel.cs" />
|
||||
<Compile Include="..\..\build\common\MonoTODOAttribute.cs" />
|
||||
|
||||
</ItemGroup>
|
||||
<!-- 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>
|
||||
-->
|
||||
<PropertyGroup>
|
||||
<PreBuildEvent></PreBuildEvent>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="mscorlib.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="mscorlib.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\\lib\build\System.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Properties\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -0,0 +1,83 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<OutputPath>./../../class/lib/net_4_0</OutputPath>
|
||||
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>mscorlib</RootNamespace>
|
||||
<AssemblyName>cscompmgd</AssemblyName>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<StartupObject>
|
||||
</StartupObject>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AdditionalLibPaths>./../../class/lib/net_4_0</AdditionalLibPaths>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AdditionalLibPaths>./../../class/lib/net_4_0</AdditionalLibPaths>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<ItemGroup>
|
||||
<Compile Include="Assembly\AssemblyInfo.cs" />
|
||||
<Compile Include="..\..\build\common\Consts.cs" />
|
||||
<Compile Include="..\..\build\common\Locale.cs" />
|
||||
<Compile Include="Microsoft.CSharp\Compiler.cs" />
|
||||
<Compile Include="Microsoft.CSharp\CompilerError.cs" />
|
||||
<Compile Include="Microsoft.CSharp\ErrorLevel.cs" />
|
||||
<Compile Include="..\..\build\common\MonoTODOAttribute.cs" />
|
||||
|
||||
</ItemGroup>
|
||||
<!-- 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>
|
||||
-->
|
||||
<PropertyGroup>
|
||||
<PreBuildEvent></PreBuildEvent>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="mscorlib.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="mscorlib.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\\lib\build\System.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Properties\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -0,0 +1,84 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<OutputPath>./../../class/lib/net_2_0</OutputPath>
|
||||
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>mscorlib</RootNamespace>
|
||||
<AssemblyName>CustomMarshalers</AssemblyName>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<StartupObject>
|
||||
</StartupObject>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AdditionalLibPaths>./../../class/lib/net_2_0</AdditionalLibPaths>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AdditionalLibPaths>./../../class/lib/net_2_0</AdditionalLibPaths>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<ItemGroup>
|
||||
<Compile Include=".\Assembly\AssemblyInfo.cs" />
|
||||
<Compile Include="..\..\build\common\Consts.cs" />
|
||||
<Compile Include="..\..\build\common\Locale.cs" />
|
||||
<Compile Include="..\..\build\common\MonoTODOAttribute.cs" />
|
||||
<Compile Include=".\System.Runtime.InteropServices.CustomMarshalers\EnumerableToDispatchMarshaler.cs" />
|
||||
<Compile Include=".\System.Runtime.InteropServices.CustomMarshalers\ExpandoToDispatchExMarshaler.cs" />
|
||||
<Compile Include=".\System.Runtime.InteropServices.CustomMarshalers\EnumeratorToEnumVariantMarshaler.cs" />
|
||||
<Compile Include=".\System.Runtime.InteropServices.CustomMarshalers\TypeToTypeInfoMarshaler.cs" />
|
||||
|
||||
</ItemGroup>
|
||||
<!-- 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>
|
||||
-->
|
||||
<PropertyGroup>
|
||||
<PreBuildEvent></PreBuildEvent>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="mscorlib.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="mscorlib.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\\lib\build\System.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Properties\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -0,0 +1,84 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<OutputPath>./../../class/lib/net_4_0</OutputPath>
|
||||
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>mscorlib</RootNamespace>
|
||||
<AssemblyName>CustomMarshalers</AssemblyName>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<StartupObject>
|
||||
</StartupObject>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AdditionalLibPaths>./../../class/lib/net_4_0</AdditionalLibPaths>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AdditionalLibPaths>./../../class/lib/net_4_0</AdditionalLibPaths>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<ItemGroup>
|
||||
<Compile Include=".\Assembly\AssemblyInfo.cs" />
|
||||
<Compile Include="..\..\build\common\Consts.cs" />
|
||||
<Compile Include="..\..\build\common\Locale.cs" />
|
||||
<Compile Include="..\..\build\common\MonoTODOAttribute.cs" />
|
||||
<Compile Include=".\System.Runtime.InteropServices.CustomMarshalers\EnumerableToDispatchMarshaler.cs" />
|
||||
<Compile Include=".\System.Runtime.InteropServices.CustomMarshalers\ExpandoToDispatchExMarshaler.cs" />
|
||||
<Compile Include=".\System.Runtime.InteropServices.CustomMarshalers\EnumeratorToEnumVariantMarshaler.cs" />
|
||||
<Compile Include=".\System.Runtime.InteropServices.CustomMarshalers\TypeToTypeInfoMarshaler.cs" />
|
||||
|
||||
</ItemGroup>
|
||||
<!-- 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>
|
||||
-->
|
||||
<PropertyGroup>
|
||||
<PreBuildEvent></PreBuildEvent>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="mscorlib.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="mscorlib.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\\lib\build\System.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Properties\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -0,0 +1,107 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<OutputPath>./../../../class/lib/net_2_0/tmp</OutputPath>
|
||||
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>mscorlib</RootNamespace>
|
||||
<AssemblyName>I18N.CJK</AssemblyName>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<StartupObject>
|
||||
</StartupObject>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AdditionalLibPaths>./../../../class/lib/net_2_0</AdditionalLibPaths>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AdditionalLibPaths>./../../../class/lib/net_2_0</AdditionalLibPaths>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<ItemGroup>
|
||||
<Compile Include="..\Assembly\AssemblyInfo.cs" />
|
||||
<Compile Include="..\..\..\build\common\Consts.cs" />
|
||||
<Compile Include="CP932.cs" />
|
||||
<Compile Include="ISO2022JP.cs" />
|
||||
<Compile Include="CP51932.cs" />
|
||||
<Compile Include="CP936.cs" />
|
||||
<Compile Include="CP949.cs" />
|
||||
<Compile Include="CP950.cs" />
|
||||
<Compile Include="CodeTable.cs" />
|
||||
<Compile Include="DbcsEncoding.cs" />
|
||||
<Compile Include="DbcsConvert.cs" />
|
||||
<Compile Include="GB18030Encoding.cs" />
|
||||
<Compile Include="GB18030Source.cs" />
|
||||
<Compile Include="JISConvert.cs" />
|
||||
|
||||
</ItemGroup>
|
||||
<!-- 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>
|
||||
-->
|
||||
<PropertyGroup>
|
||||
<PreBuildEvent></PreBuildEvent>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="mscorlib.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\\lib\build\mscorlib.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="I18N.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\\lib\build\I18N.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="mscorlib.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\\lib\build\mscorlib.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Properties\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="big5.table">
|
||||
<LogicalName>big5.table</LogicalName>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="gb2312.table">
|
||||
<LogicalName>gb2312.table</LogicalName>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="jis.table">
|
||||
<LogicalName>jis.table</LogicalName>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="ks.table">
|
||||
<LogicalName>ks.table</LogicalName>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="gb18030.table">
|
||||
<LogicalName>gb18030.table</LogicalName>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -0,0 +1,107 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<OutputPath>./../../../class/lib/net_4_0/tmp</OutputPath>
|
||||
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>mscorlib</RootNamespace>
|
||||
<AssemblyName>I18N.CJK</AssemblyName>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<StartupObject>
|
||||
</StartupObject>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AdditionalLibPaths>./../../../class/lib/net_4_0</AdditionalLibPaths>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AdditionalLibPaths>./../../../class/lib/net_4_0</AdditionalLibPaths>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<ItemGroup>
|
||||
<Compile Include="..\Assembly\AssemblyInfo.cs" />
|
||||
<Compile Include="..\..\..\build\common\Consts.cs" />
|
||||
<Compile Include="CP932.cs" />
|
||||
<Compile Include="ISO2022JP.cs" />
|
||||
<Compile Include="CP51932.cs" />
|
||||
<Compile Include="CP936.cs" />
|
||||
<Compile Include="CP949.cs" />
|
||||
<Compile Include="CP950.cs" />
|
||||
<Compile Include="CodeTable.cs" />
|
||||
<Compile Include="DbcsEncoding.cs" />
|
||||
<Compile Include="DbcsConvert.cs" />
|
||||
<Compile Include="GB18030Encoding.cs" />
|
||||
<Compile Include="GB18030Source.cs" />
|
||||
<Compile Include="JISConvert.cs" />
|
||||
|
||||
</ItemGroup>
|
||||
<!-- 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>
|
||||
-->
|
||||
<PropertyGroup>
|
||||
<PreBuildEvent></PreBuildEvent>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="mscorlib.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\\lib\build\mscorlib.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="I18N.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\\lib\build\I18N.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="mscorlib.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\\lib\build\mscorlib.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Properties\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="big5.table">
|
||||
<LogicalName>big5.table</LogicalName>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="gb2312.table">
|
||||
<LogicalName>gb2312.table</LogicalName>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="jis.table">
|
||||
<LogicalName>jis.table</LogicalName>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="ks.table">
|
||||
<LogicalName>ks.table</LogicalName>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="gb18030.table">
|
||||
<LogicalName>gb18030.table</LogicalName>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -0,0 +1,79 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<OutputPath>./../../../class/lib/net_2_0/tmp</OutputPath>
|
||||
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>mscorlib</RootNamespace>
|
||||
<AssemblyName>I18N</AssemblyName>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<StartupObject>
|
||||
</StartupObject>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AdditionalLibPaths>./../../../class/lib/net_2_0</AdditionalLibPaths>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AdditionalLibPaths>./../../../class/lib/net_2_0</AdditionalLibPaths>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<ItemGroup>
|
||||
<Compile Include="..\Assembly\AssemblyInfo.cs" />
|
||||
<Compile Include="..\..\..\build\common\Consts.cs" />
|
||||
<Compile Include="ByteEncoding.cs" />
|
||||
<Compile Include="Handlers.cs" />
|
||||
<Compile Include="Manager.cs" />
|
||||
<Compile Include="MonoEncoding.cs" />
|
||||
<Compile Include="Strings.cs" />
|
||||
|
||||
</ItemGroup>
|
||||
<!-- 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>
|
||||
-->
|
||||
<PropertyGroup>
|
||||
<PreBuildEvent></PreBuildEvent>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="mscorlib.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\\lib\build\mscorlib.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="mscorlib.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\\lib\build\mscorlib.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Properties\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -0,0 +1,79 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<OutputPath>./../../../class/lib/net_4_0/tmp</OutputPath>
|
||||
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>mscorlib</RootNamespace>
|
||||
<AssemblyName>I18N</AssemblyName>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<StartupObject>
|
||||
</StartupObject>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AdditionalLibPaths>./../../../class/lib/net_4_0</AdditionalLibPaths>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AdditionalLibPaths>./../../../class/lib/net_4_0</AdditionalLibPaths>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<ItemGroup>
|
||||
<Compile Include="..\Assembly\AssemblyInfo.cs" />
|
||||
<Compile Include="..\..\..\build\common\Consts.cs" />
|
||||
<Compile Include="ByteEncoding.cs" />
|
||||
<Compile Include="Handlers.cs" />
|
||||
<Compile Include="Manager.cs" />
|
||||
<Compile Include="MonoEncoding.cs" />
|
||||
<Compile Include="Strings.cs" />
|
||||
|
||||
</ItemGroup>
|
||||
<!-- 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>
|
||||
-->
|
||||
<PropertyGroup>
|
||||
<PreBuildEvent></PreBuildEvent>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="mscorlib.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\\lib\build\mscorlib.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="mscorlib.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\\lib\build\mscorlib.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Properties\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -0,0 +1,85 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<OutputPath>./../../../class/lib/net_2_0/tmp</OutputPath>
|
||||
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>mscorlib</RootNamespace>
|
||||
<AssemblyName>I18N.MidEast</AssemblyName>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<StartupObject>
|
||||
</StartupObject>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AdditionalLibPaths>./../../../class/lib/net_2_0</AdditionalLibPaths>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AdditionalLibPaths>./../../../class/lib/net_2_0</AdditionalLibPaths>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<ItemGroup>
|
||||
<Compile Include="..\Assembly\AssemblyInfo.cs" />
|
||||
<Compile Include="..\..\..\build\common\Consts.cs" />
|
||||
<Compile Include="CP1254.cs" />
|
||||
<Compile Include="CP1255.cs" />
|
||||
<Compile Include="CP1256.cs" />
|
||||
<Compile Include="CP28596.cs" />
|
||||
<Compile Include="CP28598.cs" />
|
||||
<Compile Include="CP28599.cs" />
|
||||
<Compile Include="CP38598.cs" />
|
||||
|
||||
</ItemGroup>
|
||||
<!-- 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>
|
||||
-->
|
||||
<PropertyGroup>
|
||||
<PreBuildEvent></PreBuildEvent>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="mscorlib.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\\lib\build\mscorlib.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="I18N.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\\lib\build\I18N.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="mscorlib.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\\lib\build\mscorlib.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Properties\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -0,0 +1,85 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<OutputPath>./../../../class/lib/net_4_0/tmp</OutputPath>
|
||||
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>mscorlib</RootNamespace>
|
||||
<AssemblyName>I18N.MidEast</AssemblyName>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<StartupObject>
|
||||
</StartupObject>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AdditionalLibPaths>./../../../class/lib/net_4_0</AdditionalLibPaths>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AdditionalLibPaths>./../../../class/lib/net_4_0</AdditionalLibPaths>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<ItemGroup>
|
||||
<Compile Include="..\Assembly\AssemblyInfo.cs" />
|
||||
<Compile Include="..\..\..\build\common\Consts.cs" />
|
||||
<Compile Include="CP1254.cs" />
|
||||
<Compile Include="CP1255.cs" />
|
||||
<Compile Include="CP1256.cs" />
|
||||
<Compile Include="CP28596.cs" />
|
||||
<Compile Include="CP28598.cs" />
|
||||
<Compile Include="CP28599.cs" />
|
||||
<Compile Include="CP38598.cs" />
|
||||
|
||||
</ItemGroup>
|
||||
<!-- 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>
|
||||
-->
|
||||
<PropertyGroup>
|
||||
<PreBuildEvent></PreBuildEvent>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="mscorlib.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\\lib\build\mscorlib.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="I18N.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\\lib\build\I18N.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="mscorlib.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\\lib\build\mscorlib.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Properties\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -0,0 +1,87 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<OutputPath>./../../../class/lib/net_2_0/tmp</OutputPath>
|
||||
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>mscorlib</RootNamespace>
|
||||
<AssemblyName>I18N.Other</AssemblyName>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<StartupObject>
|
||||
</StartupObject>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AdditionalLibPaths>./../../../class/lib/net_2_0</AdditionalLibPaths>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AdditionalLibPaths>./../../../class/lib/net_2_0</AdditionalLibPaths>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<ItemGroup>
|
||||
<Compile Include="..\Assembly\AssemblyInfo.cs" />
|
||||
<Compile Include="..\..\..\build\common\Consts.cs" />
|
||||
<Compile Include="CP1251.cs" />
|
||||
<Compile Include="CP1257.cs" />
|
||||
<Compile Include="CP1258.cs" />
|
||||
<Compile Include="CP20866.cs" />
|
||||
<Compile Include="CP21866.cs" />
|
||||
<Compile Include="CP28594.cs" />
|
||||
<Compile Include="CP28595.cs" />
|
||||
<Compile Include="CP57002.cs" />
|
||||
<Compile Include="CP874.cs" />
|
||||
|
||||
</ItemGroup>
|
||||
<!-- 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>
|
||||
-->
|
||||
<PropertyGroup>
|
||||
<PreBuildEvent></PreBuildEvent>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="mscorlib.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\\lib\build\mscorlib.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="I18N.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\\lib\build\I18N.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="mscorlib.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\\lib\build\mscorlib.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Properties\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -0,0 +1,87 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<OutputPath>./../../../class/lib/net_4_0/tmp</OutputPath>
|
||||
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>mscorlib</RootNamespace>
|
||||
<AssemblyName>I18N.Other</AssemblyName>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<StartupObject>
|
||||
</StartupObject>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AdditionalLibPaths>./../../../class/lib/net_4_0</AdditionalLibPaths>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AdditionalLibPaths>./../../../class/lib/net_4_0</AdditionalLibPaths>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<ItemGroup>
|
||||
<Compile Include="..\Assembly\AssemblyInfo.cs" />
|
||||
<Compile Include="..\..\..\build\common\Consts.cs" />
|
||||
<Compile Include="CP1251.cs" />
|
||||
<Compile Include="CP1257.cs" />
|
||||
<Compile Include="CP1258.cs" />
|
||||
<Compile Include="CP20866.cs" />
|
||||
<Compile Include="CP21866.cs" />
|
||||
<Compile Include="CP28594.cs" />
|
||||
<Compile Include="CP28595.cs" />
|
||||
<Compile Include="CP57002.cs" />
|
||||
<Compile Include="CP874.cs" />
|
||||
|
||||
</ItemGroup>
|
||||
<!-- 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>
|
||||
-->
|
||||
<PropertyGroup>
|
||||
<PreBuildEvent></PreBuildEvent>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="mscorlib.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\\lib\build\mscorlib.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="I18N.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\\lib\build\I18N.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="mscorlib.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\\lib\build\mscorlib.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Properties\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -0,0 +1,115 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<OutputPath>./../../../class/lib/net_2_0/tmp</OutputPath>
|
||||
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>mscorlib</RootNamespace>
|
||||
<AssemblyName>I18N.Rare</AssemblyName>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<StartupObject>
|
||||
</StartupObject>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AdditionalLibPaths>./../../../class/lib/net_2_0</AdditionalLibPaths>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AdditionalLibPaths>./../../../class/lib/net_2_0</AdditionalLibPaths>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<ItemGroup>
|
||||
<Compile Include="..\Assembly\AssemblyInfo.cs" />
|
||||
<Compile Include="..\..\..\build\common\Consts.cs" />
|
||||
<Compile Include="CP866.cs" />
|
||||
<Compile Include="CP1026.cs" />
|
||||
<Compile Include="CP869.cs" />
|
||||
<Compile Include="CP870.cs" />
|
||||
<Compile Include="CP875.cs" />
|
||||
<Compile Include="CP1047.cs" />
|
||||
<Compile Include="CP1140.cs" />
|
||||
<Compile Include="CP1141.cs" />
|
||||
<Compile Include="CP1142.cs" />
|
||||
<Compile Include="CP1143.cs" />
|
||||
<Compile Include="CP1144.cs" />
|
||||
<Compile Include="CP1145.cs" />
|
||||
<Compile Include="CP1146.cs" />
|
||||
<Compile Include="CP1147.cs" />
|
||||
<Compile Include="CP1148.cs" />
|
||||
<Compile Include="CP1149.cs" />
|
||||
<Compile Include="CP20273.cs" />
|
||||
<Compile Include="CP20277.cs" />
|
||||
<Compile Include="CP20278.cs" />
|
||||
<Compile Include="CP20280.cs" />
|
||||
<Compile Include="CP20284.cs" />
|
||||
<Compile Include="CP20285.cs" />
|
||||
<Compile Include="CP20290.cs" />
|
||||
<Compile Include="CP20297.cs" />
|
||||
<Compile Include="CP20420.cs" />
|
||||
<Compile Include="CP20424.cs" />
|
||||
<Compile Include="CP20871.cs" />
|
||||
<Compile Include="CP21025.cs" />
|
||||
<Compile Include="CP37.cs" />
|
||||
<Compile Include="CP500.cs" />
|
||||
<Compile Include="CP708.cs" />
|
||||
<Compile Include="CP852.cs" />
|
||||
<Compile Include="CP855.cs" />
|
||||
<Compile Include="CP857.cs" />
|
||||
<Compile Include="CP858.cs" />
|
||||
<Compile Include="CP862.cs" />
|
||||
<Compile Include="CP864.cs" />
|
||||
|
||||
</ItemGroup>
|
||||
<!-- 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>
|
||||
-->
|
||||
<PropertyGroup>
|
||||
<PreBuildEvent></PreBuildEvent>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="mscorlib.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\\lib\build\mscorlib.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="I18N.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\\lib\build\I18N.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="mscorlib.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\\lib\build\mscorlib.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Properties\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -0,0 +1,115 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<OutputPath>./../../../class/lib/net_4_0/tmp</OutputPath>
|
||||
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>mscorlib</RootNamespace>
|
||||
<AssemblyName>I18N.Rare</AssemblyName>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<StartupObject>
|
||||
</StartupObject>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AdditionalLibPaths>./../../../class/lib/net_4_0</AdditionalLibPaths>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AdditionalLibPaths>./../../../class/lib/net_4_0</AdditionalLibPaths>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<ItemGroup>
|
||||
<Compile Include="..\Assembly\AssemblyInfo.cs" />
|
||||
<Compile Include="..\..\..\build\common\Consts.cs" />
|
||||
<Compile Include="CP866.cs" />
|
||||
<Compile Include="CP1026.cs" />
|
||||
<Compile Include="CP869.cs" />
|
||||
<Compile Include="CP870.cs" />
|
||||
<Compile Include="CP875.cs" />
|
||||
<Compile Include="CP1047.cs" />
|
||||
<Compile Include="CP1140.cs" />
|
||||
<Compile Include="CP1141.cs" />
|
||||
<Compile Include="CP1142.cs" />
|
||||
<Compile Include="CP1143.cs" />
|
||||
<Compile Include="CP1144.cs" />
|
||||
<Compile Include="CP1145.cs" />
|
||||
<Compile Include="CP1146.cs" />
|
||||
<Compile Include="CP1147.cs" />
|
||||
<Compile Include="CP1148.cs" />
|
||||
<Compile Include="CP1149.cs" />
|
||||
<Compile Include="CP20273.cs" />
|
||||
<Compile Include="CP20277.cs" />
|
||||
<Compile Include="CP20278.cs" />
|
||||
<Compile Include="CP20280.cs" />
|
||||
<Compile Include="CP20284.cs" />
|
||||
<Compile Include="CP20285.cs" />
|
||||
<Compile Include="CP20290.cs" />
|
||||
<Compile Include="CP20297.cs" />
|
||||
<Compile Include="CP20420.cs" />
|
||||
<Compile Include="CP20424.cs" />
|
||||
<Compile Include="CP20871.cs" />
|
||||
<Compile Include="CP21025.cs" />
|
||||
<Compile Include="CP37.cs" />
|
||||
<Compile Include="CP500.cs" />
|
||||
<Compile Include="CP708.cs" />
|
||||
<Compile Include="CP852.cs" />
|
||||
<Compile Include="CP855.cs" />
|
||||
<Compile Include="CP857.cs" />
|
||||
<Compile Include="CP858.cs" />
|
||||
<Compile Include="CP862.cs" />
|
||||
<Compile Include="CP864.cs" />
|
||||
|
||||
</ItemGroup>
|
||||
<!-- 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>
|
||||
-->
|
||||
<PropertyGroup>
|
||||
<PreBuildEvent></PreBuildEvent>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="mscorlib.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\\lib\build\mscorlib.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="I18N.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\\lib\build\I18N.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="mscorlib.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\\lib\build\mscorlib.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Properties\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -0,0 +1,93 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<OutputPath>./../../../class/lib/net_2_0/tmp</OutputPath>
|
||||
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>mscorlib</RootNamespace>
|
||||
<AssemblyName>I18N.West</AssemblyName>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<StartupObject>
|
||||
</StartupObject>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AdditionalLibPaths>./../../../class/lib/net_2_0</AdditionalLibPaths>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AdditionalLibPaths>./../../../class/lib/net_2_0</AdditionalLibPaths>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<ItemGroup>
|
||||
<Compile Include="..\Assembly\AssemblyInfo.cs" />
|
||||
<Compile Include="..\..\..\build\common\Consts.cs" />
|
||||
<Compile Include="CP10000.cs" />
|
||||
<Compile Include="CP10079.cs" />
|
||||
<Compile Include="CP1250.cs" />
|
||||
<Compile Include="CP1252.cs" />
|
||||
<Compile Include="CP1253.cs" />
|
||||
<Compile Include="CP28592.cs" />
|
||||
<Compile Include="CP28593.cs" />
|
||||
<Compile Include="CP28597.cs" />
|
||||
<Compile Include="CP28605.cs" />
|
||||
<Compile Include="CP437.cs" />
|
||||
<Compile Include="CP850.cs" />
|
||||
<Compile Include="CP860.cs" />
|
||||
<Compile Include="CP861.cs" />
|
||||
<Compile Include="CP863.cs" />
|
||||
<Compile Include="CP865.cs" />
|
||||
|
||||
</ItemGroup>
|
||||
<!-- 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>
|
||||
-->
|
||||
<PropertyGroup>
|
||||
<PreBuildEvent></PreBuildEvent>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="mscorlib.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\\lib\build\mscorlib.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="I18N.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\\lib\build\I18N.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="mscorlib.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\\lib\build\mscorlib.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Properties\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -0,0 +1,93 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<OutputPath>./../../../class/lib/net_4_0/tmp</OutputPath>
|
||||
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>mscorlib</RootNamespace>
|
||||
<AssemblyName>I18N.West</AssemblyName>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<StartupObject>
|
||||
</StartupObject>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AdditionalLibPaths>./../../../class/lib/net_4_0</AdditionalLibPaths>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AdditionalLibPaths>./../../../class/lib/net_4_0</AdditionalLibPaths>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<ItemGroup>
|
||||
<Compile Include="..\Assembly\AssemblyInfo.cs" />
|
||||
<Compile Include="..\..\..\build\common\Consts.cs" />
|
||||
<Compile Include="CP10000.cs" />
|
||||
<Compile Include="CP10079.cs" />
|
||||
<Compile Include="CP1250.cs" />
|
||||
<Compile Include="CP1252.cs" />
|
||||
<Compile Include="CP1253.cs" />
|
||||
<Compile Include="CP28592.cs" />
|
||||
<Compile Include="CP28593.cs" />
|
||||
<Compile Include="CP28597.cs" />
|
||||
<Compile Include="CP28605.cs" />
|
||||
<Compile Include="CP437.cs" />
|
||||
<Compile Include="CP850.cs" />
|
||||
<Compile Include="CP860.cs" />
|
||||
<Compile Include="CP861.cs" />
|
||||
<Compile Include="CP863.cs" />
|
||||
<Compile Include="CP865.cs" />
|
||||
|
||||
</ItemGroup>
|
||||
<!-- 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>
|
||||
-->
|
||||
<PropertyGroup>
|
||||
<PreBuildEvent></PreBuildEvent>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="mscorlib.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\\lib\build\mscorlib.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="I18N.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\\lib\build\I18N.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="mscorlib.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\\lib\build\mscorlib.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Properties\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -0,0 +1,109 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<OutputPath>./../../class/lib/net_2_0</OutputPath>
|
||||
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>mscorlib</RootNamespace>
|
||||
<AssemblyName>IBM.Data.DB2</AssemblyName>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<StartupObject>
|
||||
</StartupObject>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AdditionalLibPaths>./../../class/lib/net_2_0</AdditionalLibPaths>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AdditionalLibPaths>./../../class/lib/net_2_0</AdditionalLibPaths>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<ItemGroup>
|
||||
<Compile Include=".\Assembly\AssemblyInfo.cs" />
|
||||
<Compile Include=".\IBM.Data.DB2\DB2ClientUtils.cs" />
|
||||
<Compile Include=".\IBM.Data.DB2\DB2CLIWrapper.cs" />
|
||||
<Compile Include=".\IBM.Data.DB2\DB2Command.cs" />
|
||||
<Compile Include=".\IBM.Data.DB2\DB2CommandBuilder.cs" />
|
||||
<Compile Include=".\IBM.Data.DB2\DB2OpenConnection.cs" />
|
||||
<Compile Include=".\IBM.Data.DB2\DB2Connection.cs" />
|
||||
<Compile Include=".\IBM.Data.DB2\DB2ConnectionPool.cs" />
|
||||
<Compile Include=".\IBM.Data.DB2\DB2ConnectionSettings.cs" />
|
||||
<Compile Include=".\IBM.Data.DB2\DB2Constants.cs" />
|
||||
<Compile Include=".\IBM.Data.DB2\DB2DataAdapter.cs" />
|
||||
<Compile Include=".\IBM.Data.DB2\DB2DataReader.cs" />
|
||||
<Compile Include=".\IBM.Data.DB2\DB2Environment.cs" />
|
||||
<Compile Include=".\IBM.Data.DB2\DB2Error.cs" />
|
||||
<Compile Include=".\IBM.Data.DB2\DB2ErrorCollection.cs" />
|
||||
<Compile Include=".\IBM.Data.DB2\DB2Exception.cs" />
|
||||
<Compile Include=".\IBM.Data.DB2\DB2InfoMessageEventHandler.cs" />
|
||||
<Compile Include=".\IBM.Data.DB2\DB2Parameter.cs" />
|
||||
<Compile Include=".\IBM.Data.DB2\DB2ParameterCollection.cs" />
|
||||
<Compile Include=".\IBM.Data.DB2\DB2RowUpdatedEventArgs.cs" />
|
||||
<Compile Include=".\IBM.Data.DB2\DB2RowUpdatedEventHandler.cs" />
|
||||
<Compile Include=".\IBM.Data.DB2\DB2RowUpdatingEventArgs.cs" />
|
||||
<Compile Include=".\IBM.Data.DB2\DB2RowUpdatingEventHandler.cs" />
|
||||
<Compile Include=".\IBM.Data.DB2\DB2Transaction.cs" />
|
||||
<Compile Include=".\IBM.Data.DB2\DB2Type.cs" />
|
||||
|
||||
</ItemGroup>
|
||||
<!-- 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>
|
||||
-->
|
||||
<PropertyGroup>
|
||||
<PreBuildEvent></PreBuildEvent>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="mscorlib.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="mscorlib.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\\lib\build\System.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Xml.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\\lib\build\System.Xml.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Data.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\\lib\build\System.Data.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Properties\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -0,0 +1,109 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<OutputPath>./../../class/lib/net_4_0</OutputPath>
|
||||
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>mscorlib</RootNamespace>
|
||||
<AssemblyName>IBM.Data.DB2</AssemblyName>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<StartupObject>
|
||||
</StartupObject>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AdditionalLibPaths>./../../class/lib/net_4_0</AdditionalLibPaths>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AdditionalLibPaths>./../../class/lib/net_4_0</AdditionalLibPaths>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<ItemGroup>
|
||||
<Compile Include=".\Assembly\AssemblyInfo.cs" />
|
||||
<Compile Include=".\IBM.Data.DB2\DB2ClientUtils.cs" />
|
||||
<Compile Include=".\IBM.Data.DB2\DB2CLIWrapper.cs" />
|
||||
<Compile Include=".\IBM.Data.DB2\DB2Command.cs" />
|
||||
<Compile Include=".\IBM.Data.DB2\DB2CommandBuilder.cs" />
|
||||
<Compile Include=".\IBM.Data.DB2\DB2OpenConnection.cs" />
|
||||
<Compile Include=".\IBM.Data.DB2\DB2Connection.cs" />
|
||||
<Compile Include=".\IBM.Data.DB2\DB2ConnectionPool.cs" />
|
||||
<Compile Include=".\IBM.Data.DB2\DB2ConnectionSettings.cs" />
|
||||
<Compile Include=".\IBM.Data.DB2\DB2Constants.cs" />
|
||||
<Compile Include=".\IBM.Data.DB2\DB2DataAdapter.cs" />
|
||||
<Compile Include=".\IBM.Data.DB2\DB2DataReader.cs" />
|
||||
<Compile Include=".\IBM.Data.DB2\DB2Environment.cs" />
|
||||
<Compile Include=".\IBM.Data.DB2\DB2Error.cs" />
|
||||
<Compile Include=".\IBM.Data.DB2\DB2ErrorCollection.cs" />
|
||||
<Compile Include=".\IBM.Data.DB2\DB2Exception.cs" />
|
||||
<Compile Include=".\IBM.Data.DB2\DB2InfoMessageEventHandler.cs" />
|
||||
<Compile Include=".\IBM.Data.DB2\DB2Parameter.cs" />
|
||||
<Compile Include=".\IBM.Data.DB2\DB2ParameterCollection.cs" />
|
||||
<Compile Include=".\IBM.Data.DB2\DB2RowUpdatedEventArgs.cs" />
|
||||
<Compile Include=".\IBM.Data.DB2\DB2RowUpdatedEventHandler.cs" />
|
||||
<Compile Include=".\IBM.Data.DB2\DB2RowUpdatingEventArgs.cs" />
|
||||
<Compile Include=".\IBM.Data.DB2\DB2RowUpdatingEventHandler.cs" />
|
||||
<Compile Include=".\IBM.Data.DB2\DB2Transaction.cs" />
|
||||
<Compile Include=".\IBM.Data.DB2\DB2Type.cs" />
|
||||
|
||||
</ItemGroup>
|
||||
<!-- 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>
|
||||
-->
|
||||
<PropertyGroup>
|
||||
<PreBuildEvent></PreBuildEvent>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="mscorlib.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="mscorlib.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\\lib\build\System.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Xml.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\\lib\build\System.Xml.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Data.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\\lib\build\System.Data.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Properties\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -0,0 +1,130 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<OutputPath>./../../class/lib/net_2_0</OutputPath>
|
||||
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>mscorlib</RootNamespace>
|
||||
<AssemblyName>ICSharpCode.SharpZipLib</AssemblyName>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<StartupObject>
|
||||
</StartupObject>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AdditionalLibPaths>./../../class/lib/net_2_0</AdditionalLibPaths>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AdditionalLibPaths>./../../class/lib/net_2_0</AdditionalLibPaths>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<ItemGroup>
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\Streams\InflaterInputStream.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\Streams\DeflaterOutputStream.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\Streams\StreamManipulator.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\Streams\OutputWindow.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\InflaterHuffmanTree.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\DeflaterHuffman.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\DeflaterPending.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\DeflaterEngine.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\PendingBuffer.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\DeflaterConstants.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\Inflater.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\Deflater.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\InflaterDynHeader.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Zip\ZipInputStream.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Zip\ZipConstants.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Zip\ZipNameTransform.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Zip\ZipOutputStream.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Zip\FastZip.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Zip\ZipException.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Zip\ZipFile.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Zip\ZipEntry.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Checksums\StrangeCRC.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Checksums\IChecksum.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Checksums\Adler32.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Checksums\CRC32.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\BZip2\BZip2InputStream.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\BZip2\BZip2Constants.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\BZip2\BZip2OutputStream.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\BZip2\BZip2Exception.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\BZip2\BZip2.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Tar\InvalidHeaderException.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Tar\TarHeader.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Tar\TarBuffer.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Tar\TarInputStream.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Tar\TarOutputStream.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Tar\TarException.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Tar\TarArchive.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Tar\TarEntry.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Core\FileSystemScanner.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Core\PathFilter.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Core\INameTransform.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Core\NameFilter.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\GZip\GzipInputStream.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\GZip\GZIPConstants.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\GZip\GzipOutputStream.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\GZip\GZipException.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Encryption\PkzipClassic.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\AssemblyInfo.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Main.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\SharpZipBaseException.cs" />
|
||||
|
||||
</ItemGroup>
|
||||
<!-- 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>
|
||||
-->
|
||||
<PropertyGroup>
|
||||
<PreBuildEvent></PreBuildEvent>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="mscorlib.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="mscorlib.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\\lib\build\System.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Xml.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\\lib\build\System.Xml.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Properties\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -0,0 +1,130 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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>{155AEF28-C81F-405D-9072-9D52780E3E70}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<OutputPath>./../../class/lib/net_4_0</OutputPath>
|
||||
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>mscorlib</RootNamespace>
|
||||
<AssemblyName>ICSharpCode.SharpZipLib</AssemblyName>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<StartupObject>
|
||||
</StartupObject>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AdditionalLibPaths>./../../class/lib/net_4_0</AdditionalLibPaths>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<NoWarn>1699</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AdditionalLibPaths>./../../class/lib/net_4_0</AdditionalLibPaths>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<ItemGroup>
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\Streams\InflaterInputStream.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\Streams\DeflaterOutputStream.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\Streams\StreamManipulator.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\Streams\OutputWindow.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\InflaterHuffmanTree.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\DeflaterHuffman.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\DeflaterPending.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\DeflaterEngine.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\PendingBuffer.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\DeflaterConstants.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\Inflater.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\Deflater.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Zip\Compression\InflaterDynHeader.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Zip\ZipInputStream.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Zip\ZipConstants.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Zip\ZipNameTransform.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Zip\ZipOutputStream.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Zip\FastZip.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Zip\ZipException.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Zip\ZipFile.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Zip\ZipEntry.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Checksums\StrangeCRC.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Checksums\IChecksum.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Checksums\Adler32.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Checksums\CRC32.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\BZip2\BZip2InputStream.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\BZip2\BZip2Constants.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\BZip2\BZip2OutputStream.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\BZip2\BZip2Exception.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\BZip2\BZip2.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Tar\InvalidHeaderException.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Tar\TarHeader.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Tar\TarBuffer.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Tar\TarInputStream.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Tar\TarOutputStream.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Tar\TarException.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Tar\TarArchive.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Tar\TarEntry.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Core\FileSystemScanner.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Core\PathFilter.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Core\INameTransform.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Core\NameFilter.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\GZip\GzipInputStream.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\GZip\GZIPConstants.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\GZip\GzipOutputStream.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\GZip\GZipException.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Encryption\PkzipClassic.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\AssemblyInfo.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\Main.cs" />
|
||||
<Compile Include="ICSharpCode.SharpZipLib\SharpZipBaseException.cs" />
|
||||
|
||||
</ItemGroup>
|
||||
<!-- 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>
|
||||
-->
|
||||
<PropertyGroup>
|
||||
<PreBuildEvent></PreBuildEvent>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="mscorlib.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="mscorlib.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\\lib\build\mscorlib.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\\lib\build\System.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Xml.dll">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\\lib\build\System.Xml.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Properties\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -50,7 +50,25 @@ namespace IKVM.Reflection
|
||||
public abstract ManifestResourceInfo GetManifestResourceInfo(string resourceName);
|
||||
public abstract System.IO.Stream GetManifestResourceStream(string resourceName);
|
||||
|
||||
internal abstract Type GetTypeImpl(string typeName);
|
||||
internal Type GetTypeImpl(string typeName)
|
||||
{
|
||||
Type type = FindType(TypeName.Split(TypeNameParser.Unescape(typeName)));
|
||||
if (type == null && __IsMissing)
|
||||
{
|
||||
throw new MissingAssemblyException((MissingAssembly)this);
|
||||
}
|
||||
return type;
|
||||
}
|
||||
|
||||
internal abstract Type FindType(TypeName name);
|
||||
|
||||
// The differences between ResolveType and FindType are:
|
||||
// - ResolveType is only used when a type is assumed to exist (because another module's metadata claims it)
|
||||
// - ResolveType can return a MissingType
|
||||
internal Type ResolveType(TypeName typeName)
|
||||
{
|
||||
return FindType(typeName) ?? universe.GetMissingTypeOrThrow(this.ManifestModule, null, typeName);
|
||||
}
|
||||
|
||||
public Module[] GetModules()
|
||||
{
|
||||
@@ -154,6 +172,11 @@ namespace IKVM.Reflection
|
||||
}
|
||||
}
|
||||
|
||||
public virtual bool __IsMissing
|
||||
{
|
||||
get { return false; }
|
||||
}
|
||||
|
||||
internal abstract IList<CustomAttributeData> GetCustomAttributesData(Type attributeType);
|
||||
}
|
||||
}
|
||||
@@ -28,6 +28,11 @@ namespace IKVM.Reflection
|
||||
{
|
||||
public abstract class ConstructorInfo : MethodBase
|
||||
{
|
||||
// prevent external subclasses
|
||||
internal ConstructorInfo()
|
||||
{
|
||||
}
|
||||
|
||||
public static readonly string ConstructorName = ".ctor";
|
||||
public static readonly string TypeConstructorName = ".cctor";
|
||||
|
||||
@@ -196,6 +201,11 @@ namespace IKVM.Reflection
|
||||
get { return method.MetadataToken; }
|
||||
}
|
||||
|
||||
public override bool __IsMissing
|
||||
{
|
||||
get { return method.__IsMissing; }
|
||||
}
|
||||
|
||||
internal override MethodInfo GetMethodInfo()
|
||||
{
|
||||
return method;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright (C) 2009-2010 Jeroen Frijters
|
||||
Copyright (C) 2009-2011 Jeroen Frijters
|
||||
|
||||
This software is provided 'as-is', without any express or implied
|
||||
warranty. In no event will the authors be held liable for any damages
|
||||
@@ -381,31 +381,24 @@ namespace IKVM.Reflection
|
||||
return null;
|
||||
}
|
||||
|
||||
public void __ReadTypeName(out string ns, out string name)
|
||||
[Obsolete("Use Constructor.DeclaringType instead.")]
|
||||
internal bool __TryReadTypeName(out string ns, out string name)
|
||||
{
|
||||
if (lazyConstructor == null)
|
||||
if (Constructor.DeclaringType.IsNested)
|
||||
{
|
||||
ModuleReader mod = module as ModuleReader;
|
||||
if (mod != null)
|
||||
{
|
||||
int methodToken = mod.CustomAttribute.records[index].Type;
|
||||
if ((methodToken >> 24) == MemberRefTable.Index)
|
||||
{
|
||||
int methodIndex = (methodToken & 0xFFFFFF) - 1;
|
||||
int typeToken = mod.MemberRef.records[methodIndex].Class;
|
||||
if ((typeToken >> 24) == TypeRefTable.Index)
|
||||
{
|
||||
int typeIndex = (typeToken & 0xFFFFFF) - 1;
|
||||
int typeNameSpace = mod.TypeRef.records[typeIndex].TypeNameSpace;
|
||||
ns = typeNameSpace == 0 ? null : mod.GetString(typeNameSpace);
|
||||
name = mod.GetString(mod.TypeRef.records[typeIndex].TypeName);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
ns = null;
|
||||
name = null;
|
||||
return false;
|
||||
}
|
||||
ns = Constructor.DeclaringType.Namespace;
|
||||
name = Constructor.DeclaringType.Name;
|
||||
ns = Constructor.DeclaringType.__Namespace;
|
||||
name = Constructor.DeclaringType.__Name;
|
||||
return true;
|
||||
}
|
||||
|
||||
// for use by mcs
|
||||
internal byte[] __GetBlob()
|
||||
{
|
||||
return ((ModuleReader)module).GetBlobCopy(module.CustomAttribute.records[index].Value);
|
||||
}
|
||||
|
||||
public ConstructorInfo Constructor
|
||||
@@ -565,6 +558,10 @@ namespace IKVM.Reflection
|
||||
|
||||
public static IList<CustomAttributeData> __GetDeclarativeSecurity(Assembly assembly)
|
||||
{
|
||||
if (assembly.__IsMissing)
|
||||
{
|
||||
throw new MissingAssemblyException((MissingAssembly)assembly);
|
||||
}
|
||||
return assembly.ManifestModule.GetDeclarativeSecurity(0x20000001);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright (C) 2008-2010 Jeroen Frijters
|
||||
Copyright (C) 2008-2011 Jeroen Frijters
|
||||
|
||||
This software is provided 'as-is', without any express or implied
|
||||
warranty. In no event will the authors be held liable for any damages
|
||||
@@ -253,12 +253,30 @@ namespace IKVM.Reflection.Emit
|
||||
this.fileKind = fileKind;
|
||||
}
|
||||
|
||||
public void __Save(Stream stream, PortableExecutableKinds portableExecutableKind, ImageFileMachine imageFileMachine)
|
||||
{
|
||||
if (!stream.CanRead || !stream.CanWrite || !stream.CanSeek || stream.Position != 0)
|
||||
{
|
||||
throw new ArgumentException("Stream must support read/write/seek and current position must be zero.", "stream");
|
||||
}
|
||||
if (modules.Count != 1)
|
||||
{
|
||||
throw new NotSupportedException("Saving to a stream is only supported for single module assemblies.");
|
||||
}
|
||||
SaveImpl(modules[0].fileName, stream, portableExecutableKind, imageFileMachine);
|
||||
}
|
||||
|
||||
public void Save(string assemblyFileName)
|
||||
{
|
||||
Save(assemblyFileName, PortableExecutableKinds.ILOnly, ImageFileMachine.I386);
|
||||
}
|
||||
|
||||
public void Save(string assemblyFileName, PortableExecutableKinds portableExecutableKind, ImageFileMachine imageFileMachine)
|
||||
{
|
||||
SaveImpl(assemblyFileName, null, portableExecutableKind, imageFileMachine);
|
||||
}
|
||||
|
||||
private void SaveImpl(string assemblyFileName, Stream streamOrNull, PortableExecutableKinds portableExecutableKind, ImageFileMachine imageFileMachine)
|
||||
{
|
||||
ModuleBuilder manifestModule = null;
|
||||
|
||||
@@ -398,7 +416,7 @@ namespace IKVM.Reflection.Emit
|
||||
}
|
||||
|
||||
// finally, write the manifest module
|
||||
ModuleWriter.WriteModule(keyPair, publicKey, manifestModule, fileKind, portableExecutableKind, imageFileMachine, unmanagedResources ?? manifestModule.unmanagedResources, entryPointToken);
|
||||
ModuleWriter.WriteModule(keyPair, publicKey, manifestModule, fileKind, portableExecutableKind, imageFileMachine, unmanagedResources ?? manifestModule.unmanagedResources, entryPointToken, streamOrNull);
|
||||
}
|
||||
|
||||
private int AddFile(ModuleBuilder manifestModule, string fileName, int flags)
|
||||
@@ -489,11 +507,11 @@ namespace IKVM.Reflection.Emit
|
||||
return list.ToArray();
|
||||
}
|
||||
|
||||
internal override Type GetTypeImpl(string typeName)
|
||||
internal override Type FindType(TypeName typeName)
|
||||
{
|
||||
foreach (ModuleBuilder mb in modules)
|
||||
{
|
||||
Type type = mb.GetTypeImpl(typeName);
|
||||
Type type = mb.FindType(typeName);
|
||||
if (type != null)
|
||||
{
|
||||
return type;
|
||||
@@ -501,7 +519,7 @@ namespace IKVM.Reflection.Emit
|
||||
}
|
||||
foreach (Module module in addedModules)
|
||||
{
|
||||
Type type = module.GetTypeImpl(typeName);
|
||||
Type type = module.FindType(typeName);
|
||||
if (type != null)
|
||||
{
|
||||
return type;
|
||||
@@ -644,7 +662,7 @@ namespace IKVM.Reflection.Emit
|
||||
get { return assembly; }
|
||||
}
|
||||
|
||||
internal override Type GetTypeImpl(string typeName)
|
||||
internal override Type FindType(TypeName typeName)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -85,6 +85,11 @@ namespace IKVM.Reflection.Emit
|
||||
return methodBuilder.GetILGenerator(streamSize);
|
||||
}
|
||||
|
||||
public void __ReleaseILGenerator()
|
||||
{
|
||||
methodBuilder.__ReleaseILGenerator();
|
||||
}
|
||||
|
||||
public override CallingConventions CallingConvention
|
||||
{
|
||||
get { return methodBuilder.CallingConvention; }
|
||||
|
||||
@@ -375,13 +375,14 @@ namespace IKVM.Reflection.Emit
|
||||
|
||||
internal int WriteBlob(ModuleBuilder moduleBuilder)
|
||||
{
|
||||
ByteBuffer bb = new ByteBuffer(100);
|
||||
ByteBuffer bb;
|
||||
if (blob != null)
|
||||
{
|
||||
bb.Write(blob);
|
||||
bb = ByteBuffer.Wrap(blob);
|
||||
}
|
||||
else
|
||||
{
|
||||
bb = new ByteBuffer(100);
|
||||
BlobWriter bw = new BlobWriter(moduleBuilder, this, bb);
|
||||
bw.WriteCustomAttributeBlob();
|
||||
}
|
||||
|
||||
@@ -33,14 +33,30 @@ namespace IKVM.Reflection.Emit
|
||||
private readonly FieldBuilder fieldBuilder;
|
||||
|
||||
internal EnumBuilder(TypeBuilder typeBuilder, FieldBuilder fieldBuilder)
|
||||
: base(typeBuilder)
|
||||
{
|
||||
this.typeBuilder = typeBuilder;
|
||||
this.fieldBuilder = fieldBuilder;
|
||||
}
|
||||
|
||||
public override Type UnderlyingSystemType
|
||||
public override string __Name
|
||||
{
|
||||
get { return typeBuilder.UnderlyingSystemType; }
|
||||
get { return typeBuilder.__Name; }
|
||||
}
|
||||
|
||||
public override string __Namespace
|
||||
{
|
||||
get { return typeBuilder.__Namespace; }
|
||||
}
|
||||
|
||||
public override string Name
|
||||
{
|
||||
get { return typeBuilder.Name; }
|
||||
}
|
||||
|
||||
public override string FullName
|
||||
{
|
||||
get { return typeBuilder.FullName; }
|
||||
}
|
||||
|
||||
public override Type BaseType
|
||||
|
||||
@@ -166,33 +166,21 @@ namespace IKVM.Reflection.Emit
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
if (x.tryOffset >= y.handlerOffset && x.tryOffset + x.tryLength <= y.handlerOffset + y.handlerLength)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
if (y.tryOffset >= x.handlerOffset && y.tryOffset + y.tryLength <= x.handlerOffset + x.handlerLength)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
if (x.tryOffset == y.tryOffset && x.tryLength == y.tryLength)
|
||||
else if (x.tryOffset == y.tryOffset && x.tryLength == y.tryLength)
|
||||
{
|
||||
return x.ordinal < y.ordinal ? -1 : 1;
|
||||
}
|
||||
if (x.tryOffset + x.tryLength <= y.tryOffset)
|
||||
else if (x.tryOffset >= y.tryOffset && x.handlerOffset + x.handlerLength <= y.handlerOffset + y.handlerLength)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
if (y.tryOffset + y.tryLength <= x.tryOffset)
|
||||
else if (y.tryOffset >= x.tryOffset && y.handlerOffset + y.handlerLength <= x.handlerOffset + x.handlerLength)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
if (x.tryOffset > y.tryOffset || (x.tryOffset == y.tryOffset && x.tryLength < y.tryLength))
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
else
|
||||
{
|
||||
return 1;
|
||||
return x.ordinal < y.ordinal ? -1 : 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright (C) 2008-2010 Jeroen Frijters
|
||||
Copyright (C) 2008-2011 Jeroen Frijters
|
||||
|
||||
This software is provided 'as-is', without any express or implied
|
||||
warranty. In no event will the authors be held liable for any damages
|
||||
@@ -37,8 +37,8 @@ namespace IKVM.Reflection.Emit
|
||||
{
|
||||
private readonly TypeBuilder typeBuilder;
|
||||
private readonly string name;
|
||||
private readonly int nameIndex;
|
||||
private readonly int pseudoToken;
|
||||
private int nameIndex;
|
||||
private int signature;
|
||||
private Type returnType;
|
||||
private Type[] parameterTypes;
|
||||
@@ -46,7 +46,7 @@ namespace IKVM.Reflection.Emit
|
||||
private MethodAttributes attributes;
|
||||
private MethodImplAttributes implFlags;
|
||||
private ILGenerator ilgen;
|
||||
private int rva;
|
||||
private int rva = -1;
|
||||
private readonly CallingConventions callingConvention;
|
||||
private List<ParameterBuilder> parameters;
|
||||
private GenericTypeParameterBuilder[] gtpb;
|
||||
@@ -59,9 +59,6 @@ namespace IKVM.Reflection.Emit
|
||||
this.typeBuilder = typeBuilder;
|
||||
this.name = name;
|
||||
this.pseudoToken = typeBuilder.ModuleBuilder.AllocPseudoToken();
|
||||
// because all the MethodBuilders constitute a virtual MethodDef table, we cannot allocate the string during WriteMethodDefRecord,
|
||||
// since by then the metadata has already been frozen
|
||||
this.nameIndex = typeBuilder.ModuleBuilder.Strings.Add(name);
|
||||
this.attributes = attributes;
|
||||
if ((attributes & MethodAttributes.Static) == 0)
|
||||
{
|
||||
@@ -77,6 +74,10 @@ namespace IKVM.Reflection.Emit
|
||||
|
||||
public ILGenerator GetILGenerator(int streamSize)
|
||||
{
|
||||
if (rva != -1)
|
||||
{
|
||||
throw new InvalidOperationException();
|
||||
}
|
||||
if (ilgen == null)
|
||||
{
|
||||
ilgen = new ILGenerator(typeBuilder.ModuleBuilder, streamSize);
|
||||
@@ -84,6 +85,23 @@ namespace IKVM.Reflection.Emit
|
||||
return ilgen;
|
||||
}
|
||||
|
||||
public void __ReleaseILGenerator()
|
||||
{
|
||||
if (ilgen != null)
|
||||
{
|
||||
if (this.ModuleBuilder.symbolWriter != null)
|
||||
{
|
||||
this.ModuleBuilder.symbolWriter.OpenMethod(new SymbolToken(-pseudoToken | 0x06000000));
|
||||
}
|
||||
rva = ilgen.WriteBody(initLocals);
|
||||
if (this.ModuleBuilder.symbolWriter != null)
|
||||
{
|
||||
this.ModuleBuilder.symbolWriter.CloseMethod();
|
||||
}
|
||||
ilgen = null;
|
||||
}
|
||||
}
|
||||
|
||||
public void SetCustomAttribute(ConstructorInfo con, byte[] binaryAttribute)
|
||||
{
|
||||
SetCustomAttribute(new CustomAttributeBuilder(con, binaryAttribute));
|
||||
@@ -125,7 +143,6 @@ namespace IKVM.Reflection.Emit
|
||||
const short BestFitOff = 0x0020;
|
||||
const short CharMapErrorOn = 0x1000;
|
||||
const short CharMapErrorOff = 0x2000;
|
||||
int name = this.nameIndex;
|
||||
short flags = CharSetNotSpec | CallConvWinapi;
|
||||
if (bestFitMapping.HasValue)
|
||||
{
|
||||
@@ -174,10 +191,6 @@ namespace IKVM.Reflection.Emit
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (entryName != null)
|
||||
{
|
||||
name = this.ModuleBuilder.Strings.Add(entryName);
|
||||
}
|
||||
if (exactSpelling.HasValue && exactSpelling.Value)
|
||||
{
|
||||
flags |= NoMangle;
|
||||
@@ -193,7 +206,7 @@ namespace IKVM.Reflection.Emit
|
||||
ImplMapTable.Record rec = new ImplMapTable.Record();
|
||||
rec.MappingFlags = flags;
|
||||
rec.MemberForwarded = pseudoToken;
|
||||
rec.ImportName = name;
|
||||
rec.ImportName = this.ModuleBuilder.Strings.Add(entryName ?? name);
|
||||
rec.ImportScope = this.ModuleBuilder.ModuleRef.FindOrAddRecord(dllName == null ? 0 : this.ModuleBuilder.Strings.Add(dllName));
|
||||
this.ModuleBuilder.ImplMap.AddRecord(rec);
|
||||
}
|
||||
@@ -582,25 +595,10 @@ namespace IKVM.Reflection.Emit
|
||||
|
||||
internal void Bake()
|
||||
{
|
||||
this.nameIndex = this.ModuleBuilder.Strings.Add(name);
|
||||
this.signature = this.ModuleBuilder.GetSignatureBlobIndex(this.MethodSignature);
|
||||
|
||||
if (ilgen != null)
|
||||
{
|
||||
if (this.ModuleBuilder.symbolWriter != null)
|
||||
{
|
||||
this.ModuleBuilder.symbolWriter.OpenMethod(new SymbolToken(-pseudoToken | 0x06000000));
|
||||
}
|
||||
rva = ilgen.WriteBody(initLocals);
|
||||
if (this.ModuleBuilder.symbolWriter != null)
|
||||
{
|
||||
this.ModuleBuilder.symbolWriter.CloseMethod();
|
||||
}
|
||||
ilgen = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
rva = -1;
|
||||
}
|
||||
__ReleaseILGenerator();
|
||||
|
||||
if (declarativeSecurity != null)
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright (C) 2008-2010 Jeroen Frijters
|
||||
Copyright (C) 2008-2011 Jeroen Frijters
|
||||
|
||||
This software is provided 'as-is', without any express or implied
|
||||
warranty. In no event will the authors be held liable for any damages
|
||||
@@ -48,7 +48,6 @@ namespace IKVM.Reflection.Emit
|
||||
private readonly List<TypeBuilder> types = new List<TypeBuilder>();
|
||||
private readonly Dictionary<Type, int> typeTokens = new Dictionary<Type, int>();
|
||||
private readonly Dictionary<Type, int> memberRefTypeTokens = new Dictionary<Type, int>();
|
||||
private readonly Dictionary<string, TypeBuilder> fullNameToType = new Dictionary<string, TypeBuilder>();
|
||||
internal readonly ByteBuffer methodBodies = new ByteBuffer(128 * 1024);
|
||||
internal readonly List<int> tokenFixupOffsets = new List<int>();
|
||||
internal readonly ByteBuffer initializedData = new ByteBuffer(512);
|
||||
@@ -109,7 +108,7 @@ namespace IKVM.Reflection.Emit
|
||||
symbolWriter = SymbolSupport.CreateSymbolWriterFor(this);
|
||||
}
|
||||
// <Module> must be the first record in the TypeDef table
|
||||
moduleType = new TypeBuilder(this, "<Module>", null, 0);
|
||||
moduleType = new TypeBuilder(this, null, "<Module>");
|
||||
types.Add(moduleType);
|
||||
}
|
||||
|
||||
@@ -201,44 +200,34 @@ namespace IKVM.Reflection.Emit
|
||||
|
||||
public TypeBuilder DefineType(string name, TypeAttributes attr, Type parent, PackingSize packingSize, int typesize)
|
||||
{
|
||||
if (parent == null && (attr & TypeAttributes.Interface) == 0)
|
||||
string ns = null;
|
||||
int lastdot = name.LastIndexOf('.');
|
||||
if (lastdot > 0)
|
||||
{
|
||||
parent = universe.System_Object;
|
||||
ns = name.Substring(0, lastdot);
|
||||
name = name.Substring(lastdot + 1);
|
||||
}
|
||||
TypeBuilder typeBuilder = new TypeBuilder(this, name, parent, attr);
|
||||
PostDefineType(typeBuilder, packingSize, typesize);
|
||||
TypeBuilder typeBuilder = __DefineType(ns, name);
|
||||
typeBuilder.__SetAttributes(attr);
|
||||
typeBuilder.SetParent(parent);
|
||||
SetPackingSizeAndTypeSize(typeBuilder, packingSize, typesize);
|
||||
return typeBuilder;
|
||||
}
|
||||
|
||||
public EnumBuilder DefineEnum(string name, TypeAttributes visibility, Type underlyingType)
|
||||
public TypeBuilder __DefineType(string ns, string name)
|
||||
{
|
||||
TypeBuilder tb = DefineType(name, (visibility & TypeAttributes.VisibilityMask) | TypeAttributes.Sealed, universe.System_Enum);
|
||||
FieldBuilder fb = tb.DefineField("value__", underlyingType, FieldAttributes.Public | FieldAttributes.SpecialName | FieldAttributes.RTSpecialName);
|
||||
return new EnumBuilder(tb, fb);
|
||||
return DefineType(this, ns, name);
|
||||
}
|
||||
|
||||
internal TypeBuilder DefineNestedTypeHelper(TypeBuilder enclosingType, string name, TypeAttributes attr, Type parent, PackingSize packingSize, int typesize)
|
||||
{
|
||||
if (parent == null && (attr & TypeAttributes.Interface) == 0)
|
||||
{
|
||||
parent = universe.System_Object;
|
||||
}
|
||||
TypeBuilder typeBuilder = new TypeBuilder(enclosingType, name, parent, attr);
|
||||
PostDefineType(typeBuilder, packingSize, typesize);
|
||||
if (enclosingType != null)
|
||||
{
|
||||
NestedClassTable.Record rec = new NestedClassTable.Record();
|
||||
rec.NestedClass = typeBuilder.MetadataToken;
|
||||
rec.EnclosingClass = enclosingType.MetadataToken;
|
||||
this.NestedClass.AddRecord(rec);
|
||||
}
|
||||
return typeBuilder;
|
||||
}
|
||||
|
||||
private void PostDefineType(TypeBuilder typeBuilder, PackingSize packingSize, int typesize)
|
||||
internal TypeBuilder DefineType(ITypeOwner owner, string ns, string name)
|
||||
{
|
||||
TypeBuilder typeBuilder = new TypeBuilder(owner, ns, name);
|
||||
types.Add(typeBuilder);
|
||||
fullNameToType.Add(typeBuilder.FullName, typeBuilder);
|
||||
return typeBuilder;
|
||||
}
|
||||
|
||||
internal void SetPackingSizeAndTypeSize(TypeBuilder typeBuilder, PackingSize packingSize, int typesize)
|
||||
{
|
||||
if (packingSize != PackingSize.Unspecified || typesize != 0)
|
||||
{
|
||||
ClassLayoutTable.Record rec = new ClassLayoutTable.Record();
|
||||
@@ -249,6 +238,13 @@ namespace IKVM.Reflection.Emit
|
||||
}
|
||||
}
|
||||
|
||||
public EnumBuilder DefineEnum(string name, TypeAttributes visibility, Type underlyingType)
|
||||
{
|
||||
TypeBuilder tb = DefineType(name, (visibility & TypeAttributes.VisibilityMask) | TypeAttributes.Sealed, universe.System_Enum);
|
||||
FieldBuilder fb = tb.DefineField("value__", underlyingType, FieldAttributes.Public | FieldAttributes.SpecialName | FieldAttributes.RTSpecialName);
|
||||
return new EnumBuilder(tb, fb);
|
||||
}
|
||||
|
||||
public FieldBuilder __DefineField(string name, Type type, Type[] requiredCustomModifiers, Type[] optionalCustomModifiers, FieldAttributes attributes)
|
||||
{
|
||||
return moduleType.DefineField(name, type, requiredCustomModifiers, optionalCustomModifiers, attributes);
|
||||
@@ -314,7 +310,7 @@ namespace IKVM.Reflection.Emit
|
||||
{
|
||||
ExportedTypeTable.Record rec = new ExportedTypeTable.Record();
|
||||
rec.TypeDefId = type.MetadataToken;
|
||||
rec.TypeName = this.Strings.Add(TypeNameParser.Unescape(type.Name));
|
||||
rec.TypeName = this.Strings.Add(type.__Name);
|
||||
if (type.IsNested)
|
||||
{
|
||||
rec.Flags = 0;
|
||||
@@ -324,8 +320,8 @@ namespace IKVM.Reflection.Emit
|
||||
else
|
||||
{
|
||||
rec.Flags = 0x00200000; // CorTypeAttr.tdForwarder
|
||||
string ns = type.Namespace;
|
||||
rec.TypeNamespace = ns == null ? 0 : this.Strings.Add(TypeNameParser.Unescape(ns));
|
||||
string ns = type.__Namespace;
|
||||
rec.TypeNamespace = ns == null ? 0 : this.Strings.Add(ns);
|
||||
rec.Implementation = ImportAssemblyRef(type.Assembly);
|
||||
}
|
||||
return 0x27000000 | this.ExportedType.FindOrAddRecord(rec);
|
||||
@@ -432,11 +428,16 @@ namespace IKVM.Reflection.Emit
|
||||
get { return asm; }
|
||||
}
|
||||
|
||||
internal override Type GetTypeImpl(string typeName)
|
||||
internal override Type FindType(TypeName name)
|
||||
{
|
||||
TypeBuilder type;
|
||||
fullNameToType.TryGetValue(typeName, out type);
|
||||
return type;
|
||||
foreach (Type type in types)
|
||||
{
|
||||
if (type.__Namespace == name.Namespace && type.__Name == name.Name)
|
||||
{
|
||||
return type;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
internal override void GetTypesImpl(List<Type> list)
|
||||
@@ -617,16 +618,14 @@ namespace IKVM.Reflection.Emit
|
||||
if (type.IsNested)
|
||||
{
|
||||
rec.ResolutionScope = GetTypeToken(type.DeclaringType).Token;
|
||||
rec.TypeName = this.Strings.Add(TypeNameParser.Unescape(type.Name));
|
||||
rec.TypeNameSpace = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
rec.ResolutionScope = ImportAssemblyRef(type.Assembly);
|
||||
rec.TypeName = this.Strings.Add(TypeNameParser.Unescape(type.Name));
|
||||
string ns = type.Namespace;
|
||||
rec.TypeNameSpace = ns == null ? 0 : this.Strings.Add(TypeNameParser.Unescape(ns));
|
||||
}
|
||||
rec.TypeName = this.Strings.Add(type.__Name);
|
||||
string ns = type.__Namespace;
|
||||
rec.TypeNameSpace = ns == null ? 0 : this.Strings.Add(ns);
|
||||
token = 0x01000000 | this.TypeRef.AddRecord(rec);
|
||||
}
|
||||
typeTokens.Add(type, token);
|
||||
@@ -890,9 +889,9 @@ namespace IKVM.Reflection.Emit
|
||||
ExportedTypeTable.Record rec = new ExportedTypeTable.Record();
|
||||
rec.Flags = (int)type.Attributes;
|
||||
rec.TypeDefId = type.MetadataToken & 0xFFFFFF;
|
||||
rec.TypeName = this.Strings.Add(TypeNameParser.Unescape(type.Name));
|
||||
string ns = type.Namespace;
|
||||
rec.TypeNamespace = ns == null ? 0 : this.Strings.Add(TypeNameParser.Unescape(ns));
|
||||
rec.TypeName = this.Strings.Add(type.__Name);
|
||||
string ns = type.__Namespace;
|
||||
rec.TypeNamespace = ns == null ? 0 : this.Strings.Add(ns);
|
||||
if (type.IsNested)
|
||||
{
|
||||
rec.Implementation = declaringTypes[type.DeclaringType];
|
||||
@@ -1186,6 +1185,20 @@ namespace IKVM.Reflection.Emit
|
||||
}
|
||||
|
||||
public void __Save(PortableExecutableKinds portableExecutableKind, ImageFileMachine imageFileMachine)
|
||||
{
|
||||
SaveImpl(null, portableExecutableKind, imageFileMachine);
|
||||
}
|
||||
|
||||
public void __Save(Stream stream, PortableExecutableKinds portableExecutableKind, ImageFileMachine imageFileMachine)
|
||||
{
|
||||
if (!stream.CanRead || !stream.CanWrite || !stream.CanSeek || stream.Position != 0)
|
||||
{
|
||||
throw new ArgumentException("Stream must support read/write/seek and current position must be zero.", "stream");
|
||||
}
|
||||
SaveImpl(stream, portableExecutableKind, imageFileMachine);
|
||||
}
|
||||
|
||||
private void SaveImpl(Stream streamOrNull, PortableExecutableKinds portableExecutableKind, ImageFileMachine imageFileMachine)
|
||||
{
|
||||
PopulatePropertyAndEventTables();
|
||||
IList<CustomAttributeData> attributes = asm.GetCustomAttributesData(null);
|
||||
@@ -1225,7 +1238,7 @@ namespace IKVM.Reflection.Emit
|
||||
}
|
||||
}
|
||||
FillAssemblyRefTable();
|
||||
ModuleWriter.WriteModule(null, null, this, PEFileKinds.Dll, portableExecutableKind, imageFileMachine, unmanagedResources, 0);
|
||||
ModuleWriter.WriteModule(null, null, this, PEFileKinds.Dll, portableExecutableKind, imageFileMachine, unmanagedResources, 0, streamOrNull);
|
||||
}
|
||||
|
||||
public void __AddAssemblyReference(AssemblyName assemblyName)
|
||||
|
||||
@@ -25,7 +25,7 @@ using System;
|
||||
|
||||
namespace IKVM.Reflection.Emit
|
||||
{
|
||||
public class OpCodes
|
||||
public sealed class OpCodes
|
||||
{
|
||||
public static readonly OpCode Nop = new OpCode(4888);
|
||||
public static readonly OpCode Break = new OpCode(4199116);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright (C) 2008-2010 Jeroen Frijters
|
||||
Copyright (C) 2008-2011 Jeroen Frijters
|
||||
|
||||
This software is provided 'as-is', without any express or implied
|
||||
warranty. In no event will the authors be held liable for any damages
|
||||
@@ -86,11 +86,6 @@ namespace IKVM.Reflection.Emit
|
||||
get { return DeclaringType.Namespace; }
|
||||
}
|
||||
|
||||
public override Type UnderlyingSystemType
|
||||
{
|
||||
get { return this; }
|
||||
}
|
||||
|
||||
public override string Name
|
||||
{
|
||||
get { return name; }
|
||||
@@ -226,10 +221,11 @@ namespace IKVM.Reflection.Emit
|
||||
private readonly ITypeOwner owner;
|
||||
private readonly int token;
|
||||
private int extends;
|
||||
private Type baseType;
|
||||
private Type lazyBaseType; // (lazyBaseType == null && attribs & TypeAttributes.Interface) == 0) => BaseType == System.Object
|
||||
private readonly int typeName;
|
||||
private readonly int typeNameSpace;
|
||||
private readonly string nameOrFullName;
|
||||
private readonly string ns;
|
||||
private readonly string name;
|
||||
private readonly List<MethodBuilder> methods = new List<MethodBuilder>();
|
||||
private readonly List<FieldBuilder> fields = new List<FieldBuilder>();
|
||||
private List<PropertyBuilder> properties;
|
||||
@@ -248,22 +244,13 @@ namespace IKVM.Reflection.Emit
|
||||
Baked = 4,
|
||||
}
|
||||
|
||||
internal TypeBuilder(ITypeOwner owner, string name, Type baseType, TypeAttributes attribs)
|
||||
internal TypeBuilder(ITypeOwner owner, string ns, string name)
|
||||
{
|
||||
this.owner = owner;
|
||||
this.token = this.ModuleBuilder.TypeDef.AllocToken();
|
||||
this.nameOrFullName = TypeNameParser.Escape(name);
|
||||
SetParent(baseType);
|
||||
this.attribs = attribs;
|
||||
if (!this.IsNested)
|
||||
{
|
||||
int lastdot = name.LastIndexOf('.');
|
||||
if (lastdot > 0)
|
||||
{
|
||||
this.typeNameSpace = this.ModuleBuilder.Strings.Add(name.Substring(0, lastdot));
|
||||
name = name.Substring(lastdot + 1);
|
||||
}
|
||||
}
|
||||
this.ns = ns;
|
||||
this.name = name;
|
||||
this.typeNameSpace = ns == null ? 0 : this.ModuleBuilder.Strings.Add(ns);
|
||||
this.typeName = this.ModuleBuilder.Strings.Add(name);
|
||||
}
|
||||
|
||||
@@ -272,7 +259,7 @@ namespace IKVM.Reflection.Emit
|
||||
ConstructorBuilder cb = DefineConstructor(attributes, CallingConventions.Standard, Type.EmptyTypes);
|
||||
ILGenerator ilgen = cb.GetILGenerator();
|
||||
ilgen.Emit(OpCodes.Ldarg_0);
|
||||
ilgen.Emit(OpCodes.Call, baseType.GetConstructor(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, Type.EmptyTypes, null));
|
||||
ilgen.Emit(OpCodes.Call, BaseType.GetConstructor(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, Type.EmptyTypes, null));
|
||||
ilgen.Emit(OpCodes.Ret);
|
||||
return cb;
|
||||
}
|
||||
@@ -442,25 +429,49 @@ namespace IKVM.Reflection.Emit
|
||||
|
||||
public TypeBuilder DefineNestedType(string name, TypeAttributes attr, Type parent)
|
||||
{
|
||||
this.typeFlags |= TypeFlags.HasNestedTypes;
|
||||
return this.ModuleBuilder.DefineNestedTypeHelper(this, name, attr, parent, PackingSize.Unspecified, 0);
|
||||
return DefineNestedType(name, attr, parent, 0);
|
||||
}
|
||||
|
||||
public TypeBuilder DefineNestedType(string name, TypeAttributes attr, Type parent, int typeSize)
|
||||
{
|
||||
this.typeFlags |= TypeFlags.HasNestedTypes;
|
||||
return this.ModuleBuilder.DefineNestedTypeHelper(this, name, attr, parent, PackingSize.Unspecified, typeSize);
|
||||
return DefineNestedType(name, attr, parent, PackingSize.Unspecified, typeSize);
|
||||
}
|
||||
|
||||
public TypeBuilder DefineNestedType(string name, TypeAttributes attr, Type parent, PackingSize packSize)
|
||||
{
|
||||
return DefineNestedType(name, attr, parent, packSize, 0);
|
||||
}
|
||||
|
||||
private TypeBuilder DefineNestedType(string name, TypeAttributes attr, Type parent, PackingSize packSize, int typeSize)
|
||||
{
|
||||
string ns = null;
|
||||
int lastdot = name.LastIndexOf('.');
|
||||
if (lastdot > 0)
|
||||
{
|
||||
ns = name.Substring(0, lastdot);
|
||||
name = name.Substring(lastdot + 1);
|
||||
}
|
||||
TypeBuilder typeBuilder = __DefineNestedType(ns, name);
|
||||
typeBuilder.__SetAttributes(attr);
|
||||
typeBuilder.SetParent(parent);
|
||||
this.ModuleBuilder.SetPackingSizeAndTypeSize(typeBuilder, PackingSize.Unspecified, typeSize);
|
||||
return typeBuilder;
|
||||
}
|
||||
|
||||
public TypeBuilder __DefineNestedType(string ns, string name)
|
||||
{
|
||||
this.typeFlags |= TypeFlags.HasNestedTypes;
|
||||
return this.ModuleBuilder.DefineNestedTypeHelper(this, name, attr, parent, packSize, 0);
|
||||
TypeBuilder typeBuilder = this.ModuleBuilder.DefineType(this, ns, name);
|
||||
NestedClassTable.Record rec = new NestedClassTable.Record();
|
||||
rec.NestedClass = typeBuilder.MetadataToken;
|
||||
rec.EnclosingClass = this.MetadataToken;
|
||||
this.ModuleBuilder.NestedClass.AddRecord(rec);
|
||||
return typeBuilder;
|
||||
}
|
||||
|
||||
public void SetParent(Type parent)
|
||||
{
|
||||
baseType = parent;
|
||||
lazyBaseType = parent;
|
||||
}
|
||||
|
||||
public void AddInterfaceImplementation(Type interfaceType)
|
||||
@@ -662,6 +673,7 @@ namespace IKVM.Reflection.Emit
|
||||
{
|
||||
this.ModuleBuilder.AddDeclarativeSecurity(token, declarativeSecurity);
|
||||
}
|
||||
Type baseType = this.BaseType;
|
||||
if (baseType != null)
|
||||
{
|
||||
extends = this.ModuleBuilder.GetTypeToken(baseType).Token;
|
||||
@@ -707,7 +719,18 @@ namespace IKVM.Reflection.Emit
|
||||
|
||||
public override Type BaseType
|
||||
{
|
||||
get { return baseType; }
|
||||
get
|
||||
{
|
||||
if (lazyBaseType == null && !IsInterface)
|
||||
{
|
||||
Type obj = Module.universe.System_Object;
|
||||
if (this != obj)
|
||||
{
|
||||
lazyBaseType = obj;
|
||||
}
|
||||
}
|
||||
return lazyBaseType;
|
||||
}
|
||||
}
|
||||
|
||||
public override string FullName
|
||||
@@ -716,28 +739,33 @@ namespace IKVM.Reflection.Emit
|
||||
{
|
||||
if (this.IsNested)
|
||||
{
|
||||
return this.DeclaringType.FullName + "+" + nameOrFullName;
|
||||
return this.DeclaringType.FullName + "+" + TypeNameParser.Escape(name);
|
||||
}
|
||||
if (ns == null)
|
||||
{
|
||||
return TypeNameParser.Escape(name);
|
||||
}
|
||||
else
|
||||
{
|
||||
return nameOrFullName;
|
||||
return TypeNameParser.Escape(ns) + "." + TypeNameParser.Escape(name);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override string __Name
|
||||
{
|
||||
get { return name; }
|
||||
}
|
||||
|
||||
public override string __Namespace
|
||||
{
|
||||
get { return ns; }
|
||||
}
|
||||
|
||||
public override string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.IsNested)
|
||||
{
|
||||
return nameOrFullName;
|
||||
}
|
||||
else
|
||||
{
|
||||
return base.Name;
|
||||
}
|
||||
}
|
||||
// FXBUG for a TypeBuilder the name is not escaped
|
||||
get { return name; }
|
||||
}
|
||||
|
||||
public override string Namespace
|
||||
@@ -745,17 +773,11 @@ namespace IKVM.Reflection.Emit
|
||||
get
|
||||
{
|
||||
// for some reason, TypeBuilder doesn't return null (and mcs depends on this)
|
||||
return base.Namespace ?? "";
|
||||
// note also that we don't return the declaring type namespace for nested types
|
||||
return ns ?? "";
|
||||
}
|
||||
}
|
||||
|
||||
internal string GetBakedNamespace()
|
||||
{
|
||||
// if you refer to the TypeBuilder via its baked Type, Namespace will return null
|
||||
// for the empty namespace (instead of "" like TypeBuilder.Namespace above does)
|
||||
return base.Namespace;
|
||||
}
|
||||
|
||||
public override TypeAttributes Attributes
|
||||
{
|
||||
get { return attribs; }
|
||||
@@ -1022,142 +1044,140 @@ namespace IKVM.Reflection.Emit
|
||||
|
||||
sealed class BakedType : Type
|
||||
{
|
||||
private readonly TypeBuilder typeBuilder;
|
||||
|
||||
internal BakedType(TypeBuilder typeBuilder)
|
||||
: base(typeBuilder)
|
||||
{
|
||||
this.typeBuilder = typeBuilder;
|
||||
}
|
||||
|
||||
public override string AssemblyQualifiedName
|
||||
{
|
||||
get { return typeBuilder.AssemblyQualifiedName; }
|
||||
get { return underlyingType.AssemblyQualifiedName; }
|
||||
}
|
||||
|
||||
public override Type BaseType
|
||||
{
|
||||
get { return typeBuilder.BaseType; }
|
||||
get { return underlyingType.BaseType; }
|
||||
}
|
||||
|
||||
public override string __Name
|
||||
{
|
||||
get { return underlyingType.__Name; }
|
||||
}
|
||||
|
||||
public override string __Namespace
|
||||
{
|
||||
get { return underlyingType.__Namespace; }
|
||||
}
|
||||
|
||||
public override string Name
|
||||
{
|
||||
get { return typeBuilder.Name; }
|
||||
}
|
||||
|
||||
public override string Namespace
|
||||
{
|
||||
get { return typeBuilder.GetBakedNamespace(); }
|
||||
// we need to escape here, because TypeBuilder.Name does not escape
|
||||
get { return TypeNameParser.Escape(underlyingType.__Name); }
|
||||
}
|
||||
|
||||
public override string FullName
|
||||
{
|
||||
get { return typeBuilder.FullName; }
|
||||
get { return GetFullName(); }
|
||||
}
|
||||
|
||||
public override TypeAttributes Attributes
|
||||
{
|
||||
get { return typeBuilder.Attributes; }
|
||||
get { return underlyingType.Attributes; }
|
||||
}
|
||||
|
||||
public override Type[] __GetDeclaredInterfaces()
|
||||
{
|
||||
return typeBuilder.__GetDeclaredInterfaces();
|
||||
return underlyingType.__GetDeclaredInterfaces();
|
||||
}
|
||||
|
||||
public override MethodBase[] __GetDeclaredMethods()
|
||||
{
|
||||
return typeBuilder.__GetDeclaredMethods();
|
||||
return underlyingType.__GetDeclaredMethods();
|
||||
}
|
||||
|
||||
public override __MethodImplMap __GetMethodImplMap()
|
||||
{
|
||||
return typeBuilder.__GetMethodImplMap();
|
||||
return underlyingType.__GetMethodImplMap();
|
||||
}
|
||||
|
||||
public override FieldInfo[] __GetDeclaredFields()
|
||||
{
|
||||
return typeBuilder.__GetDeclaredFields();
|
||||
return underlyingType.__GetDeclaredFields();
|
||||
}
|
||||
|
||||
public override EventInfo[] __GetDeclaredEvents()
|
||||
{
|
||||
return typeBuilder.__GetDeclaredEvents();
|
||||
return underlyingType.__GetDeclaredEvents();
|
||||
}
|
||||
|
||||
public override PropertyInfo[] __GetDeclaredProperties()
|
||||
{
|
||||
return typeBuilder.__GetDeclaredProperties();
|
||||
return underlyingType.__GetDeclaredProperties();
|
||||
}
|
||||
|
||||
public override Type[] __GetDeclaredTypes()
|
||||
{
|
||||
return typeBuilder.__GetDeclaredTypes();
|
||||
return underlyingType.__GetDeclaredTypes();
|
||||
}
|
||||
|
||||
public override Type DeclaringType
|
||||
{
|
||||
get { return typeBuilder.DeclaringType; }
|
||||
get { return underlyingType.DeclaringType; }
|
||||
}
|
||||
|
||||
public override StructLayoutAttribute StructLayoutAttribute
|
||||
{
|
||||
get { return typeBuilder.StructLayoutAttribute; }
|
||||
}
|
||||
|
||||
public override Type UnderlyingSystemType
|
||||
{
|
||||
// Type.Equals/GetHashCode relies on this
|
||||
get { return typeBuilder; }
|
||||
get { return underlyingType.StructLayoutAttribute; }
|
||||
}
|
||||
|
||||
public override Type[] GetGenericArguments()
|
||||
{
|
||||
return typeBuilder.GetGenericArguments();
|
||||
return underlyingType.GetGenericArguments();
|
||||
}
|
||||
|
||||
internal override Type GetGenericTypeArgument(int index)
|
||||
{
|
||||
return typeBuilder.GetGenericTypeArgument(index);
|
||||
return underlyingType.GetGenericTypeArgument(index);
|
||||
}
|
||||
|
||||
public override Type[][] __GetGenericArgumentsOptionalCustomModifiers()
|
||||
{
|
||||
return typeBuilder.__GetGenericArgumentsOptionalCustomModifiers();
|
||||
return underlyingType.__GetGenericArgumentsOptionalCustomModifiers();
|
||||
}
|
||||
|
||||
public override Type[][] __GetGenericArgumentsRequiredCustomModifiers()
|
||||
{
|
||||
return typeBuilder.__GetGenericArgumentsRequiredCustomModifiers();
|
||||
return underlyingType.__GetGenericArgumentsRequiredCustomModifiers();
|
||||
}
|
||||
|
||||
public override bool IsGenericType
|
||||
{
|
||||
get { return typeBuilder.IsGenericType; }
|
||||
get { return underlyingType.IsGenericType; }
|
||||
}
|
||||
|
||||
public override bool IsGenericTypeDefinition
|
||||
{
|
||||
get { return typeBuilder.IsGenericTypeDefinition; }
|
||||
get { return underlyingType.IsGenericTypeDefinition; }
|
||||
}
|
||||
|
||||
public override bool ContainsGenericParameters
|
||||
{
|
||||
get { return typeBuilder.ContainsGenericParameters; }
|
||||
get { return underlyingType.ContainsGenericParameters; }
|
||||
}
|
||||
|
||||
public override int MetadataToken
|
||||
{
|
||||
get { return typeBuilder.MetadataToken; }
|
||||
get { return underlyingType.MetadataToken; }
|
||||
}
|
||||
|
||||
public override Module Module
|
||||
{
|
||||
get { return typeBuilder.Module; }
|
||||
get { return underlyingType.Module; }
|
||||
}
|
||||
|
||||
internal override int GetModuleBuilderToken()
|
||||
{
|
||||
return typeBuilder.GetModuleBuilderToken();
|
||||
return underlyingType.GetModuleBuilderToken();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -26,6 +26,11 @@ namespace IKVM.Reflection
|
||||
{
|
||||
public abstract class EventInfo : MemberInfo
|
||||
{
|
||||
// prevent external subclasses
|
||||
internal EventInfo()
|
||||
{
|
||||
}
|
||||
|
||||
public sealed override MemberTypes MemberType
|
||||
{
|
||||
get { return MemberTypes.Event; }
|
||||
|
||||
@@ -27,6 +27,11 @@ namespace IKVM.Reflection
|
||||
{
|
||||
public abstract class FieldInfo : MemberInfo
|
||||
{
|
||||
// prevent external subclasses
|
||||
internal FieldInfo()
|
||||
{
|
||||
}
|
||||
|
||||
public sealed override MemberTypes MemberType
|
||||
{
|
||||
get { return MemberTypes.Field; }
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
/*
|
||||
Copyright (C) 2010 Jeroen Frijters
|
||||
Copyright (C) 2011 Marek Safar
|
||||
|
||||
This software is provided 'as-is', without any express or implied
|
||||
warranty. In no event will the authors be held liable for any damages
|
||||
@@ -38,15 +39,27 @@ namespace IKVM.Reflection
|
||||
|
||||
static class Fusion
|
||||
{
|
||||
private static readonly bool UseNativeFusion = Environment.OSVersion.Platform == PlatformID.Win32NT && System.Type.GetType("Mono.Runtime") == null && Environment.GetEnvironmentVariable("IKVM_DISABLE_FUSION") == null;
|
||||
private static readonly bool UseNativeFusion = GetUseNativeFusion();
|
||||
|
||||
private static bool GetUseNativeFusion()
|
||||
{
|
||||
try
|
||||
{
|
||||
return Environment.OSVersion.Platform == PlatformID.Win32NT
|
||||
&& System.Type.GetType("Mono.Runtime") == null
|
||||
&& Environment.GetEnvironmentVariable("IKVM_DISABLE_FUSION") == null;
|
||||
}
|
||||
catch (System.Security.SecurityException)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
internal static bool CompareAssemblyIdentity(string assemblyIdentity1, bool unified1, string assemblyIdentity2, bool unified2, out AssemblyComparisonResult result)
|
||||
{
|
||||
if (UseNativeFusion)
|
||||
{
|
||||
bool equivalent;
|
||||
Marshal.ThrowExceptionForHR(CompareAssemblyIdentity(assemblyIdentity1, unified1, assemblyIdentity2, unified2, out equivalent, out result));
|
||||
return equivalent;
|
||||
return CompareAssemblyIdentityNative(assemblyIdentity1, unified1, assemblyIdentity2, unified2, out result);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -54,10 +67,18 @@ namespace IKVM.Reflection
|
||||
}
|
||||
}
|
||||
|
||||
private static bool CompareAssemblyIdentityNative(string assemblyIdentity1, bool unified1, string assemblyIdentity2, bool unified2, out AssemblyComparisonResult result)
|
||||
{
|
||||
bool equivalent;
|
||||
Marshal.ThrowExceptionForHR(CompareAssemblyIdentity(assemblyIdentity1, unified1, assemblyIdentity2, unified2, out equivalent, out result));
|
||||
return equivalent;
|
||||
}
|
||||
|
||||
[DllImport("fusion", CharSet = CharSet.Unicode)]
|
||||
private static extern int CompareAssemblyIdentity(string pwzAssemblyIdentity1, bool fUnified1, string pwzAssemblyIdentity2, bool fUnified2, out bool pfEquivalent, out AssemblyComparisonResult pResult);
|
||||
|
||||
private static bool CompareAssemblyIdentityPure(string assemblyIdentity1, bool unified1, string assemblyIdentity2, bool unified2, out AssemblyComparisonResult result)
|
||||
// internal for use by mcs
|
||||
internal static bool CompareAssemblyIdentityPure(string assemblyIdentity1, bool unified1, string assemblyIdentity2, bool unified2, out AssemblyComparisonResult result)
|
||||
{
|
||||
ParsedAssemblyName name1;
|
||||
ParsedAssemblyName name2;
|
||||
@@ -109,6 +130,11 @@ namespace IKVM.Reflection
|
||||
result = AssemblyComparisonResult.EquivalentPartialMatch;
|
||||
return true;
|
||||
}
|
||||
else if (IsFrameworkAssembly(name2))
|
||||
{
|
||||
result = partial ? AssemblyComparisonResult.EquivalentPartialFXUnified : AssemblyComparisonResult.EquivalentFXUnified;
|
||||
return true;
|
||||
}
|
||||
else if (name1.Version < name2.Version)
|
||||
{
|
||||
if (unified2)
|
||||
@@ -141,6 +167,11 @@ namespace IKVM.Reflection
|
||||
return true;
|
||||
}
|
||||
}
|
||||
else if (IsStrongNamed(name1))
|
||||
{
|
||||
result = AssemblyComparisonResult.NonEquivalent;
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
result = partial ? AssemblyComparisonResult.EquivalentPartialWeakNamed : AssemblyComparisonResult.EquivalentWeakNamed;
|
||||
@@ -148,6 +179,62 @@ namespace IKVM.Reflection
|
||||
}
|
||||
}
|
||||
|
||||
static bool IsFrameworkAssembly(ParsedAssemblyName name)
|
||||
{
|
||||
// A list of FX assemblies which require some form of remapping
|
||||
// When 4.0 + 1 version is release, assemblies introduced in v4.0
|
||||
// will have to be added
|
||||
switch (name.Name)
|
||||
{
|
||||
case "System":
|
||||
case "System.Core":
|
||||
case "System.Data":
|
||||
case "System.Data.DataSetExtensions":
|
||||
case "System.Data.Linq":
|
||||
case "System.Data.OracleClient":
|
||||
case "System.Data.Services":
|
||||
case "System.Data.Services.Client":
|
||||
case "System.IdentityModel":
|
||||
case "System.IdentityModel.Selectors":
|
||||
case "System.Runtime.Remoting":
|
||||
case "System.Runtime.Serialization":
|
||||
case "System.ServiceModel":
|
||||
case "System.Transactions":
|
||||
case "System.Windows.Forms":
|
||||
case "System.Xml":
|
||||
case "System.Xml.Linq":
|
||||
return name.PublicKeyToken == "b77a5c561934e089";
|
||||
|
||||
case "System.Configuration":
|
||||
case "System.Configuration.Install":
|
||||
case "System.Design":
|
||||
case "System.DirectoryServices":
|
||||
case "System.Drawing":
|
||||
case "System.Drawing.Design":
|
||||
case "System.EnterpriseServices":
|
||||
case "System.Management":
|
||||
case "System.Messaging":
|
||||
case "System.Runtime.Serialization.Formatters.Soap":
|
||||
case "System.Security":
|
||||
case "System.ServiceProcess":
|
||||
case "System.Web":
|
||||
case "System.Web.Mobile":
|
||||
case "System.Web.Services":
|
||||
return name.PublicKeyToken == "b03f5f7f11d50a3a";
|
||||
|
||||
case "System.ComponentModel.DataAnnotations":
|
||||
case "System.ServiceModel.Web":
|
||||
case "System.Web.Abstractions":
|
||||
case "System.Web.Extensions":
|
||||
case "System.Web.Extensions.Design":
|
||||
case "System.Web.DynamicData":
|
||||
case "System.Web.Routing":
|
||||
return name.PublicKeyToken == "31bf3856ad364e35";
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
// note that this is the fusion specific parser, it is not the same as System.Reflection.AssemblyName
|
||||
private static bool ParseAssemblyName(string fullName, out ParsedAssemblyName parsedName)
|
||||
{
|
||||
|
||||
@@ -93,6 +93,7 @@
|
||||
<Compile Include="MethodImplMap.cs" />
|
||||
<Compile Include="MethodInfo.cs" />
|
||||
<Compile Include="MethodSignature.cs" />
|
||||
<Compile Include="Missing.cs" />
|
||||
<Compile Include="Module.cs" />
|
||||
<Compile Include="ParameterInfo.cs" />
|
||||
<Compile Include="ParameterModifier.cs" />
|
||||
|
||||
@@ -25,7 +25,7 @@ using System;
|
||||
|
||||
namespace IKVM.Reflection
|
||||
{
|
||||
public class LocalVariableInfo
|
||||
public sealed class LocalVariableInfo
|
||||
{
|
||||
private readonly int index;
|
||||
private readonly Type type;
|
||||
@@ -38,17 +38,17 @@ namespace IKVM.Reflection
|
||||
this.pinned = pinned;
|
||||
}
|
||||
|
||||
public virtual bool IsPinned
|
||||
public bool IsPinned
|
||||
{
|
||||
get { return pinned; }
|
||||
}
|
||||
|
||||
public virtual int LocalIndex
|
||||
public int LocalIndex
|
||||
{
|
||||
get { return index; }
|
||||
}
|
||||
|
||||
public virtual Type LocalType
|
||||
public Type LocalType
|
||||
{
|
||||
get { return type; }
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ using IKVM.Reflection.Metadata;
|
||||
|
||||
namespace IKVM.Reflection
|
||||
{
|
||||
public class ManifestResourceInfo
|
||||
public sealed class ManifestResourceInfo
|
||||
{
|
||||
private readonly ModuleReader module;
|
||||
private readonly int index;
|
||||
|
||||
@@ -33,6 +33,11 @@ namespace IKVM.Reflection
|
||||
#pragma warning disable 660, 661
|
||||
public abstract class MemberInfo : ICustomAttributeProvider
|
||||
{
|
||||
// prevent external subclasses
|
||||
internal MemberInfo()
|
||||
{
|
||||
}
|
||||
|
||||
public abstract string Name { get; }
|
||||
public abstract Type DeclaringType { get; }
|
||||
public abstract MemberTypes MemberType { get; }
|
||||
@@ -47,6 +52,11 @@ namespace IKVM.Reflection
|
||||
get;
|
||||
}
|
||||
|
||||
public virtual bool __IsMissing
|
||||
{
|
||||
get { return false; }
|
||||
}
|
||||
|
||||
public bool IsDefined(Type attributeType, bool inherit)
|
||||
{
|
||||
return CustomAttributeData.__GetCustomAttributes(this, attributeType, inherit).Count != 0;
|
||||
|
||||
@@ -27,6 +27,11 @@ namespace IKVM.Reflection
|
||||
{
|
||||
public abstract class MethodBase : MemberInfo
|
||||
{
|
||||
// prevent external subclasses
|
||||
internal MethodBase()
|
||||
{
|
||||
}
|
||||
|
||||
internal abstract MethodSignature MethodSignature { get; }
|
||||
internal abstract int ParameterCount { get; }
|
||||
public abstract ParameterInfo[] GetParameters();
|
||||
|
||||
@@ -28,6 +28,11 @@ namespace IKVM.Reflection
|
||||
{
|
||||
public abstract class MethodInfo : MethodBase, IGenericContext, IGenericBinder
|
||||
{
|
||||
// prevent external subclasses
|
||||
internal MethodInfo()
|
||||
{
|
||||
}
|
||||
|
||||
public sealed override MemberTypes MemberType
|
||||
{
|
||||
get { return MemberTypes.Method; }
|
||||
|
||||
@@ -257,6 +257,11 @@ namespace IKVM.Reflection
|
||||
get { return callingConvention; }
|
||||
}
|
||||
|
||||
internal int GenericParameterCount
|
||||
{
|
||||
get { return genericParamCount; }
|
||||
}
|
||||
|
||||
private sealed class Binder : IGenericBinder
|
||||
{
|
||||
private readonly Type declaringType;
|
||||
|
||||
@@ -0,0 +1,783 @@
|
||||
/*
|
||||
Copyright (C) 2011 Jeroen Frijters
|
||||
|
||||
This software is provided 'as-is', without any express or implied
|
||||
warranty. In no event will the authors be held liable for any damages
|
||||
arising from the use of this software.
|
||||
|
||||
Permission is granted to anyone to use this software for any purpose,
|
||||
including commercial applications, and to alter it and redistribute it
|
||||
freely, subject to the following restrictions:
|
||||
|
||||
1. The origin of this software must not be misrepresented; you must not
|
||||
claim that you wrote the original software. If you use this software
|
||||
in a product, an acknowledgment in the product documentation would be
|
||||
appreciated but is not required.
|
||||
2. Altered source versions must be plainly marked as such, and must not be
|
||||
misrepresented as being the original software.
|
||||
3. This notice may not be removed or altered from any source distribution.
|
||||
|
||||
Jeroen Frijters
|
||||
[email protected]
|
||||
|
||||
*/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace IKVM.Reflection
|
||||
{
|
||||
[Serializable]
|
||||
public sealed class MissingAssemblyException : InvalidOperationException
|
||||
{
|
||||
[NonSerialized]
|
||||
private readonly MissingAssembly assembly;
|
||||
|
||||
internal MissingAssemblyException(MissingAssembly assembly)
|
||||
: base("Assembly '" + assembly.FullName + "' is a missing assembly and does not support the requested operation.")
|
||||
{
|
||||
this.assembly = assembly;
|
||||
}
|
||||
|
||||
private MissingAssemblyException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
|
||||
: base(info, context)
|
||||
{
|
||||
}
|
||||
|
||||
public Assembly Assembly
|
||||
{
|
||||
get { return assembly; }
|
||||
}
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public sealed class MissingModuleException : InvalidOperationException
|
||||
{
|
||||
[NonSerialized]
|
||||
private readonly MissingModule module;
|
||||
|
||||
internal MissingModuleException(MissingModule module)
|
||||
: base("Module from missing assembly '" + module.Assembly.FullName + "' does not support the requested operation.")
|
||||
{
|
||||
this.module = module;
|
||||
}
|
||||
|
||||
private MissingModuleException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
|
||||
: base(info, context)
|
||||
{
|
||||
}
|
||||
|
||||
public Module Module
|
||||
{
|
||||
get { return module; }
|
||||
}
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public sealed class MissingMemberException : InvalidOperationException
|
||||
{
|
||||
[NonSerialized]
|
||||
private readonly MemberInfo member;
|
||||
|
||||
internal MissingMemberException(MemberInfo member)
|
||||
: base("Member '" + member + "' is a missing member and does not support the requested operation.")
|
||||
{
|
||||
this.member = member;
|
||||
}
|
||||
|
||||
private MissingMemberException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
|
||||
: base(info, context)
|
||||
{
|
||||
}
|
||||
|
||||
public MemberInfo MemberInfo
|
||||
{
|
||||
get { return member; }
|
||||
}
|
||||
}
|
||||
|
||||
sealed class MissingAssembly : Assembly
|
||||
{
|
||||
private readonly MissingModule module;
|
||||
private readonly string name;
|
||||
|
||||
internal MissingAssembly(Universe universe, string name)
|
||||
: base(universe)
|
||||
{
|
||||
module = new MissingModule(this);
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public override Type[] GetTypes()
|
||||
{
|
||||
throw new MissingAssemblyException(this);
|
||||
}
|
||||
|
||||
public override string FullName
|
||||
{
|
||||
get { return name; }
|
||||
}
|
||||
|
||||
public override AssemblyName GetName()
|
||||
{
|
||||
return new AssemblyName(name);
|
||||
}
|
||||
|
||||
public override string ImageRuntimeVersion
|
||||
{
|
||||
get { throw new MissingAssemblyException(this); }
|
||||
}
|
||||
|
||||
public override Module ManifestModule
|
||||
{
|
||||
get { return module; }
|
||||
}
|
||||
|
||||
public override MethodInfo EntryPoint
|
||||
{
|
||||
get { throw new MissingAssemblyException(this); }
|
||||
}
|
||||
|
||||
public override string Location
|
||||
{
|
||||
get { throw new MissingAssemblyException(this); }
|
||||
}
|
||||
|
||||
public override AssemblyName[] GetReferencedAssemblies()
|
||||
{
|
||||
throw new MissingAssemblyException(this);
|
||||
}
|
||||
|
||||
public override Module[] GetModules(bool getResourceModules)
|
||||
{
|
||||
throw new MissingAssemblyException(this);
|
||||
}
|
||||
|
||||
public override Module[] GetLoadedModules(bool getResourceModules)
|
||||
{
|
||||
throw new MissingAssemblyException(this);
|
||||
}
|
||||
|
||||
public override Module GetModule(string name)
|
||||
{
|
||||
throw new MissingAssemblyException(this);
|
||||
}
|
||||
|
||||
public override string[] GetManifestResourceNames()
|
||||
{
|
||||
throw new MissingAssemblyException(this);
|
||||
}
|
||||
|
||||
public override ManifestResourceInfo GetManifestResourceInfo(string resourceName)
|
||||
{
|
||||
throw new MissingAssemblyException(this);
|
||||
}
|
||||
|
||||
public override System.IO.Stream GetManifestResourceStream(string resourceName)
|
||||
{
|
||||
throw new MissingAssemblyException(this);
|
||||
}
|
||||
|
||||
public override bool __IsMissing
|
||||
{
|
||||
get { return true; }
|
||||
}
|
||||
|
||||
internal override Type FindType(TypeName typeName)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
internal override IList<CustomAttributeData> GetCustomAttributesData(Type attributeType)
|
||||
{
|
||||
throw new MissingAssemblyException(this);
|
||||
}
|
||||
}
|
||||
|
||||
sealed class MissingModule : Module
|
||||
{
|
||||
private readonly MissingAssembly assembly;
|
||||
|
||||
internal MissingModule(MissingAssembly assembly)
|
||||
: base(assembly.universe)
|
||||
{
|
||||
this.assembly = assembly;
|
||||
}
|
||||
|
||||
public override int MDStreamVersion
|
||||
{
|
||||
get { throw new MissingModuleException(this); }
|
||||
}
|
||||
|
||||
public override Assembly Assembly
|
||||
{
|
||||
get { return assembly; }
|
||||
}
|
||||
|
||||
public override string FullyQualifiedName
|
||||
{
|
||||
get { throw new MissingModuleException(this); }
|
||||
}
|
||||
|
||||
public override string Name
|
||||
{
|
||||
get { throw new MissingModuleException(this); }
|
||||
}
|
||||
|
||||
public override Guid ModuleVersionId
|
||||
{
|
||||
get { throw new MissingModuleException(this); }
|
||||
}
|
||||
|
||||
public override Type ResolveType(int metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
|
||||
{
|
||||
throw new MissingModuleException(this);
|
||||
}
|
||||
|
||||
public override MethodBase ResolveMethod(int metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
|
||||
{
|
||||
throw new MissingModuleException(this);
|
||||
}
|
||||
|
||||
public override FieldInfo ResolveField(int metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
|
||||
{
|
||||
throw new MissingModuleException(this);
|
||||
}
|
||||
|
||||
public override MemberInfo ResolveMember(int metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
|
||||
{
|
||||
throw new MissingModuleException(this);
|
||||
}
|
||||
|
||||
public override string ResolveString(int metadataToken)
|
||||
{
|
||||
throw new MissingModuleException(this);
|
||||
}
|
||||
|
||||
public override Type[] __ResolveOptionalParameterTypes(int metadataToken)
|
||||
{
|
||||
throw new MissingModuleException(this);
|
||||
}
|
||||
|
||||
public override string ScopeName
|
||||
{
|
||||
get { throw new MissingModuleException(this); }
|
||||
}
|
||||
|
||||
internal override Type FindType(TypeName typeName)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
internal override void GetTypesImpl(System.Collections.Generic.List<Type> list)
|
||||
{
|
||||
throw new MissingModuleException(this);
|
||||
}
|
||||
|
||||
public override AssemblyName[] __GetReferencedAssemblies()
|
||||
{
|
||||
throw new MissingModuleException(this);
|
||||
}
|
||||
|
||||
internal override Type GetModuleType()
|
||||
{
|
||||
throw new MissingModuleException(this);
|
||||
}
|
||||
|
||||
internal override IKVM.Reflection.Reader.ByteReader GetBlob(int blobIndex)
|
||||
{
|
||||
throw new MissingModuleException(this);
|
||||
}
|
||||
|
||||
public override void __GetDataDirectoryEntry(int index, out int rva, out int length)
|
||||
{
|
||||
throw new MissingModuleException(this);
|
||||
}
|
||||
|
||||
public override IList<CustomAttributeData> __GetPlaceholderAssemblyCustomAttributes(bool multiple, bool security)
|
||||
{
|
||||
throw new MissingModuleException(this);
|
||||
}
|
||||
|
||||
public override long __RelativeVirtualAddressToFileOffset(int rva)
|
||||
{
|
||||
throw new MissingModuleException(this);
|
||||
}
|
||||
|
||||
public override __StandAloneMethodSig __ResolveStandAloneMethodSig(int metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
|
||||
{
|
||||
throw new MissingModuleException(this);
|
||||
}
|
||||
|
||||
public override int __Subsystem
|
||||
{
|
||||
get { throw new MissingModuleException(this); }
|
||||
}
|
||||
|
||||
internal override void ExportTypes(int fileToken, IKVM.Reflection.Emit.ModuleBuilder manifestModule)
|
||||
{
|
||||
throw new MissingModuleException(this);
|
||||
}
|
||||
|
||||
public override void GetPEKind(out PortableExecutableKinds peKind, out ImageFileMachine machine)
|
||||
{
|
||||
throw new MissingModuleException(this);
|
||||
}
|
||||
|
||||
public override bool __IsMissing
|
||||
{
|
||||
get { return true; }
|
||||
}
|
||||
|
||||
internal override IList<CustomAttributeData> GetCustomAttributesData(Type attributeType)
|
||||
{
|
||||
throw new MissingModuleException(this);
|
||||
}
|
||||
}
|
||||
|
||||
sealed class MissingType : Type
|
||||
{
|
||||
private readonly Module module;
|
||||
private readonly Type declaringType;
|
||||
private readonly string ns;
|
||||
private readonly string name;
|
||||
|
||||
internal MissingType(Module module, Type declaringType, string ns, string name)
|
||||
{
|
||||
this.module = module;
|
||||
this.declaringType = declaringType;
|
||||
this.ns = ns;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
internal override MethodBase FindMethod(string name, MethodSignature signature)
|
||||
{
|
||||
MethodInfo method = new MissingMethod(this, name, signature);
|
||||
if (name == ".ctor")
|
||||
{
|
||||
return new ConstructorInfoImpl(method);
|
||||
}
|
||||
return method;
|
||||
}
|
||||
|
||||
internal override Type FindNestedType(TypeName name)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
public override bool __IsMissing
|
||||
{
|
||||
get { return true; }
|
||||
}
|
||||
|
||||
public override Type DeclaringType
|
||||
{
|
||||
get { return declaringType; }
|
||||
}
|
||||
|
||||
public override string __Name
|
||||
{
|
||||
get { return name; }
|
||||
}
|
||||
|
||||
public override string __Namespace
|
||||
{
|
||||
get { return ns; }
|
||||
}
|
||||
|
||||
public override string Name
|
||||
{
|
||||
get { return TypeNameParser.Escape(name); }
|
||||
}
|
||||
|
||||
public override string FullName
|
||||
{
|
||||
get { return GetFullName(); }
|
||||
}
|
||||
|
||||
public override Module Module
|
||||
{
|
||||
get { return module; }
|
||||
}
|
||||
|
||||
public override Type BaseType
|
||||
{
|
||||
get { throw new MissingMemberException(this); }
|
||||
}
|
||||
|
||||
public override TypeAttributes Attributes
|
||||
{
|
||||
get { throw new MissingMemberException(this); }
|
||||
}
|
||||
|
||||
public override Type[] __GetDeclaredTypes()
|
||||
{
|
||||
throw new MissingMemberException(this);
|
||||
}
|
||||
|
||||
public override Type[] __GetDeclaredInterfaces()
|
||||
{
|
||||
throw new MissingMemberException(this);
|
||||
}
|
||||
|
||||
public override MethodBase[] __GetDeclaredMethods()
|
||||
{
|
||||
throw new MissingMemberException(this);
|
||||
}
|
||||
|
||||
public override __MethodImplMap __GetMethodImplMap()
|
||||
{
|
||||
throw new MissingMemberException(this);
|
||||
}
|
||||
|
||||
public override FieldInfo[] __GetDeclaredFields()
|
||||
{
|
||||
throw new MissingMemberException(this);
|
||||
}
|
||||
|
||||
public override EventInfo[] __GetDeclaredEvents()
|
||||
{
|
||||
throw new MissingMemberException(this);
|
||||
}
|
||||
|
||||
public override PropertyInfo[] __GetDeclaredProperties()
|
||||
{
|
||||
throw new MissingMemberException(this);
|
||||
}
|
||||
|
||||
public override Type[] __GetRequiredCustomModifiers()
|
||||
{
|
||||
throw new MissingMemberException(this);
|
||||
}
|
||||
|
||||
public override Type[] __GetOptionalCustomModifiers()
|
||||
{
|
||||
throw new MissingMemberException(this);
|
||||
}
|
||||
|
||||
public override Type[] GetGenericArguments()
|
||||
{
|
||||
throw new MissingMemberException(this);
|
||||
}
|
||||
|
||||
public override Type[][] __GetGenericArgumentsRequiredCustomModifiers()
|
||||
{
|
||||
throw new MissingMemberException(this);
|
||||
}
|
||||
|
||||
public override Type[][] __GetGenericArgumentsOptionalCustomModifiers()
|
||||
{
|
||||
throw new MissingMemberException(this);
|
||||
}
|
||||
|
||||
public override StructLayoutAttribute StructLayoutAttribute
|
||||
{
|
||||
get { throw new MissingMemberException(this); }
|
||||
}
|
||||
|
||||
public override bool IsGenericType
|
||||
{
|
||||
get { throw new MissingMemberException(this); }
|
||||
}
|
||||
|
||||
public override bool IsGenericTypeDefinition
|
||||
{
|
||||
get { throw new MissingMemberException(this); }
|
||||
}
|
||||
|
||||
internal override IList<CustomAttributeData> GetCustomAttributesData(Type attributeType)
|
||||
{
|
||||
throw new MissingMemberException(this);
|
||||
}
|
||||
|
||||
internal override Type BindTypeParameters(IGenericBinder binder)
|
||||
{
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
sealed class MissingMethod : MethodInfo
|
||||
{
|
||||
private readonly Type declaringType;
|
||||
private readonly string name;
|
||||
private readonly MethodSignature signature;
|
||||
private MethodInfo forwarder;
|
||||
|
||||
internal MissingMethod(Type declaringType, string name, MethodSignature signature)
|
||||
{
|
||||
this.declaringType = declaringType;
|
||||
this.name = name;
|
||||
this.signature = signature;
|
||||
}
|
||||
|
||||
private MethodInfo Forwarder
|
||||
{
|
||||
get
|
||||
{
|
||||
MethodInfo method = TryGetForwarder();
|
||||
if (method == null)
|
||||
{
|
||||
throw new MissingMemberException(this);
|
||||
}
|
||||
return method;
|
||||
}
|
||||
}
|
||||
|
||||
private MethodInfo TryGetForwarder()
|
||||
{
|
||||
if (forwarder == null && !declaringType.__IsMissing)
|
||||
{
|
||||
MethodBase mb = declaringType.FindMethod(name, signature);
|
||||
ConstructorInfo ci = mb as ConstructorInfo;
|
||||
if (ci != null)
|
||||
{
|
||||
forwarder = ci.GetMethodInfo();
|
||||
}
|
||||
else
|
||||
{
|
||||
forwarder = (MethodInfo)mb;
|
||||
}
|
||||
}
|
||||
return forwarder;
|
||||
}
|
||||
|
||||
public override bool __IsMissing
|
||||
{
|
||||
get { return TryGetForwarder() == null; }
|
||||
}
|
||||
|
||||
public override Type ReturnType
|
||||
{
|
||||
get { return signature.GetReturnType(this); }
|
||||
}
|
||||
|
||||
public override ParameterInfo ReturnParameter
|
||||
{
|
||||
get { return new ParameterInfoImpl(this, -1); }
|
||||
}
|
||||
|
||||
internal override MethodSignature MethodSignature
|
||||
{
|
||||
get { return signature; }
|
||||
}
|
||||
|
||||
internal override int ParameterCount
|
||||
{
|
||||
get { return signature.GetParameterCount(); }
|
||||
}
|
||||
|
||||
private sealed class ParameterInfoImpl : ParameterInfo
|
||||
{
|
||||
private readonly MissingMethod method;
|
||||
private readonly int index;
|
||||
|
||||
internal ParameterInfoImpl(MissingMethod method, int index)
|
||||
{
|
||||
this.method = method;
|
||||
this.index = index;
|
||||
}
|
||||
|
||||
private ParameterInfo Forwarder
|
||||
{
|
||||
get { return index == -1 ? method.Forwarder.ReturnParameter : method.Forwarder.GetParameters()[index]; }
|
||||
}
|
||||
|
||||
public override string Name
|
||||
{
|
||||
get { return Forwarder.Name; }
|
||||
}
|
||||
|
||||
public override Type ParameterType
|
||||
{
|
||||
get { return index == -1 ? method.signature.GetReturnType(method) : method.signature.GetParameterType(method, index); }
|
||||
}
|
||||
|
||||
public override ParameterAttributes Attributes
|
||||
{
|
||||
get { return Forwarder.Attributes; }
|
||||
}
|
||||
|
||||
public override int Position
|
||||
{
|
||||
get { return index; }
|
||||
}
|
||||
|
||||
public override object RawDefaultValue
|
||||
{
|
||||
get { return Forwarder.RawDefaultValue; }
|
||||
}
|
||||
|
||||
public override Type[] GetOptionalCustomModifiers()
|
||||
{
|
||||
if (index == -1)
|
||||
{
|
||||
return Util.Copy(method.signature.GetReturnTypeOptionalCustomModifiers(method));
|
||||
}
|
||||
return Util.Copy(method.signature.GetParameterOptionalCustomModifiers(method, index));
|
||||
}
|
||||
|
||||
public override Type[] GetRequiredCustomModifiers()
|
||||
{
|
||||
if (index == -1)
|
||||
{
|
||||
return Util.Copy(method.signature.GetReturnTypeRequiredCustomModifiers(method));
|
||||
}
|
||||
return Util.Copy(method.signature.GetParameterRequiredCustomModifiers(method, index));
|
||||
}
|
||||
|
||||
public override MemberInfo Member
|
||||
{
|
||||
get { return method; }
|
||||
}
|
||||
|
||||
public override int MetadataToken
|
||||
{
|
||||
get { return Forwarder.MetadataToken; }
|
||||
}
|
||||
|
||||
internal override Module Module
|
||||
{
|
||||
get { return method.Module; }
|
||||
}
|
||||
|
||||
internal override IList<CustomAttributeData> GetCustomAttributesData(Type attributeType)
|
||||
{
|
||||
return Forwarder.GetCustomAttributesData(attributeType);
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return Forwarder.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
public override ParameterInfo[] GetParameters()
|
||||
{
|
||||
ParameterInfo[] parameters = new ParameterInfo[signature.GetParameterCount()];
|
||||
for (int i = 0; i < parameters.Length; i++)
|
||||
{
|
||||
parameters[i] = new ParameterInfoImpl(this, i);
|
||||
}
|
||||
return parameters;
|
||||
}
|
||||
|
||||
public override MethodAttributes Attributes
|
||||
{
|
||||
get { return Forwarder.Attributes; }
|
||||
}
|
||||
|
||||
public override MethodImplAttributes GetMethodImplementationFlags()
|
||||
{
|
||||
return Forwarder.GetMethodImplementationFlags();
|
||||
}
|
||||
|
||||
public override MethodBody GetMethodBody()
|
||||
{
|
||||
return Forwarder.GetMethodBody();
|
||||
}
|
||||
|
||||
public override CallingConventions CallingConvention
|
||||
{
|
||||
get { return signature.CallingConvention; }
|
||||
}
|
||||
|
||||
internal override int ImportTo(IKVM.Reflection.Emit.ModuleBuilder module)
|
||||
{
|
||||
return Forwarder.ImportTo(module);
|
||||
}
|
||||
|
||||
public override string Name
|
||||
{
|
||||
get { return name; }
|
||||
}
|
||||
|
||||
public override Type DeclaringType
|
||||
{
|
||||
get { return declaringType.IsModulePseudoType ? null : declaringType; }
|
||||
}
|
||||
|
||||
public override Module Module
|
||||
{
|
||||
get { return declaringType.Module; }
|
||||
}
|
||||
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
MissingMethod other = obj as MissingMethod;
|
||||
return other != null
|
||||
&& other.declaringType == declaringType
|
||||
&& other.name == name
|
||||
&& other.signature.Equals(signature);
|
||||
}
|
||||
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return declaringType.GetHashCode() ^ name.GetHashCode() ^ signature.GetHashCode();
|
||||
}
|
||||
|
||||
internal override MethodBase BindTypeParameters(Type type)
|
||||
{
|
||||
return Forwarder.BindTypeParameters(type);
|
||||
}
|
||||
|
||||
public override bool ContainsGenericParameters
|
||||
{
|
||||
get { return Forwarder.ContainsGenericParameters; }
|
||||
}
|
||||
|
||||
internal override IList<CustomAttributeData> GetCustomAttributesData(Type attributeType)
|
||||
{
|
||||
return Forwarder.GetCustomAttributesData(attributeType);
|
||||
}
|
||||
|
||||
public override Type[] GetGenericArguments()
|
||||
{
|
||||
return Forwarder.GetGenericArguments();
|
||||
}
|
||||
|
||||
internal override Type GetGenericMethodArgument(int index)
|
||||
{
|
||||
return Forwarder.GetGenericMethodArgument(index);
|
||||
}
|
||||
|
||||
internal override int GetGenericMethodArgumentCount()
|
||||
{
|
||||
return Forwarder.GetGenericMethodArgumentCount();
|
||||
}
|
||||
|
||||
public override MethodInfo GetGenericMethodDefinition()
|
||||
{
|
||||
return Forwarder.GetGenericMethodDefinition();
|
||||
}
|
||||
|
||||
internal override MethodInfo GetMethodOnTypeDefinition()
|
||||
{
|
||||
return Forwarder.GetMethodOnTypeDefinition();
|
||||
}
|
||||
|
||||
internal override bool HasThis
|
||||
{
|
||||
get { return Forwarder.HasThis; }
|
||||
}
|
||||
|
||||
public override bool IsGenericMethod
|
||||
{
|
||||
get { return IsGenericMethodDefinition; }
|
||||
}
|
||||
|
||||
public override bool IsGenericMethodDefinition
|
||||
{
|
||||
get { return signature.GenericParameterCount != 0; }
|
||||
}
|
||||
|
||||
public override MethodInfo MakeGenericMethod(params Type[] typeArguments)
|
||||
{
|
||||
return Forwarder.MakeGenericMethod(typeArguments);
|
||||
}
|
||||
|
||||
public override int MetadataToken
|
||||
{
|
||||
get { return Forwarder.MetadataToken; }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -287,9 +287,10 @@ namespace IKVM.Reflection
|
||||
public abstract Type[] __ResolveOptionalParameterTypes(int metadataToken);
|
||||
public abstract string ScopeName { get; }
|
||||
|
||||
internal abstract Type GetTypeImpl(string typeName);
|
||||
internal abstract void GetTypesImpl(List<Type> list);
|
||||
|
||||
internal abstract Type FindType(TypeName name);
|
||||
|
||||
public Type GetType(string className)
|
||||
{
|
||||
return GetType(className, false, false);
|
||||
@@ -322,7 +323,12 @@ namespace IKVM.Reflection
|
||||
return null;
|
||||
}
|
||||
}
|
||||
return parser.Expand(GetTypeImpl(parser.FirstNamePart), this.Assembly, throwOnError, className);
|
||||
Type type = FindType(TypeName.Split(TypeNameParser.Unescape(parser.FirstNamePart)));
|
||||
if (type == null && __IsMissing)
|
||||
{
|
||||
throw new MissingModuleException((MissingModule)this);
|
||||
}
|
||||
return parser.Expand(type, this.Assembly, throwOnError, className);
|
||||
}
|
||||
|
||||
public Type[] GetTypes()
|
||||
@@ -387,6 +393,11 @@ namespace IKVM.Reflection
|
||||
|
||||
public abstract AssemblyName[] __GetReferencedAssemblies();
|
||||
|
||||
public virtual bool __IsMissing
|
||||
{
|
||||
get { return false; }
|
||||
}
|
||||
|
||||
internal Type CanonicalizeType(Type type)
|
||||
{
|
||||
Type canon;
|
||||
@@ -402,7 +413,7 @@ namespace IKVM.Reflection
|
||||
|
||||
internal abstract ByteReader GetBlob(int blobIndex);
|
||||
|
||||
internal IList<CustomAttributeData> GetCustomAttributesData(Type attributeType)
|
||||
internal virtual IList<CustomAttributeData> GetCustomAttributesData(Type attributeType)
|
||||
{
|
||||
return GetCustomAttributes(0x00000001, attributeType);
|
||||
}
|
||||
|
||||
@@ -27,6 +27,11 @@ namespace IKVM.Reflection
|
||||
{
|
||||
public abstract class ParameterInfo : ICustomAttributeProvider
|
||||
{
|
||||
// prevent external subclasses
|
||||
internal ParameterInfo()
|
||||
{
|
||||
}
|
||||
|
||||
public sealed override bool Equals(object obj)
|
||||
{
|
||||
ParameterInfo other = obj as ParameterInfo;
|
||||
|
||||
@@ -27,6 +27,11 @@ namespace IKVM.Reflection
|
||||
{
|
||||
public abstract class PropertyInfo : MemberInfo
|
||||
{
|
||||
// prevent external subclasses
|
||||
internal PropertyInfo()
|
||||
{
|
||||
}
|
||||
|
||||
public sealed override MemberTypes MemberType
|
||||
{
|
||||
get { return MemberTypes.Property; }
|
||||
|
||||
@@ -101,14 +101,14 @@ namespace IKVM.Reflection.Reader
|
||||
return list.ToArray();
|
||||
}
|
||||
|
||||
internal override Type GetTypeImpl(string typeName)
|
||||
internal override Type FindType(TypeName typeName)
|
||||
{
|
||||
Type type = manifestModule.GetType(typeName);
|
||||
Type type = manifestModule.FindType(typeName);
|
||||
for (int i = 0; type == null && i < externalModules.Length; i++)
|
||||
{
|
||||
if ((manifestModule.File.records[i].Flags & ContainsNoMetaData) == 0)
|
||||
{
|
||||
type = GetModule(i).GetType(typeName);
|
||||
type = GetModule(i).FindType(typeName);
|
||||
}
|
||||
}
|
||||
return type;
|
||||
|
||||
@@ -167,11 +167,7 @@ namespace IKVM.Reflection.Reader
|
||||
|
||||
internal float ReadSingle()
|
||||
{
|
||||
if (end - pos < 4)
|
||||
throw new BadImageFormatException();
|
||||
float value = BitConverter.ToSingle(buffer, pos);
|
||||
pos += 4;
|
||||
return value;
|
||||
return SingleConverter.Int32BitsToSingle(ReadInt32());
|
||||
}
|
||||
|
||||
internal double ReadDouble()
|
||||
|
||||
@@ -73,11 +73,6 @@ namespace IKVM.Reflection.Reader
|
||||
get { return TypeAttributes.Public; }
|
||||
}
|
||||
|
||||
public sealed override Type UnderlyingSystemType
|
||||
{
|
||||
get { return this; }
|
||||
}
|
||||
|
||||
public sealed override string FullName
|
||||
{
|
||||
get { return null; }
|
||||
@@ -131,7 +126,7 @@ namespace IKVM.Reflection.Reader
|
||||
get { throw new InvalidOperationException(); }
|
||||
}
|
||||
|
||||
internal override Type GetTypeImpl(string typeName)
|
||||
internal override Type FindType(TypeName typeName)
|
||||
{
|
||||
throw new InvalidOperationException();
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright (C) 2009 Jeroen Frijters
|
||||
Copyright (C) 2009-2011 Jeroen Frijters
|
||||
|
||||
This software is provided 'as-is', without any express or implied
|
||||
warranty. In no event will the authors be held liable for any damages
|
||||
@@ -31,76 +31,105 @@ namespace IKVM.Reflection.Reader
|
||||
{
|
||||
sealed class MetadataReader : MetadataRW
|
||||
{
|
||||
private readonly BinaryReader br;
|
||||
private readonly Stream stream;
|
||||
private const int bufferLength = 2048;
|
||||
private readonly byte[] buffer = new byte[bufferLength];
|
||||
private int pos = bufferLength;
|
||||
|
||||
internal MetadataReader(ModuleReader module, BinaryReader br, byte heapSizes)
|
||||
internal MetadataReader(ModuleReader module, Stream stream, byte heapSizes)
|
||||
: base(module, (heapSizes & 0x01) != 0, (heapSizes & 0x02) != 0, (heapSizes & 0x04) != 0)
|
||||
{
|
||||
this.br = br;
|
||||
this.stream = stream;
|
||||
}
|
||||
|
||||
internal short ReadInt16()
|
||||
private void FillBuffer(int needed)
|
||||
{
|
||||
return br.ReadInt16();
|
||||
int count = bufferLength - pos;
|
||||
if (count != 0)
|
||||
{
|
||||
// move remaining bytes to the front of the buffer
|
||||
Buffer.BlockCopy(buffer, pos, buffer, 0, count);
|
||||
}
|
||||
pos = 0;
|
||||
|
||||
while (count < needed)
|
||||
{
|
||||
int len = stream.Read(buffer, count, bufferLength - count);
|
||||
if (len == 0)
|
||||
{
|
||||
throw new BadImageFormatException();
|
||||
}
|
||||
count += len;
|
||||
}
|
||||
|
||||
if (count != bufferLength)
|
||||
{
|
||||
// we didn't fill the buffer completely, so have to restore the invariant
|
||||
// that all data from pos up until the end of the buffer is valid
|
||||
Buffer.BlockCopy(buffer, 0, buffer, bufferLength - count, count);
|
||||
pos = bufferLength - count;
|
||||
}
|
||||
}
|
||||
|
||||
internal ushort ReadUInt16()
|
||||
{
|
||||
return br.ReadUInt16();
|
||||
return (ushort)ReadInt16();
|
||||
}
|
||||
|
||||
internal short ReadInt16()
|
||||
{
|
||||
if (pos > bufferLength - 2)
|
||||
{
|
||||
FillBuffer(2);
|
||||
}
|
||||
byte b1 = buffer[pos++];
|
||||
byte b2 = buffer[pos++];
|
||||
return (short)(b1 | (b2 << 8));
|
||||
}
|
||||
|
||||
internal int ReadInt32()
|
||||
{
|
||||
return br.ReadInt32();
|
||||
if (pos > bufferLength - 4)
|
||||
{
|
||||
FillBuffer(4);
|
||||
}
|
||||
byte b1 = buffer[pos++];
|
||||
byte b2 = buffer[pos++];
|
||||
byte b3 = buffer[pos++];
|
||||
byte b4 = buffer[pos++];
|
||||
return b1 | (b2 << 8) | (b3 << 16) | (b4 << 24);
|
||||
}
|
||||
|
||||
private int ReadIndex(bool big)
|
||||
{
|
||||
if (big)
|
||||
{
|
||||
return ReadInt32();
|
||||
}
|
||||
else
|
||||
{
|
||||
return ReadUInt16();
|
||||
}
|
||||
}
|
||||
|
||||
internal int ReadStringIndex()
|
||||
{
|
||||
if (bigStrings)
|
||||
{
|
||||
return br.ReadInt32();
|
||||
}
|
||||
else
|
||||
{
|
||||
return br.ReadUInt16();
|
||||
}
|
||||
return ReadIndex(bigStrings);
|
||||
}
|
||||
|
||||
internal int ReadGuidIndex()
|
||||
{
|
||||
if (bigGuids)
|
||||
{
|
||||
return br.ReadInt32();
|
||||
}
|
||||
else
|
||||
{
|
||||
return br.ReadUInt16();
|
||||
}
|
||||
return ReadIndex(bigGuids);
|
||||
}
|
||||
|
||||
internal int ReadBlobIndex()
|
||||
{
|
||||
if (bigBlobs)
|
||||
{
|
||||
return br.ReadInt32();
|
||||
}
|
||||
else
|
||||
{
|
||||
return br.ReadUInt16();
|
||||
}
|
||||
return ReadIndex(bigBlobs);
|
||||
}
|
||||
|
||||
internal int ReadResolutionScope()
|
||||
{
|
||||
int codedIndex;
|
||||
if (bigResolutionScope)
|
||||
{
|
||||
codedIndex = br.ReadInt32();
|
||||
}
|
||||
else
|
||||
{
|
||||
codedIndex = br.ReadUInt16();
|
||||
}
|
||||
int codedIndex = ReadIndex(bigResolutionScope);
|
||||
switch (codedIndex & 3)
|
||||
{
|
||||
case 0:
|
||||
@@ -118,15 +147,7 @@ namespace IKVM.Reflection.Reader
|
||||
|
||||
internal int ReadTypeDefOrRef()
|
||||
{
|
||||
int codedIndex;
|
||||
if (bigTypeDefOrRef)
|
||||
{
|
||||
codedIndex = br.ReadInt32();
|
||||
}
|
||||
else
|
||||
{
|
||||
codedIndex = br.ReadUInt16();
|
||||
}
|
||||
int codedIndex = ReadIndex(bigTypeDefOrRef);
|
||||
switch (codedIndex & 3)
|
||||
{
|
||||
case 0:
|
||||
@@ -142,15 +163,7 @@ namespace IKVM.Reflection.Reader
|
||||
|
||||
internal int ReadMemberRefParent()
|
||||
{
|
||||
int codedIndex;
|
||||
if (bigMemberRefParent)
|
||||
{
|
||||
codedIndex = br.ReadInt32();
|
||||
}
|
||||
else
|
||||
{
|
||||
codedIndex = br.ReadUInt16();
|
||||
}
|
||||
int codedIndex = ReadIndex(bigMemberRefParent);
|
||||
switch (codedIndex & 7)
|
||||
{
|
||||
case 0:
|
||||
@@ -170,15 +183,7 @@ namespace IKVM.Reflection.Reader
|
||||
|
||||
internal int ReadHasCustomAttribute()
|
||||
{
|
||||
int codedIndex;
|
||||
if (bigHasCustomAttribute)
|
||||
{
|
||||
codedIndex = br.ReadInt32();
|
||||
}
|
||||
else
|
||||
{
|
||||
codedIndex = br.ReadUInt16();
|
||||
}
|
||||
int codedIndex = ReadIndex(bigHasCustomAttribute);
|
||||
switch (codedIndex & 31)
|
||||
{
|
||||
case 0:
|
||||
@@ -228,15 +233,7 @@ namespace IKVM.Reflection.Reader
|
||||
|
||||
internal int ReadCustomAttributeType()
|
||||
{
|
||||
int codedIndex;
|
||||
if (bigCustomAttributeType)
|
||||
{
|
||||
codedIndex = br.ReadInt32();
|
||||
}
|
||||
else
|
||||
{
|
||||
codedIndex = br.ReadUInt16();
|
||||
}
|
||||
int codedIndex = ReadIndex(bigCustomAttributeType);
|
||||
switch (codedIndex & 7)
|
||||
{
|
||||
case 2:
|
||||
@@ -250,15 +247,7 @@ namespace IKVM.Reflection.Reader
|
||||
|
||||
internal int ReadMethodDefOrRef()
|
||||
{
|
||||
int codedIndex;
|
||||
if (bigMethodDefOrRef)
|
||||
{
|
||||
codedIndex = br.ReadInt32();
|
||||
}
|
||||
else
|
||||
{
|
||||
codedIndex = br.ReadUInt16();
|
||||
}
|
||||
int codedIndex = ReadIndex(bigMethodDefOrRef);
|
||||
switch (codedIndex & 1)
|
||||
{
|
||||
case 0:
|
||||
@@ -272,15 +261,7 @@ namespace IKVM.Reflection.Reader
|
||||
|
||||
internal int ReadHasConstant()
|
||||
{
|
||||
int codedIndex;
|
||||
if (bigHasConstant)
|
||||
{
|
||||
codedIndex = br.ReadInt32();
|
||||
}
|
||||
else
|
||||
{
|
||||
codedIndex = br.ReadUInt16();
|
||||
}
|
||||
int codedIndex = ReadIndex(bigHasConstant);
|
||||
switch (codedIndex & 3)
|
||||
{
|
||||
case 0:
|
||||
@@ -296,15 +277,7 @@ namespace IKVM.Reflection.Reader
|
||||
|
||||
internal int ReadHasSemantics()
|
||||
{
|
||||
int codedIndex;
|
||||
if (bigHasSemantics)
|
||||
{
|
||||
codedIndex = br.ReadInt32();
|
||||
}
|
||||
else
|
||||
{
|
||||
codedIndex = br.ReadUInt16();
|
||||
}
|
||||
int codedIndex = ReadIndex(bigHasSemantics);
|
||||
switch (codedIndex & 1)
|
||||
{
|
||||
case 0:
|
||||
@@ -318,15 +291,7 @@ namespace IKVM.Reflection.Reader
|
||||
|
||||
internal int ReadHasFieldMarshal()
|
||||
{
|
||||
int codedIndex;
|
||||
if (bigHasFieldMarshal)
|
||||
{
|
||||
codedIndex = br.ReadInt32();
|
||||
}
|
||||
else
|
||||
{
|
||||
codedIndex = br.ReadUInt16();
|
||||
}
|
||||
int codedIndex = ReadIndex(bigHasFieldMarshal);
|
||||
switch (codedIndex & 1)
|
||||
{
|
||||
case 0:
|
||||
@@ -340,15 +305,7 @@ namespace IKVM.Reflection.Reader
|
||||
|
||||
internal int ReadHasDeclSecurity()
|
||||
{
|
||||
int codedIndex;
|
||||
if (bigHasDeclSecurity)
|
||||
{
|
||||
codedIndex = br.ReadInt32();
|
||||
}
|
||||
else
|
||||
{
|
||||
codedIndex = br.ReadUInt16();
|
||||
}
|
||||
int codedIndex = ReadIndex(bigHasDeclSecurity);
|
||||
switch (codedIndex & 3)
|
||||
{
|
||||
case 0:
|
||||
@@ -364,15 +321,7 @@ namespace IKVM.Reflection.Reader
|
||||
|
||||
internal int ReadTypeOrMethodDef()
|
||||
{
|
||||
int codedIndex;
|
||||
if (bigTypeOrMethodDef)
|
||||
{
|
||||
codedIndex = br.ReadInt32();
|
||||
}
|
||||
else
|
||||
{
|
||||
codedIndex = br.ReadUInt16();
|
||||
}
|
||||
int codedIndex = ReadIndex(bigTypeOrMethodDef);
|
||||
switch (codedIndex & 1)
|
||||
{
|
||||
case 0:
|
||||
@@ -386,15 +335,7 @@ namespace IKVM.Reflection.Reader
|
||||
|
||||
internal int ReadMemberForwarded()
|
||||
{
|
||||
int codedIndex;
|
||||
if (bigMemberForwarded)
|
||||
{
|
||||
codedIndex = br.ReadInt32();
|
||||
}
|
||||
else
|
||||
{
|
||||
codedIndex = br.ReadUInt16();
|
||||
}
|
||||
int codedIndex = ReadIndex(bigMemberForwarded);
|
||||
switch (codedIndex & 1)
|
||||
{
|
||||
case 0:
|
||||
@@ -408,15 +349,7 @@ namespace IKVM.Reflection.Reader
|
||||
|
||||
internal int ReadImplementation()
|
||||
{
|
||||
int codedIndex;
|
||||
if (bigImplementation)
|
||||
{
|
||||
codedIndex = br.ReadInt32();
|
||||
}
|
||||
else
|
||||
{
|
||||
codedIndex = br.ReadUInt16();
|
||||
}
|
||||
int codedIndex = ReadIndex(bigImplementation);
|
||||
switch (codedIndex & 3)
|
||||
{
|
||||
case 0:
|
||||
@@ -430,93 +363,44 @@ namespace IKVM.Reflection.Reader
|
||||
}
|
||||
}
|
||||
|
||||
private int ReadToken(int table, bool big)
|
||||
{
|
||||
int rid;
|
||||
if (big)
|
||||
{
|
||||
rid = br.ReadInt32();
|
||||
}
|
||||
else
|
||||
{
|
||||
rid = br.ReadUInt16();
|
||||
}
|
||||
return rid | (table << 24);
|
||||
}
|
||||
|
||||
internal int ReadField()
|
||||
{
|
||||
if (bigField)
|
||||
{
|
||||
return br.ReadInt32();
|
||||
}
|
||||
else
|
||||
{
|
||||
return br.ReadUInt16();
|
||||
}
|
||||
return ReadIndex(bigField);
|
||||
}
|
||||
|
||||
internal int ReadMethodDef()
|
||||
{
|
||||
if (bigMethodDef)
|
||||
{
|
||||
return br.ReadInt32();
|
||||
}
|
||||
else
|
||||
{
|
||||
return br.ReadUInt16();
|
||||
}
|
||||
return ReadIndex(bigMethodDef);
|
||||
}
|
||||
|
||||
internal int ReadParam()
|
||||
{
|
||||
if (bigParam)
|
||||
{
|
||||
return br.ReadInt32();
|
||||
}
|
||||
else
|
||||
{
|
||||
return br.ReadUInt16();
|
||||
}
|
||||
return ReadIndex(bigParam);
|
||||
}
|
||||
|
||||
internal int ReadProperty()
|
||||
{
|
||||
if (bigProperty)
|
||||
{
|
||||
return br.ReadInt32();
|
||||
}
|
||||
else
|
||||
{
|
||||
return br.ReadUInt16();
|
||||
}
|
||||
return ReadIndex(bigProperty);
|
||||
}
|
||||
|
||||
internal int ReadEvent()
|
||||
{
|
||||
if (bigEvent)
|
||||
{
|
||||
return br.ReadInt32();
|
||||
}
|
||||
else
|
||||
{
|
||||
return br.ReadUInt16();
|
||||
}
|
||||
return ReadIndex(bigEvent);
|
||||
}
|
||||
|
||||
internal int ReadTypeDef()
|
||||
{
|
||||
return ReadToken(TypeDefTable.Index, bigTypeDef);
|
||||
return ReadIndex(bigTypeDef) | (TypeDefTable.Index << 24);
|
||||
}
|
||||
|
||||
internal int ReadGenericParam()
|
||||
{
|
||||
return ReadToken(GenericParamTable.Index, bigGenericParam);
|
||||
return ReadIndex(bigGenericParam) | (GenericParamTable.Index << 24);
|
||||
}
|
||||
|
||||
internal int ReadModuleRef()
|
||||
{
|
||||
return ReadToken(ModuleRefTable.Index, bigModuleRef);
|
||||
return ReadIndex(bigModuleRef) | (ModuleRefTable.Index << 24);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -308,22 +308,22 @@ namespace IKVM.Reflection.Reader
|
||||
callingConvention = System.Runtime.InteropServices.CallingConvention.Winapi;
|
||||
break;
|
||||
}
|
||||
list.Add(MakeNamedArgument(type, "EntryPoint", entryPoint));
|
||||
list.Add(MakeNamedArgument(type, "ExactSpelling", flags, NoMangle));
|
||||
list.Add(MakeNamedArgument(type, "SetLastError", flags, SupportsLastError));
|
||||
list.Add(MakeNamedArgument(type, "PreserveSig", (int)GetMethodImplementationFlags(), (int)MethodImplAttributes.PreserveSig));
|
||||
list.Add(MakeNamedArgument(type, "CallingConvention", (int)callingConvention));
|
||||
AddNamedArgument(list, type, "EntryPoint", entryPoint);
|
||||
AddNamedArgument(list, type, "ExactSpelling", flags, NoMangle);
|
||||
AddNamedArgument(list, type, "SetLastError", flags, SupportsLastError);
|
||||
AddNamedArgument(list, type, "PreserveSig", (int)GetMethodImplementationFlags(), (int)MethodImplAttributes.PreserveSig);
|
||||
AddNamedArgument(list, type, "CallingConvention", (int)callingConvention);
|
||||
if (charSet.HasValue)
|
||||
{
|
||||
list.Add(MakeNamedArgument(type, "CharSet", (int)charSet.Value));
|
||||
AddNamedArgument(list, type, "CharSet", (int)charSet.Value);
|
||||
}
|
||||
if ((flags & (BestFitOn | BestFitOff)) != 0)
|
||||
{
|
||||
list.Add(MakeNamedArgument(type, "BestFitMapping", flags, BestFitOn));
|
||||
AddNamedArgument(list, type, "BestFitMapping", flags, BestFitOn);
|
||||
}
|
||||
if ((flags & (CharMapErrorOn | CharMapErrorOff)) != 0)
|
||||
{
|
||||
list.Add(MakeNamedArgument(type, "ThrowOnUnmappableChar", flags, CharMapErrorOn));
|
||||
AddNamedArgument(list, type, "ThrowOnUnmappableChar", flags, CharMapErrorOn);
|
||||
}
|
||||
attribs.Add(new CustomAttributeData(constructor, new object[] { dllName }, list));
|
||||
return;
|
||||
@@ -331,19 +331,29 @@ namespace IKVM.Reflection.Reader
|
||||
}
|
||||
}
|
||||
|
||||
private static CustomAttributeNamedArgument MakeNamedArgument(Type type, string field, string value)
|
||||
private static void AddNamedArgument(List<CustomAttributeNamedArgument> list, Type type, string fieldName, string value)
|
||||
{
|
||||
return new CustomAttributeNamedArgument(type.GetField(field), new CustomAttributeTypedArgument(type.Module.universe.System_String, value));
|
||||
AddNamedArgument(list, type, fieldName, type.Module.universe.System_String, value);
|
||||
}
|
||||
|
||||
private static CustomAttributeNamedArgument MakeNamedArgument(Type type, string field, int value)
|
||||
private static void AddNamedArgument(List<CustomAttributeNamedArgument> list, Type type, string fieldName, int value)
|
||||
{
|
||||
return new CustomAttributeNamedArgument(type.GetField(field), new CustomAttributeTypedArgument(type.Module.universe.System_Int32, value));
|
||||
AddNamedArgument(list, type, fieldName, type.Module.universe.System_Int32, value);
|
||||
}
|
||||
|
||||
private static CustomAttributeNamedArgument MakeNamedArgument(Type type, string field, int flags, int flagMask)
|
||||
private static void AddNamedArgument(List<CustomAttributeNamedArgument> list, Type type, string fieldName, int flags, int flagMask)
|
||||
{
|
||||
return new CustomAttributeNamedArgument(type.GetField(field), new CustomAttributeTypedArgument(type.Module.universe.System_Boolean, (flags & flagMask) != 0));
|
||||
AddNamedArgument(list, type, fieldName, type.Module.universe.System_Boolean, (flags & flagMask) != 0);
|
||||
}
|
||||
|
||||
private static void AddNamedArgument(List<CustomAttributeNamedArgument> list, Type attributeType, string fieldName, Type valueType, object value)
|
||||
{
|
||||
// some fields are not available on the .NET Compact Framework version of DllImportAttribute
|
||||
FieldInfo field = attributeType.GetField(fieldName);
|
||||
if (field != null)
|
||||
{
|
||||
list.Add(new CustomAttributeNamedArgument(field, new CustomAttributeTypedArgument(valueType, value)));
|
||||
}
|
||||
}
|
||||
|
||||
internal override MethodSignature MethodSignature
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright (C) 2009-2010 Jeroen Frijters
|
||||
Copyright (C) 2009-2011 Jeroen Frijters
|
||||
|
||||
This software is provided 'as-is', without any express or implied
|
||||
warranty. In no event will the authors be held liable for any damages
|
||||
@@ -74,8 +74,8 @@ namespace IKVM.Reflection.Reader
|
||||
private MethodBase[] methods;
|
||||
private MemberInfo[] memberRefs;
|
||||
private Dictionary<int, string> strings = new Dictionary<int, string>();
|
||||
private Dictionary<string, Type> types = new Dictionary<string, Type>();
|
||||
private Dictionary<string, LazyForwardedType> forwardedTypes = new Dictionary<string, LazyForwardedType>();
|
||||
private Dictionary<TypeName, Type> types = new Dictionary<TypeName, Type>();
|
||||
private Dictionary<TypeName, LazyForwardedType> forwardedTypes = new Dictionary<TypeName, LazyForwardedType>();
|
||||
|
||||
private sealed class LazyForwardedType
|
||||
{
|
||||
@@ -87,12 +87,16 @@ namespace IKVM.Reflection.Reader
|
||||
this.assemblyRef = assemblyRef;
|
||||
}
|
||||
|
||||
internal Type GetType(ModuleReader module, string typeName)
|
||||
internal Type GetType(ModuleReader module, TypeName typeName)
|
||||
{
|
||||
if (type == null)
|
||||
{
|
||||
Assembly asm = module.ResolveAssemblyRef(assemblyRef);
|
||||
type = asm.GetType(typeName, true);
|
||||
type = asm.ResolveType(typeName);
|
||||
if (type == null)
|
||||
{
|
||||
throw new TypeLoadException(typeName.ToString());
|
||||
}
|
||||
}
|
||||
return type;
|
||||
}
|
||||
@@ -156,13 +160,13 @@ namespace IKVM.Reflection.Reader
|
||||
{
|
||||
throw new BadImageFormatException("Invalid metadata signature");
|
||||
}
|
||||
ushort MajorVersion = br.ReadUInt16();
|
||||
ushort MinorVersion = br.ReadUInt16();
|
||||
uint Reserved = br.ReadUInt32();
|
||||
/*ushort MajorVersion =*/ br.ReadUInt16();
|
||||
/*ushort MinorVersion =*/ br.ReadUInt16();
|
||||
/*uint Reserved =*/ br.ReadUInt32();
|
||||
uint Length = br.ReadUInt32();
|
||||
byte[] buf = br.ReadBytes((int)Length);
|
||||
Version = Encoding.UTF8.GetString(buf).TrimEnd('\u0000');
|
||||
ushort Flags = br.ReadUInt16();
|
||||
/*ushort Flags =*/ br.ReadUInt16();
|
||||
ushort Streams = br.ReadUInt16();
|
||||
StreamHeader[] streamHeaders = new StreamHeader[Streams];
|
||||
for (int i = 0; i < streamHeaders.Length; i++)
|
||||
@@ -176,14 +180,14 @@ namespace IKVM.Reflection.Reader
|
||||
private void ReadTables(BinaryReader br)
|
||||
{
|
||||
Table[] tables = GetTables();
|
||||
uint Reserved0 = br.ReadUInt32();
|
||||
/*uint Reserved0 =*/ br.ReadUInt32();
|
||||
byte MajorVersion = br.ReadByte();
|
||||
byte MinorVersion = br.ReadByte();
|
||||
metadataStreamVersion = MajorVersion << 16 | MinorVersion;
|
||||
byte HeapSizes = br.ReadByte();
|
||||
byte Reserved7 = br.ReadByte();
|
||||
/*byte Reserved7 =*/ br.ReadByte();
|
||||
ulong Valid = br.ReadUInt64();
|
||||
ulong Sorted = br.ReadUInt64();
|
||||
/*ulong Sorted =*/ br.ReadUInt64();
|
||||
for (int i = 0; i < 64; i++)
|
||||
{
|
||||
if ((Valid & (1UL << i)) != 0)
|
||||
@@ -195,7 +199,7 @@ namespace IKVM.Reflection.Reader
|
||||
tables[i].RowCount = 0;
|
||||
}
|
||||
}
|
||||
MetadataReader mr = new MetadataReader(this, br, HeapSizes);
|
||||
MetadataReader mr = new MetadataReader(this, br.BaseStream, HeapSizes);
|
||||
for (int i = 0; i < 64; i++)
|
||||
{
|
||||
if ((Valid & (1UL << i)) != 0)
|
||||
@@ -251,9 +255,9 @@ namespace IKVM.Reflection.Reader
|
||||
{
|
||||
moduleType = type;
|
||||
}
|
||||
else
|
||||
else if (!type.IsNestedByFlags)
|
||||
{
|
||||
types.Add(type.FullName, type);
|
||||
types.Add(new TypeName(type.__Namespace, type.__Name), type);
|
||||
}
|
||||
}
|
||||
// add forwarded types to forwardedTypes dictionary (because Module.GetType(string) should return them)
|
||||
@@ -262,7 +266,7 @@ namespace IKVM.Reflection.Reader
|
||||
int implementation = ExportedType.records[i].Implementation;
|
||||
if (implementation >> 24 == AssemblyRefTable.Index)
|
||||
{
|
||||
string typeName = GetTypeName(ExportedType.records[i].TypeNamespace, ExportedType.records[i].TypeName);
|
||||
TypeName typeName = GetTypeName(ExportedType.records[i].TypeNamespace, ExportedType.records[i].TypeName);
|
||||
forwardedTypes.Add(typeName, new LazyForwardedType((implementation & 0xFFFFFF) - 1));
|
||||
}
|
||||
}
|
||||
@@ -362,19 +366,15 @@ namespace IKVM.Reflection.Reader
|
||||
case AssemblyRefTable.Index:
|
||||
{
|
||||
Assembly assembly = ResolveAssemblyRef((scope & 0xFFFFFF) - 1);
|
||||
string typeName = GetTypeName(TypeRef.records[index].TypeNameSpace, TypeRef.records[index].TypeName);
|
||||
Type type = assembly.GetType(typeName);
|
||||
if (type == null)
|
||||
{
|
||||
throw new TypeLoadException(String.Format("Type '{0}' not found in assembly '{1}'", typeName, assembly.FullName));
|
||||
}
|
||||
typeRefs[index] = type;
|
||||
TypeName typeName = GetTypeName(TypeRef.records[index].TypeNameSpace, TypeRef.records[index].TypeName);
|
||||
typeRefs[index] = assembly.ResolveType(typeName);
|
||||
break;
|
||||
}
|
||||
case TypeRefTable.Index:
|
||||
{
|
||||
Type outer = ResolveType(scope, null);
|
||||
typeRefs[index] = outer.GetNestedType(GetString(TypeRef.records[index].TypeName), BindingFlags.Public | BindingFlags.NonPublic);
|
||||
TypeName typeName = GetTypeName(TypeRef.records[index].TypeNameSpace, TypeRef.records[index].TypeName);
|
||||
typeRefs[index] = outer.ResolveNestedType(typeName);
|
||||
break;
|
||||
}
|
||||
case ModuleTable.Index:
|
||||
@@ -382,13 +382,13 @@ namespace IKVM.Reflection.Reader
|
||||
{
|
||||
throw new NotImplementedException("self reference scope?");
|
||||
}
|
||||
typeRefs[index] = GetType(GetTypeName(TypeRef.records[index].TypeNameSpace, TypeRef.records[index].TypeName));
|
||||
typeRefs[index] = FindType(GetTypeName(TypeRef.records[index].TypeNameSpace, TypeRef.records[index].TypeName));
|
||||
break;
|
||||
case ModuleRefTable.Index:
|
||||
{
|
||||
Module module = ResolveModuleRef(ModuleRef.records[(scope & 0xFFFFFF) - 1]);
|
||||
string typeName = GetTypeName(TypeRef.records[index].TypeNameSpace, TypeRef.records[index].TypeName);
|
||||
Type type = assembly.GetType(typeName);
|
||||
TypeName typeName = GetTypeName(TypeRef.records[index].TypeNameSpace, TypeRef.records[index].TypeName);
|
||||
Type type = module.FindType(typeName);
|
||||
if (type == null)
|
||||
{
|
||||
throw new TypeLoadException(String.Format("Type '{0}' not found in module '{1}'", typeName, module.Name));
|
||||
@@ -477,16 +477,9 @@ namespace IKVM.Reflection.Reader
|
||||
}
|
||||
}
|
||||
|
||||
private string GetTypeName(int typeNamespace, int typeName)
|
||||
private TypeName GetTypeName(int typeNamespace, int typeName)
|
||||
{
|
||||
if (typeNamespace == 0)
|
||||
{
|
||||
return GetString(typeName);
|
||||
}
|
||||
else
|
||||
{
|
||||
return GetString(typeNamespace) + "." + GetString(typeName);
|
||||
}
|
||||
return new TypeName(GetString(typeNamespace), GetString(typeName));
|
||||
}
|
||||
|
||||
private Assembly ResolveAssemblyRef(int index)
|
||||
@@ -561,7 +554,7 @@ namespace IKVM.Reflection.Reader
|
||||
get { return assembly; }
|
||||
}
|
||||
|
||||
internal override Type GetTypeImpl(string typeName)
|
||||
internal override Type FindType(TypeName typeName)
|
||||
{
|
||||
PopulateTypeDef();
|
||||
Type type;
|
||||
@@ -821,7 +814,7 @@ namespace IKVM.Reflection.Reader
|
||||
}
|
||||
type = type.BaseType;
|
||||
} while (type != null);
|
||||
throw new MissingMethodException(org.ToString(), name);
|
||||
return universe.GetMissingMethodOrThrow(org, name, methodSig);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -981,21 +974,21 @@ namespace IKVM.Reflection.Reader
|
||||
|
||||
public override IList<CustomAttributeData> __GetPlaceholderAssemblyCustomAttributes(bool multiple, bool security)
|
||||
{
|
||||
string typeName;
|
||||
TypeName typeName;
|
||||
switch ((multiple ? 1 : 0) + (security ? 2 : 0))
|
||||
{
|
||||
case 0:
|
||||
typeName = "System.Runtime.CompilerServices.AssemblyAttributesGoHere";
|
||||
typeName = new TypeName("System.Runtime.CompilerServices", "AssemblyAttributesGoHere");
|
||||
break;
|
||||
case 1:
|
||||
typeName = "System.Runtime.CompilerServices.AssemblyAttributesGoHereM";
|
||||
typeName = new TypeName("System.Runtime.CompilerServices", "AssemblyAttributesGoHereM");
|
||||
break;
|
||||
case 2:
|
||||
typeName = "System.Runtime.CompilerServices.AssemblyAttributesGoHereS";
|
||||
typeName = new TypeName("System.Runtime.CompilerServices", "AssemblyAttributesGoHereS");
|
||||
break;
|
||||
case 3:
|
||||
default:
|
||||
typeName = "System.Runtime.CompilerServices.AssemblyAttributesGoHereSM";
|
||||
typeName = new TypeName("System.Runtime.CompilerServices", "AssemblyAttributesGoHereSM");
|
||||
break;
|
||||
}
|
||||
List<CustomAttributeData> list = new List<CustomAttributeData>();
|
||||
|
||||
@@ -110,7 +110,7 @@ namespace IKVM.Reflection.Reader
|
||||
throw new NotSupportedException();
|
||||
}
|
||||
|
||||
internal override Type GetTypeImpl(string typeName)
|
||||
internal override Type FindType(TypeName typeName)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright (C) 2009 Jeroen Frijters
|
||||
Copyright (C) 2009-2011 Jeroen Frijters
|
||||
|
||||
This software is provided 'as-is', without any express or implied
|
||||
warranty. In no event will the authors be held liable for any damages
|
||||
@@ -41,8 +41,8 @@ namespace IKVM.Reflection.Reader
|
||||
{
|
||||
this.module = module;
|
||||
this.index = index;
|
||||
this.typeName = TypeNameParser.Escape(module.GetString(module.TypeDef.records[index].TypeName));
|
||||
this.typeNamespace = TypeNameParser.Escape(module.GetString(module.TypeDef.records[index].TypeNamespace));
|
||||
this.typeName = module.GetString(module.TypeDef.records[index].TypeName);
|
||||
this.typeNamespace = module.GetString(module.TypeDef.records[index].TypeNamespace);
|
||||
}
|
||||
|
||||
public override Type BaseType
|
||||
@@ -99,16 +99,20 @@ namespace IKVM.Reflection.Reader
|
||||
public override Type[] __GetDeclaredInterfaces()
|
||||
{
|
||||
int token = this.MetadataToken;
|
||||
List<Type> list = new List<Type>();
|
||||
List<Type> list = null;
|
||||
// TODO use binary search?
|
||||
for (int i = 0; i < module.InterfaceImpl.records.Length; i++)
|
||||
{
|
||||
if (module.InterfaceImpl.records[i].Class == token)
|
||||
{
|
||||
if (list == null)
|
||||
{
|
||||
list = new List<Type>();
|
||||
}
|
||||
list.Add(module.ResolveType(module.InterfaceImpl.records[i].Interface, this));
|
||||
}
|
||||
}
|
||||
return list.ToArray();
|
||||
return Util.ToArray(list, Type.EmptyTypes);
|
||||
}
|
||||
|
||||
public override MethodBase[] __GetDeclaredMethods()
|
||||
@@ -192,19 +196,24 @@ namespace IKVM.Reflection.Reader
|
||||
return Empty<PropertyInfo>.Array;
|
||||
}
|
||||
|
||||
public override string Name
|
||||
public override string __Name
|
||||
{
|
||||
get { return typeName; }
|
||||
}
|
||||
|
||||
public override string Namespace
|
||||
public override string __Namespace
|
||||
{
|
||||
get { return typeNamespace; }
|
||||
}
|
||||
|
||||
public override Type UnderlyingSystemType
|
||||
public override string Name
|
||||
{
|
||||
get { return this; }
|
||||
get { return TypeNameParser.Escape(typeName); }
|
||||
}
|
||||
|
||||
public override string FullName
|
||||
{
|
||||
get { return GetFullName(); }
|
||||
}
|
||||
|
||||
public override int MetadataToken
|
||||
@@ -295,12 +304,17 @@ namespace IKVM.Reflection.Reader
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
internal bool IsNestedByFlags
|
||||
{
|
||||
get { return (this.Attributes & TypeAttributes.VisibilityMask & ~TypeAttributes.Public) != 0; }
|
||||
}
|
||||
|
||||
public override Type DeclaringType
|
||||
{
|
||||
get
|
||||
{
|
||||
// note that we cannot use Type.IsNested for this, because that calls DeclaringType
|
||||
if ((this.Attributes & TypeAttributes.VisibilityMask & ~TypeAttributes.Public) == 0)
|
||||
if (!IsNestedByFlags)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -91,7 +91,7 @@ namespace IKVM.Reflection
|
||||
throw new BadImageFormatException();
|
||||
}
|
||||
Type type = ReadTypeDefOrRefEncoded(module, br, context);
|
||||
if (!type.IsGenericTypeDefinition)
|
||||
if (!type.__IsMissing && !type.IsGenericTypeDefinition)
|
||||
{
|
||||
throw new BadImageFormatException();
|
||||
}
|
||||
@@ -360,10 +360,18 @@ namespace IKVM.Reflection
|
||||
{
|
||||
bb.Write(ELEMENT_TYPE_VOID);
|
||||
}
|
||||
else if (type == u.System_Int32)
|
||||
{
|
||||
bb.Write(ELEMENT_TYPE_I4);
|
||||
}
|
||||
else if (type == u.System_Boolean)
|
||||
{
|
||||
bb.Write(ELEMENT_TYPE_BOOLEAN);
|
||||
}
|
||||
else if (type == u.System_String)
|
||||
{
|
||||
bb.Write(ELEMENT_TYPE_STRING);
|
||||
}
|
||||
else if (type == u.System_Char)
|
||||
{
|
||||
bb.Write(ELEMENT_TYPE_CHAR);
|
||||
@@ -384,10 +392,6 @@ namespace IKVM.Reflection
|
||||
{
|
||||
bb.Write(ELEMENT_TYPE_U2);
|
||||
}
|
||||
else if (type == u.System_Int32)
|
||||
{
|
||||
bb.Write(ELEMENT_TYPE_I4);
|
||||
}
|
||||
else if (type == u.System_UInt32)
|
||||
{
|
||||
bb.Write(ELEMENT_TYPE_U4);
|
||||
@@ -408,10 +412,6 @@ namespace IKVM.Reflection
|
||||
{
|
||||
bb.Write(ELEMENT_TYPE_R8);
|
||||
}
|
||||
else if (type == u.System_String)
|
||||
{
|
||||
bb.Write(ELEMENT_TYPE_STRING);
|
||||
}
|
||||
else if (type == u.System_IntPtr)
|
||||
{
|
||||
bb.Write(ELEMENT_TYPE_I);
|
||||
|
||||
@@ -27,7 +27,7 @@ using System.Text;
|
||||
|
||||
namespace IKVM.Reflection
|
||||
{
|
||||
public class StrongNameKeyPair
|
||||
public sealed class StrongNameKeyPair
|
||||
{
|
||||
internal readonly System.Reflection.StrongNameKeyPair keyPair;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright (C) 2009-2010 Jeroen Frijters
|
||||
Copyright (C) 2009-2011 Jeroen Frijters
|
||||
|
||||
This software is provided 'as-is', without any express or implied
|
||||
warranty. In no event will the authors be held liable for any damages
|
||||
@@ -44,6 +44,18 @@ namespace IKVM.Reflection
|
||||
public abstract class Type : MemberInfo, IGenericContext, IGenericBinder
|
||||
{
|
||||
public static readonly Type[] EmptyTypes = Empty<Type>.Array;
|
||||
protected readonly Type underlyingType;
|
||||
|
||||
// prevent subclassing by outsiders
|
||||
internal Type()
|
||||
{
|
||||
this.underlyingType = this;
|
||||
}
|
||||
|
||||
internal Type(Type underlyingType)
|
||||
{
|
||||
this.underlyingType = underlyingType;
|
||||
}
|
||||
|
||||
public static Binder DefaultBinder
|
||||
{
|
||||
@@ -175,9 +187,9 @@ namespace IKVM.Reflection
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
public virtual Type UnderlyingSystemType
|
||||
public Type UnderlyingSystemType
|
||||
{
|
||||
get { return this; }
|
||||
get { return underlyingType; }
|
||||
}
|
||||
|
||||
public override Type DeclaringType
|
||||
@@ -185,13 +197,19 @@ namespace IKVM.Reflection
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
public override string Name
|
||||
public virtual string __Name
|
||||
{
|
||||
get
|
||||
{
|
||||
string fullname = FullName;
|
||||
return fullname.Substring(fullname.LastIndexOf('.') + 1);
|
||||
}
|
||||
get { throw new InvalidOperationException(); }
|
||||
}
|
||||
|
||||
public virtual string __Namespace
|
||||
{
|
||||
get { throw new InvalidOperationException(); }
|
||||
}
|
||||
|
||||
public abstract override string Name
|
||||
{
|
||||
get;
|
||||
}
|
||||
|
||||
public virtual string Namespace
|
||||
@@ -200,11 +218,9 @@ namespace IKVM.Reflection
|
||||
{
|
||||
if (IsNested)
|
||||
{
|
||||
return null;
|
||||
return DeclaringType.Namespace;
|
||||
}
|
||||
string fullname = FullName;
|
||||
int index = fullname.LastIndexOf('.');
|
||||
return index < 0 ? null : fullname.Substring(0, index);
|
||||
return __Namespace;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -213,9 +229,23 @@ namespace IKVM.Reflection
|
||||
throw new InvalidOperationException();
|
||||
}
|
||||
|
||||
public static bool operator ==(Type t1, Type t2)
|
||||
{
|
||||
// Casting to object results in smaller code than calling ReferenceEquals and makes
|
||||
// this method more likely to be inlined.
|
||||
// On CLR v2 x86, microbenchmarks show this to be faster than calling ReferenceEquals.
|
||||
return (object)t1 == (object)t2
|
||||
|| ((object)t1 != null && (object)t2 != null && (object)t1.underlyingType == (object)t2.underlyingType);
|
||||
}
|
||||
|
||||
public static bool operator !=(Type t1, Type t2)
|
||||
{
|
||||
return !(t1 == t2);
|
||||
}
|
||||
|
||||
public bool Equals(Type type)
|
||||
{
|
||||
return !ReferenceEquals(type, null) && ReferenceEquals(type.UnderlyingSystemType, this.UnderlyingSystemType);
|
||||
return this == type;
|
||||
}
|
||||
|
||||
public override bool Equals(object obj)
|
||||
@@ -327,33 +357,35 @@ namespace IKVM.Reflection
|
||||
return FullName;
|
||||
}
|
||||
|
||||
public virtual string FullName
|
||||
public abstract string FullName
|
||||
{
|
||||
get
|
||||
get;
|
||||
}
|
||||
|
||||
protected string GetFullName()
|
||||
{
|
||||
string ns = TypeNameParser.Escape(this.__Namespace);
|
||||
Type decl = this.DeclaringType;
|
||||
if (decl == null)
|
||||
{
|
||||
Type decl = this.DeclaringType;
|
||||
string ns = this.Namespace;
|
||||
if (ns == null)
|
||||
{
|
||||
if (decl == null)
|
||||
{
|
||||
return this.Name;
|
||||
}
|
||||
else
|
||||
{
|
||||
return decl.FullName + "+" + this.Name;
|
||||
}
|
||||
return this.Name;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (decl == null)
|
||||
{
|
||||
return ns + "." + this.Name;
|
||||
}
|
||||
else
|
||||
{
|
||||
return decl.FullName + "+" + ns + "." + this.Name;
|
||||
}
|
||||
return ns + "." + this.Name;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (ns == null)
|
||||
{
|
||||
return decl.FullName + "+" + this.Name;
|
||||
}
|
||||
else
|
||||
{
|
||||
return decl.FullName + "+" + ns + "." + this.Name;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -736,6 +768,24 @@ namespace IKVM.Reflection
|
||||
return GetConstructor(bindingAttr, binder, types, modifiers);
|
||||
}
|
||||
|
||||
internal Type ResolveNestedType(TypeName typeName)
|
||||
{
|
||||
return FindNestedType(typeName) ?? Module.universe.GetMissingTypeOrThrow(Module, this, typeName);
|
||||
}
|
||||
|
||||
// unlike the public API, this takes the namespace and name into account
|
||||
internal virtual Type FindNestedType(TypeName name)
|
||||
{
|
||||
foreach (Type type in __GetDeclaredTypes())
|
||||
{
|
||||
if (type.__Namespace == name.Namespace && type.__Name == name.Name)
|
||||
{
|
||||
return type;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public Type GetNestedType(string name)
|
||||
{
|
||||
return GetNestedType(name, BindingFlags.Public);
|
||||
@@ -745,7 +795,8 @@ namespace IKVM.Reflection
|
||||
{
|
||||
foreach (Type type in GetNestedTypes(bindingAttr))
|
||||
{
|
||||
if (type.Name == name)
|
||||
// FXBUG the namespace is ignored
|
||||
if (type.__Name == name)
|
||||
{
|
||||
return type;
|
||||
}
|
||||
@@ -1106,6 +1157,25 @@ namespace IKVM.Reflection
|
||||
get { return this.DeclaringType != null; }
|
||||
}
|
||||
|
||||
public virtual bool __ContainsMissingType
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.__IsMissing)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
foreach (Type arg in this.GetGenericArguments())
|
||||
{
|
||||
if (arg.__ContainsMissingType)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public Type MakeArrayType()
|
||||
{
|
||||
return ArrayType.Make(this, null, null);
|
||||
@@ -1471,7 +1541,7 @@ namespace IKVM.Reflection
|
||||
}
|
||||
}
|
||||
|
||||
internal MethodBase FindMethod(string name, MethodSignature signature)
|
||||
internal virtual MethodBase FindMethod(string name, MethodSignature signature)
|
||||
{
|
||||
foreach (MethodBase method in __GetDeclaredMethods())
|
||||
{
|
||||
@@ -1574,6 +1644,11 @@ namespace IKVM.Reflection
|
||||
get { return elementType.Name + GetSuffix(); }
|
||||
}
|
||||
|
||||
public sealed override string Namespace
|
||||
{
|
||||
get { return elementType.Namespace; }
|
||||
}
|
||||
|
||||
public sealed override string FullName
|
||||
{
|
||||
get { return elementType.FullName + GetSuffix(); }
|
||||
@@ -1621,6 +1696,19 @@ namespace IKVM.Reflection
|
||||
}
|
||||
}
|
||||
|
||||
public sealed override bool __ContainsMissingType
|
||||
{
|
||||
get
|
||||
{
|
||||
Type type = elementType;
|
||||
while (type.HasElementType)
|
||||
{
|
||||
type = type.GetElementType();
|
||||
}
|
||||
return type.__ContainsMissingType;
|
||||
}
|
||||
}
|
||||
|
||||
internal sealed override Type BindTypeParameters(IGenericBinder binder)
|
||||
{
|
||||
Type type = elementType.BindTypeParameters(binder);
|
||||
@@ -2058,7 +2146,7 @@ namespace IKVM.Reflection
|
||||
internal static Type Make(Type type, Type[] typeArguments, Type[][] requiredCustomModifiers, Type[][] optionalCustomModifiers)
|
||||
{
|
||||
bool identity = true;
|
||||
if (type is TypeBuilder || type is BakedType)
|
||||
if (type is TypeBuilder || type is BakedType || type.__IsMissing)
|
||||
{
|
||||
// a TypeBuiler identity must be instantiated
|
||||
identity = false;
|
||||
@@ -2262,11 +2350,6 @@ namespace IKVM.Reflection
|
||||
get { return type.Namespace; }
|
||||
}
|
||||
|
||||
public override Type UnderlyingSystemType
|
||||
{
|
||||
get { return this; }
|
||||
}
|
||||
|
||||
public override string Name
|
||||
{
|
||||
get { return type.Name; }
|
||||
@@ -2280,7 +2363,7 @@ namespace IKVM.Reflection
|
||||
{
|
||||
return null;
|
||||
}
|
||||
StringBuilder sb = new StringBuilder(base.FullName);
|
||||
StringBuilder sb = new StringBuilder(this.type.FullName);
|
||||
sb.Append('[');
|
||||
foreach (Type type in args)
|
||||
{
|
||||
@@ -2356,6 +2439,21 @@ namespace IKVM.Reflection
|
||||
}
|
||||
}
|
||||
|
||||
public override bool __ContainsMissingType
|
||||
{
|
||||
get
|
||||
{
|
||||
foreach (Type type in args)
|
||||
{
|
||||
if (type.__ContainsMissingType)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return this.type.__IsMissing;
|
||||
}
|
||||
}
|
||||
|
||||
public override StructLayoutAttribute StructLayoutAttribute
|
||||
{
|
||||
get { return type.StructLayoutAttribute; }
|
||||
|
||||
Loaded 100 of 1764 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user