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

20 Коммитов

Автор 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 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
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 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
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] 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] 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] 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
TJ Lambert 25875b0f2c
[Localization] Bring localization check-in from Localization branch (#11628) 2021-05-20 10:25:02 -05:00