CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 05:53:43 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/dotnet/android.git
etag: W/"9acd7e97f57127514ad0bd74ec67ba9e"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=mioNFDDkgAxTX57hLYmCYH4d0tqG9luGClyEKbsmYalUPCkLxuygpVFI9CaJ9%2FStVrBLBrHzJyMWQhHyD6eFThQLGxm4EwTxSHK9Z631nw2vW13khJZ18UW1dz%2FXsUDlXpJxqW%2F6ahqgjrlMuUWMJzJdj8jUGwPRGDRK%2F4ncfPrOuTxmfg6wKcaVrCB6Wq9vqXNDmbAgQ8MXHI5mp%2BS49CzTjiw3JW8XBZnN%2B2Sm4J190TdU%2FgkdJYZNMMUO7tg4HDEQpgwY8ULcnVklJUteqw%3D%3D--TFkJ5vhxSKmncwel--RMOrbEdywmLbQfiwaSi1BA%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.89205000.1753595621; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 05:53:41 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 05:53:41 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: EA9C:37D5F1:B1BBF3:ED1628:6885BEE5
[Xamarin.Android.Build.Tasks] Optionally skip ConvertResourcesCases (… · dotnet/android@02c07ed · GitHub
Copy file name to clipboardExpand all lines: src/Xamarin.Android.Build.Tasks/Tasks/CollectNonEmptyDirectories.cs
Copy file name to clipboardExpand all lines: src/Xamarin.Android.Build.Tasks/Tasks/ConvertResourcesCases.cs
Copy file name to clipboardExpand all lines: src/Xamarin.Android.Build.Tasks/Tasks/ResolveLibraryProjectImports.cs
Copy file name to clipboardExpand all lines: src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/BuildTest.cs
Copy file name to clipboardExpand all lines: src/Xamarin.Android.Build.Tasks/Utilities/XDocumentExtensions.cs
Copy file name to clipboardExpand all lines: src/Xamarin.Android.Build.Tasks/Xamarin.Android.Build.Tasks.targets
Copy file name to clipboardExpand all lines: src/Xamarin.Android.Build.Tasks/Xamarin.Android.Common.targets
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 555
Commit 02c07ed
[Xamarin.Android.Build.Tasks] Optionally skip ConvertResourcesCases (#2348)
Currently, we run the `<ConvertResourcesCases/>` MSBuild task for all
assemblies (on each assembly's `<ResolveLibraryProjectImports/>`
output). `<ConvertResourcesCases/>` is one of our slower tasks.
Luckily, there are some "well-known" assemblies that we could skip,
so we have decided to "whitelist" certain assemblies such as the
Android support libraries, Google Play Services, Firebase, etc.
A new `@(_AndroidAssemblySkipCases)` item group has been added, e.g.:
<_AndroidAssemblySkipCases Include="Xamarin.Android.Support.v7.AppCompat" />
<_AndroidAssemblySkipCases Include="Xamarin.Android.Support.v7.CardView" />
The `@(_AndroidAssemblySkipCases)` item group is an indicator for
`<ConvertResourcesCases/>` to just completely skip these assemblies.
Additionally, we can flat out skip `.aar` files in the same manner.
To make this work:
- Added support to put `ITaskItem` metadata in the cache file
produced by `<ResolveLibraryProjectImports/>`
- Added item metadata for `%(SkipAndroidResourceProcessing)` and
`%(OriginalFile)`.
- `<ConvertResourcesCases/>` now skips these directories and logs
`%(OriginalFile)`.
- `<CollectNonEmptyDirectories/>` needs to preserve item metadata
for `$(AndroidUseAapt2)` to take advantage of the functionality.
The results appear to be well worth the effort!
Results with `$(AndroidUseAapt2)` enabled (note this is not currently
the default):
Before:
9912 ms ConvertResourcesCases 9 calls
2219 ms ResolveLibraryProjectImports 1 calls
After:
49 ms ConvertResourcesCases 9 calls
2185 ms ResolveLibraryProjectImports 1 calls
Results with `$(AndroidUseAapt2)` disabled:
Before:
1564 ms ConvertResourcesCases 1 calls
1826 ms ResolveLibraryProjectImports 1 calls
After:
25 ms ConvertResourcesCases 1 calls
1685 ms ResolveLibraryProjectImports 1 calls
This was the Xamarin.Forms-Integration project in this repo, an
initial clean build. It is basically a "Hello World" Xamarin.Forms
project. These updated numbers are from a `Release` build of
Xamarin.Android.
Overall this will save 1-2 seconds of `<ConvertResourcesCases/>` for
default projects. This MSBuild task runs on an initial build or
incremental builds when Android resources have changed. I have gotten
slightly different numbers on the difference, each time I've compared.
There does not appear to be any noticeable slowdown in
`<ResolveLibraryProjectImports/>` due to the changes.1 parent dd786dc commit 02c07edCopy full SHA for 02c07ed
File tree
Expand file treeCollapse file tree
8 files changed
+325
-34
lines changedFilter options
- src/Xamarin.Android.Build.Tasks
- Tasks
- Tests/Xamarin.Android.Build.Tests
- Utilities
Expand file treeCollapse file tree
8 files changed
+325
-34
lines changedsrc/Xamarin.Android.Build.Tasks/Tasks/CollectNonEmptyDirectories.cs
Copy file name to clipboardExpand all lines: src/Xamarin.Android.Build.Tasks/Tasks/CollectNonEmptyDirectories.cs+4-2Lines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
24 |
| - | |
| 24 | + | |
25 | 25 |
| |
26 |
| - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
27 | 29 |
| |
28 | 30 |
| |
29 | 31 |
| |
|
src/Xamarin.Android.Build.Tasks/Tasks/ConvertResourcesCases.cs
Copy file name to clipboardExpand all lines: src/Xamarin.Android.Build.Tasks/Tasks/ConvertResourcesCases.cs+9-2Lines changed: 9 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
47 | 47 |
| |
48 | 48 |
| |
49 | 49 |
| |
50 |
| - | |
51 | 50 |
| |
52 | 51 |
| |
53 |
| - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
54 | 60 |
| |
| 61 | + | |
55 | 62 |
| |
56 | 63 |
| |
57 | 64 |
| |
|
src/Xamarin.Android.Build.Tasks/Tasks/ResolveLibraryProjectImports.cs
Copy file name to clipboardExpand all lines: src/Xamarin.Android.Build.Tasks/Tasks/ResolveLibraryProjectImports.cs+50-25Lines changed: 50 additions & 25 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
42 | 42 |
| |
43 | 43 |
| |
44 | 44 |
| |
| 45 | + | |
| 46 | + | |
45 | 47 |
| |
46 | 48 |
| |
47 | 49 |
| |
| |||
60 | 62 |
| |
61 | 63 |
| |
62 | 64 |
| |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
63 | 72 |
| |
| 73 | + | |
64 | 74 |
| |
65 | 75 |
| |
66 | 76 |
| |
| |||
70 | 80 |
| |
71 | 81 |
| |
72 | 82 |
| |
73 |
| - | |
74 |
| - | |
75 |
| - | |
76 |
| - | |
77 |
| - | |
78 |
| - | |
79 |
| - | |
80 |
| - | |
81 | 83 |
| |
82 |
| - | |
| 84 | + | |
83 | 85 |
| |
84 | 86 |
| |
85 | 87 |
| |
86 | 88 |
| |
| 89 | + | |
87 | 90 |
| |
88 | 91 |
| |
89 | 92 |
| |
| |||
95 | 98 |
| |
96 | 99 |
| |
97 | 100 |
| |
98 |
| - | |
99 |
| - | |
100 |
| - | |
| 101 | + | |
101 | 102 |
| |
102 | 103 |
| |
103 | 104 |
| |
| |||
120 | 121 |
| |
121 | 122 |
| |
122 | 123 |
| |
123 |
| - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
124 | 133 |
| |
125 | 134 |
| |
126 | 135 |
| |
| |||
133 | 142 |
| |
134 | 143 |
| |
135 | 144 |
| |
136 |
| - | |
137 |
| - | |
138 |
| - | |
139 |
| - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
140 | 149 |
| |
141 | 150 |
| |
142 | 151 |
| |
| |||
160 | 169 |
| |
161 | 170 |
| |
162 | 171 |
| |
163 |
| - | |
| 172 | + | |
164 | 173 |
| |
165 | 174 |
| |
166 | 175 |
| |
| |||
183 | 192 |
| |
184 | 193 |
| |
185 | 194 |
| |
186 |
| - | |
| 195 | + | |
| 196 | + | |
187 | 197 |
| |
188 |
| - | |
| 198 | + | |
189 | 199 |
| |
190 | 200 |
| |
191 | 201 |
| |
| |||
210 | 220 |
| |
211 | 221 |
| |
212 | 222 |
| |
213 |
| - | |
214 |
| - | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
215 | 231 |
| |
216 | 232 |
| |
217 | 233 |
| |
| |||
308 | 324 |
| |
309 | 325 |
| |
310 | 326 |
| |
311 |
| - | |
312 |
| - | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
313 | 335 |
| |
314 | 336 |
| |
315 | 337 |
| |
| |||
362 | 384 |
| |
363 | 385 |
| |
364 | 386 |
| |
365 |
| - | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
366 | 391 |
| |
367 | 392 |
| |
368 | 393 |
| |
|
src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/BuildTest.cs
Copy file name to clipboardExpand all lines: src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/BuildTest.cs+58Lines changed: 58 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
56 | 56 |
| |
57 | 57 |
| |
58 | 58 |
| |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
59 | 117 |
| |
60 | 118 |
| |
61 | 119 |
| |
|
src/Xamarin.Android.Build.Tasks/Utilities/XDocumentExtensions.cs
Copy file name to clipboardExpand all lines: src/Xamarin.Android.Build.Tasks/Utilities/XDocumentExtensions.cs+16-4Lines changed: 16 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
| 13 | + | |
| 14 | + | |
13 | 15 |
| |
14 | 16 |
| |
15 |
| - | |
16 |
| - | |
17 |
| - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
18 | 30 |
| |
19 | 31 |
| |
20 | 32 |
| |
21 | 33 |
| |
22 |
| - | |
| 34 | + | |
23 | 35 |
| |
24 | 36 |
| |
25 | 37 |
| |
|
src/Xamarin.Android.Build.Tasks/Xamarin.Android.Build.Tasks.targets
Copy file name to clipboardExpand all lines: src/Xamarin.Android.Build.Tasks/Xamarin.Android.Build.Tasks.targets+3Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
109 | 109 |
| |
110 | 110 |
| |
111 | 111 |
| |
| 112 | + | |
| 113 | + | |
| 114 | + | |
112 | 115 |
| |
113 | 116 |
| |
114 | 117 |
| |
|
src/Xamarin.Android.Build.Tasks/Xamarin.Android.Common.targets
Copy file name to clipboardExpand all lines: src/Xamarin.Android.Build.Tasks/Xamarin.Android.Common.targets+3-1Lines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
368 | 368 |
| |
369 | 369 |
| |
370 | 370 |
| |
| 371 | + | |
371 | 372 |
| |
372 | 373 |
| |
373 | 374 |
| |
| |||
1345 | 1346 |
| |
1346 | 1347 |
| |
1347 | 1348 |
| |
1348 |
| - | |
| 1349 | + | |
| 1350 | + | |
1349 | 1351 |
| |
1350 | 1352 |
| |
1351 | 1353 |
| |
|
You can’t perform that action at this time.
0 commit comments