CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 04:34:55 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/"dcc062ad067a765fe2dea67e8afacb04"
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=L4vzQB0RcU0R4HbUyZkfb00O26HlrirWQnjTgMb1yaA7%2FQds15Y85xVumRReVEkEyffScaAL9VwuLTdr9pf0r4HipP1ngnAtFpaefWfz98tYUakx0wEpA6gz7fZd5DxsQqV2PhP7xbleKdJp%2F6kYv6yoc%2BYsLsIvWargMHQpXTbcqMYA98u7v1UrKyy0qngkwrybeFyeMbn2BGKAHLUQVYrXa4o2jfMxfQ%2BN7MC5dfIuFcFa%2FfWDeXT9qSvVd9Khiux2CkLWcnvlASSsRTbY8A%3D%3D--r4kES2Rmjs1WOqJC--2jHeD2Tgdo3AkRMmfmFTSw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1670821090.1753590895; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 04:34:55 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 04:34:55 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 868C:2EF87B:615571:83459F:6885AC6F
[Xamarin.Android.Build.Tasks] prevent _BuildLibraryProjectImportsCach… · dotnet/android@87bb898 · GitHub
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/Xamarin.Android.Common.targets
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 555
Commit 87bb898
[Xamarin.Android.Build.Tasks] prevent _BuildLibraryProjectImportsCache always running (#2132)
When testing a build with no changes, I started noticing:
Building target "_BuildLibraryImportsCache" completely.
Input file "App7\bin\Debug\netstandard2.0\App7.dll" is newer than output file "obj\Debug\90\libraryimports.cache".
What was weird, is that earlier in the build log:
Did not copy from file "bin\Debug\netstandard2.0\App7.dll" to file "bin\Debug\App7.dll" because the "SkipUnchangedFiles" parameter was set to "carview.php?tsp=true" in the project and the files' sizes and timestamps match.
So the NetStandard assembly didn't change.
When I looked at these files:
8/31/2018 11:02 AM App7.dll
8/31/2018 10:09 AM resourcepaths.cache
Weird? It looks like `resourcepaths.cache`'s timestamp needs to be
updated?
Then I looked and noticed that the timestamp of `resourcepaths.cache`
would only be updated if the XML changed.
My *first* attempt to fix this:
- I made `XDocumentExtensions.SaveIfChanged` return a `bool`
indicating if the file changed.
- I changed the `GetImportedLibraries` task so that it would update
the timestamp in cases where the file didn't change.
Unfortunately, that made `_UpdateAndroidResgen` run all the time,
which would be even worse!
So my *second* attempt was much better:
- Add a `$(_AndroidLibraryImportsCache).stamp` file, to use as the
`Outputs` of `_BuildLibraryImportsCache`.
- This file's timestamp can operate independently of
`$(_AndroidLibraryImportsCache)`
`_BuildLibraryImportsCache` now builds incrementally and gets skipped
properly:
Skipping target "_BuildLibraryImportsCache" because all output files are up-to-date with respect to the input files.
It seems to me this problem was always occurring on builds with no
changes. So this will likely help any incremental build.
Before this change:
146 ms _BuildLibraryImportsCache 1 calls
Total time: 2.824s
After this change:
4 ms _BuildLibraryImportsCache 1 calls
Total time: 2.698s
I also updated an existing test to make sure the
`_BuildLibraryImportsCache` target isn't running all the time.1 parent 63b5d6d commit 87bb898Copy full SHA for 87bb898
File tree
Expand file treeCollapse file tree
2 files changed
+7
-1
lines changedFilter options
- src/Xamarin.Android.Build.Tasks
- Tests/Xamarin.Android.Build.Tests
Expand file treeCollapse file tree
2 files changed
+7
-1
lines changedsrc/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+1Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
318 | 318 |
| |
319 | 319 |
| |
320 | 320 |
| |
| 321 | + | |
321 | 322 |
| |
322 | 323 |
| |
323 | 324 |
| |
|
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+6-1Lines changed: 6 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1447 | 1447 |
| |
1448 | 1448 |
| |
1449 | 1449 |
| |
1450 |
| - | |
| 1450 | + | |
1451 | 1451 |
| |
1452 | 1452 |
| |
1453 | 1453 |
| |
| 1454 | + | |
| 1455 | + | |
| 1456 | + | |
| 1457 | + | |
1454 | 1458 |
| |
1455 | 1459 |
| |
1456 | 1460 |
| |
| |||
3071 | 3075 |
| |
3072 | 3076 |
| |
3073 | 3077 |
| |
| 3078 | + | |
3074 | 3079 |
| |
3075 | 3080 |
| |
3076 | 3081 |
| |
|
You can’t perform that action at this time.
0 commit comments