Commit 3e3a326
committed
[Xamarin.Android.Build.Tasks] Fixed F# Resource Designer compilation issues
The latest release of F# removed support for static fields. As a result
the Resource.Designer.fs file that wes being generated by our build
system no longer compiled.
This commit reworks the Designer.cs code to emit a C# assembly for
F# projects rather than just the code. This has the benifit of
us not having to produce F# code in the first place.
The new system works as follows.
1) GenerateResourceDesigner Task generates a Resources.Designer.cs file as normal
2) If the target project is F# that file is then compiled into a Resource.Designer.dll
3) The new .dll is then included in the @ReferencePaths ItemGroup
4) The Resource.Designer.cs is removed from the @complie ItemGroup
If the project is C# or VS the Designer file is just included as normal.1 parent fbfd676 commit 3e3a326
File tree
2 files changed
+39
-36
lines changed- src/Xamarin.Android.Build.Tasks
- Tasks
2 files changed
+39
-36
lines changedLines changed: 17 additions & 34 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
41 | 45 | | |
42 | 46 | | |
43 | 47 | | |
| |||
98 | 102 | | |
99 | 103 | | |
100 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
101 | 110 | | |
102 | 111 | | |
103 | 112 | | |
| |||
125 | 134 | | |
126 | 135 | | |
127 | 136 | | |
128 | | - | |
| 137 | + | |
129 | 138 | | |
130 | 139 | | |
131 | | - | |
| 140 | + | |
132 | 141 | | |
133 | 142 | | |
134 | 143 | | |
135 | | - | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
136 | 147 | | |
137 | 148 | | |
138 | 149 | | |
139 | 150 | | |
140 | 151 | | |
141 | 152 | | |
142 | | - | |
| 153 | + | |
143 | 154 | | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | 155 | | |
154 | 156 | | |
155 | 157 | | |
| |||
162 | 164 | | |
163 | 165 | | |
164 | 166 | | |
165 | | - | |
| 167 | + | |
166 | 168 | | |
167 | | - | |
168 | | - | |
169 | | - | |
| 169 | + | |
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | 204 | | |
222 | 205 | | |
223 | 206 | | |
| |||
Lines changed: 22 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
984 | 984 | | |
985 | 985 | | |
986 | 986 | | |
987 | | - | |
| 987 | + | |
988 | 988 | | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
989 | 996 | | |
990 | 997 | | |
991 | 998 | | |
| |||
1293 | 1300 | | |
1294 | 1301 | | |
1295 | 1302 | | |
1296 | | - | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
1297 | 1306 | | |
1298 | 1307 | | |
1299 | 1308 | | |
| |||
1304 | 1313 | | |
1305 | 1314 | | |
1306 | 1315 | | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
1307 | 1326 | | |
1308 | 1327 | | |
1309 | 1328 | | |
| |||
2497 | 2516 | | |
2498 | 2517 | | |
2499 | 2518 | | |
| 2519 | + | |
2500 | 2520 | | |
2501 | 2521 | | |
2502 | 2522 | | |
| |||
0 commit comments