Граф коммитов

48 Коммитов

Автор SHA1 Сообщение Дата
Filip Navara d89b6390f1
Update AOTCompile task to handle cycles in up-to-date check (#20103)
#### Background

While cyclic assembly references are unusual they are supported by the runtime and encountered in practice. In our project we use a version of Xamarin.Forms retargeted for a modern .NET (as a stopgap solution before an update to full MAUI stack). Xamarin.Forms historically come with such an assembly cycle: `Xamarin.Forms.Core.dll` -> `Xamarin.Forms.Platform.dll` -> `Xamarin.Forms.Platform.iOS.dll` -> `Xamarin.Forms.Core.dll`. This is produced by first compiling `Xamarin.Forms.Core.dll` against a dummy `Xamarin.Forms.Platform.dll` (`netstandard2.0` assembly). Then the Platform assemblies are built, and finally forwarder versions of `Xamarin.Forms.Platform.dll` are created for each platform. This is all packaged into NuGets in such a way that each TFM gets the same `Xamarin.Forms.Core.dll` but a different set of `Xamarin.Forms.Platform.dll` and `Xamarin.Forms.Platform.<platform>.dll` assemblies.

#### Problem

With current workloads each incremental rebuild fails with:

```
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/16.4.7125/targets/Xamarin.Shared.Sdk.targets(1047,3): error : Encountered an assembly reference cycle related to the assembly obj/Debug/net7.0-ios/iossimulator-arm64/linked/Xamarin.Forms.Core.dll
```

#### Solution

The PR updates the algorithm in `AOTCompile` to detect cycles using [Tarjan's algorithm](https://en.wikipedia.org/wiki/Tarjan%27s_strongly_connected_components_algorithm) for finding [strongly connected components](https://en.wikipedia.org/wiki/Strongly_connected_component) in a graph. When a cycle is detect any assembly in the cycle is considered up-to-date only if all the assemblies in the cycle are up-to-date.

With this change the project does incremental rebuilds correctly. I verified in the build output that the assembly cycle is considered up-to-date, and that any changes to the application assemblies still return `false` from the up-to-date check and get rebuilt.

---------

Co-authored-by: Filip Navara <filip.navara@gmail.com>
2024-02-15 17:29:18 +01:00
VS MobileTools Engineering Service 2 7cc334dd30
Bring changes from Localization branch #20231025.9 (#19340) 2023-10-31 16:00:11 -04:00
VS MobileTools Engineering Service 2 7be5c08268
Bring changes from Localization branch #20231019.4 (#19267)
The OneLoc team creates these translations to be consumed later on in
the second step of the Localization process. We need to bring these into
the main branch in order to continue the process.

Co-authored-by: CSIGS@microsoft.com <csigs@users.noreply.github.com>
2023-10-23 11:26:19 -05:00
VS MobileTools Engineering Service 2 b229fb18b1
Bring changes from Localization branch #20231018.4 (#19261)
The OneLoc team creates these translations to be consumed later on in
the second step of the Localization process. We need to bring these into
the main branch in order to continue the process.

Co-authored-by: CSIGS@microsoft.com <csigs@users.noreply.github.com>
2023-10-23 11:26:09 -05:00
VS MobileTools Engineering Service 2 f9bec61875
Bring changes from Localization branch #20231018.2 (#19247)
The OneLoc team creates these translations to be consumed later on in
the second step of the Localization process. We need to bring these into
the main branch in order to continue the process.

Co-authored-by: CSIGS@microsoft.com <csigs@users.noreply.github.com>
2023-10-18 16:17:18 -04:00
VS MobileTools Engineering Service 2 6af4bd57db
Bring changes from Localization branch #20231013.4 (#19205)
The OneLoc team creates these translations to be consumed later on in
the second step of the Localization process. We need to bring these into
the main branch in order to continue the process.

Co-authored-by: CSIGS@microsoft.com <csigs@users.noreply.github.com>
2023-10-16 11:43:32 -05:00
VS MobileTools Engineering Service 2 b61905f1d1
Bring changes from Localization branch #20231013.1 (#19194)
The OneLoc team creates these translations to be consumed later on in
the second step of the Localization process. We need to bring these into
the main branch in order to continue the process.

---------

Co-authored-by: CSIGS@microsoft.com <csigs@users.noreply.github.com>
2023-10-16 11:43:18 -05:00
VS MobileTools Engineering Service 2 f482fd0c64
Bring changes from Localization branch #20231012.7 (#19192)
The OneLoc team creates these translations to be consumed later on in
the second step of the Localization process. We need to bring these into
the main branch in order to continue the process.

Co-authored-by: CSIGS@microsoft.com <csigs@users.noreply.github.com>
2023-10-16 11:41:45 -05:00
VS MobileTools Engineering Service 2 cb5d9f9362
Bring changes from Localization branch #20231012.5 (#19177)
The OneLoc team creates these translations to be consumed later on in
the second step of the Localization process. We need to bring these into
the main branch in order to continue the process.

Co-authored-by: CSIGS@microsoft.com <csigs@users.noreply.github.com>
2023-10-16 11:24:52 -05:00
VS MobileTools Engineering Service 2 390f341c1e
Bring changes from Localization branch #20230910.3 (#18987)
The OneLoc team creates these translations to be consumed later on in
the second step of the Localization process. We need to bring these into
the main branch in order to continue the process.

Co-authored-by: CSIGS@microsoft.com <csigs@users.noreply.github.com>
Co-authored-by: TJ Lambert <50846373+tj-devel709@users.noreply.github.com>
2023-09-20 12:26:39 -05:00
VS MobileTools Engineering Service 2 5b230ce0b1
Bring changes from Localization branch #20230910.1 (#18985)
The OneLoc team creates these translations to be consumed later on in
the second step of the Localization process. We need to bring these into
the main branch in order to continue the process.

---------

Co-authored-by: CSIGS@microsoft.com <csigs@users.noreply.github.com>
Co-authored-by: TJ Lambert <50846373+tj-devel709@users.noreply.github.com>
2023-09-20 12:25:31 -05:00
VS MobileTools Engineering Service 2 ffee9dea40
Bring changes from Localization branch #20230909.2 (#18983)
The OneLoc team creates these translations to be consumed later on in
the second step of the Localization process. We need to bring these into
the main branch in order to continue the process.

---------

Co-authored-by: CSIGS@microsoft.com <csigs@users.noreply.github.com>
Co-authored-by: TJ Lambert <50846373+tj-devel709@users.noreply.github.com>
2023-09-20 12:22:03 -05:00
VS MobileTools Engineering Service 2 7875649b20
Bring changes from Localization branch #20230909.1 (#18980)
The OneLoc team creates these translations to be consumed later on in
the second step of the Localization process. We need to bring these into
the main branch in order to continue the process.

Co-authored-by: CSIGS@microsoft.com <csigs@users.noreply.github.com>
Co-authored-by: TJ Lambert <50846373+tj-devel709@users.noreply.github.com>
2023-09-20 12:21:02 -05:00
TJ Lambert 8e0609ac22
[Localization] Manually bring over lcl files (#18875)
These are lcl files (first part out of two of the localization process)
that contain the not-yet-usable translations. Bringing these manually
since there is an error in the pipeline that should be bringing these
over.
2023-08-31 10:19:02 -05:00
TJ Lambert fb147a155b
[Localization] Bring More Localization Changes (#18558)
Prior to changing to the new PAT to help with the automatization, we had
these lcl files waiting to be brought over. It's not clear if the new
PAT is fully working - we will need to wait until more translation codes
are added.
2023-07-17 11:13:46 -05:00
TJ Lambert f64c6f4412
[Localization] Bring over non-breaking space change (#18272)
The Loc team was able to change the non-breaking space on their end!

Co-authored-by: CSIGS <csigs@outlook.com>
2023-05-16 11:05:46 -05:00
TJ Lambert aed4d7a5d0
[Localization] Bring More Translations Manually (#18241)
Until, we can try a VSEng PAT for the Pipeline as seen in this
[PR](https://github.com/xamarin/xamarin-macios/pull/18122#issuecomment-1533558542),
I will continue to bring the [not-yet usable] translation strings
manually!

---------

Co-authored-by: CSIGS <csigs@outlook.com>
2023-05-09 11:03:08 -05:00
TJ Lambert 24e775f9aa
[Localization] Remove Duplicate Translations (#18123)
When bringing over the translations in this
[PR](https://github.com/xamarin/xamarin-macios/pull/18105), I brought
over a few and did not notice that the old ones were still there. This
removes the duplicates

Co-authored-by: tj-devel709 <tjlambert@microsoft.com>
2023-04-26 09:58:26 -05:00
TJ Lambert 3d5799a48a
[Localization] Bring over more translations (#18105)
As mentioned in this issue:
https://github.com/xamarin/maccore/issues/2658
These are being brought over to main in a PR, but then are automatically
closed by `vs-mobiletools-engineering-service2` as you can see here:
https://github.com/xamarin/xamarin-macios/pull/18036

I am still looking into this peculiar behavior, but am bringing over the
new translations until then!

---------

Co-authored-by: CSIGS <csigs@outlook.com>
2023-04-21 15:26:14 -05:00
TJ Lambert f4bfa471e0
[Localization] Two more merge conflicts to remove (#17972)
Continuation of this PR:
https://github.com/xamarin/xamarin-macios/pull/17963

Co-authored-by: tj-devel709 <tjlambert@microsoft.com>
2023-04-04 09:24:07 -05:00
TJ Lambert f0c23cf6cc
[Localization] Resolve Merge Conflicts (#17963)
There were two places that with merge conflicts from this PR:
https://github.com/xamarin/xamarin-macios/pull/17902

Maybe there could be a cecil test to catch `<<<<<<< HEAD` or other parts
of a merge conflict?

Co-authored-by: tj-devel709 <tjlambert@microsoft.com>
2023-04-03 16:13:39 -05:00
TJ Lambert 0ab9924b85
[Localization] Bring over lost Translations (#17902)
As a part of getting the Localization process back on track -
https://github.com/xamarin/maccore/issues/2658
These are the initial translations that One Loc's tool gave us but since
the Github Action was not allowed to create PRs, these did not land into
main. This PR is an accumulation of the last 8 commits from the LEGO
branch into the Localization branch.

---------

Co-authored-by: CSIGS <csigs@outlook.com>
Co-authored-by: Alex Hsu <csigs@users.noreply.github.com>
2023-03-29 09:28:30 -05:00
github-actions[bot] 6bd26fad0a
[Localization] Pulling New Localization Translations - Unknown GithubRunID (#17442)
Automated PR. Bring new translated changes in the lcl files for
OneLocBuild to create translated resx files.

Co-authored-by: CSIGS <csigs@outlook.com>
2023-02-09 10:11:55 -06:00
github-actions[bot] 8514c71596 [Localization] Pulling New Localization Translations $GITHUB_RUN_ID (#17342)
Automated PR. Bring new translated changes in the lcl files for
OneLocBuild to create translated resx files.

Co-authored-by: Alex Hsu <csigs@users.noreply.github.com>
Co-authored-by: CSIGS <csigs@outlook.com>
2023-01-24 14:22:37 +01:00
github-actions[bot] 49ceaba587
[Localization] Pulling New Localization Translations $GITHUB_RUN_ID (#17304)
Automated PR. Bring new translated changes in the lcl files for
OneLocBuild to create translated resx files.

Co-authored-by: CSIGS <csigs@outlook.com>
2023-01-19 10:32:09 -05:00
github-actions[bot] fcb1de1312
[Localization] Pulling New Localization Translations $GITHUB_RUN_ID (#17150)
Automated PR. Bring new translated changes in the lcl files for
OneLocBuild to create translated resx files.

Co-authored-by: csigs <csigs@users.noreply.github.com>
Co-authored-by: CSIGS <csigs@outlook.com>
2023-01-09 09:20:39 -06:00
github-actions[bot] d2eb43a708
[Localization] Pulling New Localization Translations 3525173584 (#16870)
Automated PR. Bring new translated changes in the lcl files for
OneLocBuild to create translated resx files.

Co-authored-by: csigs <csigs@users.noreply.github.com>
Co-authored-by: CSIGS <csigs@outlook.com>
Co-authored-by: Alex Soto <alex@alexsoto.me>
2022-11-29 10:46:39 -06:00
github-actions[bot] c6cc025edf
Juno: check in to lego/hb_dca0a672-370a-4b3c-b55f-cd146e93faf9_20220614235728397. (#15274)
Co-authored-by: CSIGS <csigs@outlook.com>
Co-authored-by: TJ Lambert <50846373+tj-devel709@users.noreply.github.com>
2022-06-21 12:16:32 -05:00
github-actions[bot] d25d6bea1c
[Localization] Pulling New Localization Translations 2259714093 (#14870)
* LEGO: Merge pull request 12848

LEGO: Merge pull request 12848

* LEGO: Merge pull request 12923

LEGO: Merge pull request 12923

* LEGO: Merge pull request 13022

LEGO: Merge pull request 13022

* LEGO: Merge pull request 13612

LEGO: Merge pull request 13612

* LEGO: Merge pull request 13638

LEGO: Merge pull request 13638

* LEGO: Merge pull request 14101

LEGO: Merge pull request 14101

* LEGO: Merge pull request 14205

LEGO: Merge pull request 14205

* LEGO: Merge pull request 14635

LEGO: Merge pull request 14635

* Juno: check in to lego/hb_dca0a672-370a-4b3c-b55f-cd146e93faf9_20220502183521765.

Co-authored-by: csigs <csigs@users.noreply.github.com>
Co-authored-by: CSIGS <csigs@outlook.com>
2022-05-04 11:43:11 -05:00
github-actions[bot] 2f429952ff
[Localization] Pulling New Localization Translations 2150044135 (#14721)
* LEGO: Merge pull request 14635

LEGO: Merge pull request 14635

* LEGO: Merge pull request 14671

LEGO: Merge pull request 14671

* Juno: check in to lego/hb_dca0a672-370a-4b3c-b55f-cd146e93faf9_20220411170820604.

Co-authored-by: csigs <csigs@users.noreply.github.com>
Co-authored-by: CSIGS <csigs@outlook.com>
Co-authored-by: TJ Lambert <50846373+tj-devel709@users.noreply.github.com>
2022-04-13 16:33:50 -05:00
github-actions[bot] 73d1aebde8
[Localization] Pulling New Localization Translations 2017569189 (#14455)
* LEGO: Merge pull request 12848

LEGO: Merge pull request 12848

* LEGO: Merge pull request 12923

LEGO: Merge pull request 12923

* LEGO: Merge pull request 13022

LEGO: Merge pull request 13022

* LEGO: Merge pull request 13612

LEGO: Merge pull request 13612

* LEGO: Merge pull request 13638

LEGO: Merge pull request 13638

* LEGO: Merge pull request 14101

LEGO: Merge pull request 14101

* LEGO: Merge pull request 14327

LEGO: Merge pull request 14327

* LEGO: Merge pull request 14393

LEGO: Merge pull request 14393

* LEGO: Merge pull request 14406

LEGO: Merge pull request 14406

* LEGO: check in for Localization to temporary branch.

Co-authored-by: csigs <csigs@users.noreply.github.com>
Co-authored-by: CSIGS <csigs@outlook.com>
Co-authored-by: TJ Lambert <50846373+tj-devel709@users.noreply.github.com>
2022-03-24 09:05:42 -05:00
github-actions[bot] 7af9f78ae4
[Localization] Pulling New Localization Translations 1877675209 (#14206)
* LEGO: Merge pull request 12848

LEGO: Merge pull request 12848

* LEGO: Merge pull request 12923

LEGO: Merge pull request 12923

* LEGO: Merge pull request 13022

LEGO: Merge pull request 13022

* LEGO: Merge pull request 13612

LEGO: Merge pull request 13612

* LEGO: Merge pull request 13638

LEGO: Merge pull request 13638

* LEGO: Merge pull request 14101

LEGO: Merge pull request 14101

* LEGO: check in for Localization to temporary branch.

Co-authored-by: csigs <csigs@users.noreply.github.com>
Co-authored-by: CSIGS <csigs@outlook.com>
2022-02-23 11:25:19 -06:00
github-actions[bot] d48e1b96f6
[Localization] Pulling New Localization Translations 1808072574 (#14102)
* LEGO: Merge pull request 12848

LEGO: Merge pull request 12848

* LEGO: Merge pull request 12923

LEGO: Merge pull request 12923

* LEGO: Merge pull request 13022

LEGO: Merge pull request 13022

* LEGO: Merge pull request 13612

LEGO: Merge pull request 13612

* LEGO: Merge pull request 13638

LEGO: Merge pull request 13638

* LEGO: check in for Localization to temporary branch.

Co-authored-by: csigs <csigs@users.noreply.github.com>
Co-authored-by: CSIGS <csigs@outlook.com>
2022-02-08 08:55:21 -06:00
github-actions[bot] ec3fc498fb
[Localization] Pulling New Localization Translations 1627849748 (#13639) 2022-01-04 08:37:41 -06:00
github-actions[bot] c2bc32fbb6
[Localization] Pulling New Localization Translations 1355767016 (#13023) 2021-10-21 12:46:55 -05:00
github-actions[bot] da9c95d604
[Localization] Pulling New Localization Translations 1304543339 (#12924) 2021-10-07 20:34:18 -05:00
github-actions[bot] 8fa1ccad0b
LEGO: check in for Localization to temporary branch. (#12849)
Co-authored-by: CSIGS <csigs@outlook.com>
2021-09-28 14:34:38 -04:00
github-actions[bot] fb2d6fc65e
[Localization] Pulling New Localization Translations 1183018662 (#12583) 2021-09-23 11:05:48 -05:00
github-actions[bot] d8730347bb
[Localization] Pulling New Localization Translations 1230485519 (#12718)
Co-authored-by: csigs <csigs@users.noreply.github.com>
Co-authored-by: CSIGS <csigs@outlook.com>
2021-09-15 12:53:35 -04:00
github-actions[bot] c52de82a49
[Localization] Pulling New Localization Translations 1206740382 (#12637)
Co-authored-by: csigs <csigs@users.noreply.github.com>
Co-authored-by: CSIGS <csigs@outlook.com>
2021-09-13 19:00:25 -04:00
github-actions[bot] 4aa51ba06e
[Localization] Pulling New Localization Translations 1069108685 (#12236)
Co-authored-by: csigs <csigs@users.noreply.github.com>
Co-authored-by: CSIGS <csigs@outlook.com>
Co-authored-by: TJ Lambert <50846373+tj-devel709@users.noreply.github.com>
2021-08-03 15:26:16 -04:00
github-actions[bot] aa9627aacd
[Localization] Pulling New Localization Translations 1063337862 (#12218)
Co-authored-by: csigs <csigs@users.noreply.github.com>
Co-authored-by: CSIGS <csigs@outlook.com>
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2021-08-03 15:25:39 -04:00
github-actions[bot] 9598c9bd7f
[Localization] Pulling New Localization Translations 1061159247 (#12214)
Co-authored-by: CSIGS <csigs@outlook.com>
2021-07-27 11:01:05 -04:00
github-actions[bot] 797a2f57d3
[Localization] Pulling New Localization Translations 995001664 (#12078)
Co-authored-by: csigs <csigs@users.noreply.github.com>
Co-authored-by: CSIGS <csigs@outlook.com>
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2021-07-09 16:22:28 -04:00
github-actions[bot] 9d31e45151
[Localization] Pulling New Localization Translations 991686731 (#12073)
Co-authored-by: csigs <csigs@users.noreply.github.com>
Co-authored-by: CSIGS <csigs@outlook.com>
2021-07-08 14:54:51 -04:00
github-actions[bot] 170ea55128
[Localization] Pulling New Localization Translations 938907789 (#11936)
* LEGO: Merge pull request 11912

LEGO: Merge pull request 11912

* LEGO: Merge pull request 11914

LEGO: Merge pull request 11914

* LEGO: check in for Localization to temporary branch.

Co-authored-by: csigs <csigs@users.noreply.github.com>
Co-authored-by: CSIGS <csigs@outlook.com>
2021-06-15 16:06:55 -05:00
TJ Lambert 6ad068b946
[Localization] Cherry Picking lcl files (#11682)
* LEGO: Merge pull request 11652

LEGO: Merge pull request 11652

* LEGO: Merge pull request 11646

LEGO: Merge pull request 11646

Co-authored-by: csigs <csigs@users.noreply.github.com>
2021-05-26 13:59:55 -05:00
TJ Lambert 25875b0f2c
[Localization] Bring localization check-in from Localization branch (#11628) 2021-05-20 10:25:02 -05:00