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

15532 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge 226a5f198f Merge remote-tracking branch 'origin/main' into bump-main-in-net8.0-2023-03-14 2023-03-27 19:53:33 +02:00
Alex Soto b18212ac8d
[CI] Fix GitHub ssh host key (#17900)
Context: https://github.blog/2023-03-23-we-updated-our-rsa-ssh-host-key/
2023-03-27 19:51:15 +02:00
Rolf Bjarne Kvinge 4645f3b9f9
Bump Touch.Unit. (#17819)
New commits in spouliot/Touch.Unit:

* spouliot/Touch.Unit@2836386 Always use NUnitTestAssemblyRunner's Load
overload with the assembly name
* spouliot/Touch.Unit@b85fb26 Second attempt to use NUnitTestAssemblyRunner's Load overload with the assembly name

Diff:
564433f35c..b85fb26cc0
2023-03-27 16:14:40 +02:00
Rolf Bjarne Kvinge 7acd23109e Update according to 'dotnet pack' changes in .NET 8.
'dotnet pack' does a Release build by default in .NET 8.
2023-03-27 15:30:13 +02:00
TJ Lambert e89cead712
[Localization] Remove the loc parameter from main-stage.yml (#17891) 2023-03-24 11:42:09 -05:00
dustin-wojciechowski 60b0724b4d
[Templates] Add comments to help developers publish MacCatalyst apps on App Store (#17830)
Added some information to the MacCatalyst templates based on comments from the community
on how to publish MacCatalyst apps on the App Store.

Fixes #17591
2023-03-23 20:21:08 -07:00
Manuel de la Pena cc695a8196
[Generator] Clean the attribute work. (#17570)
Some changes:

1. Move all the static attr related methods to the attr factory.
2. Make it simpler to see the diff between NET and not by using a
partial class.

---------

Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
2023-03-23 16:54:08 -04:00
TJ Lambert 7cc9e12da4
[Localization] Remove Localization from Main Stage (#17849) 2023-03-23 12:29:11 -05:00
TJ Lambert 2814d76bbd
[Localization] New Pipeline to replace github action - not from fork (#17853) 2023-03-23 12:17:31 -05:00
Haritha Mohan 3dff232920
[dotnet] Enable generation of runtime configuration file (#17840)
Set the GenerateRuntimeConfigurationFiles (GRCF) property to true 
to avoid warnings at build time + add test for change.

Diving deeper into the fix...
- This warning only occurs with .NET apps which is why GRCF
is only updated in the dotnet directory and not msbuild (legacy)
- After examining the binlog (see issue), it was found that the GRCF 
was contingent upon the HasRuntimeOutput property, which is only 
defined for executable projects. And in this case, the user's project
output type is library thus both the RuntimeOutput and consequently 
GRCF properties were not enabled.
- By setting the GRCF to true we can address the original warning of 
concern while ensuring the rest of the projects's behavior is not
altered
in mysterious ways (i.e. by touching the RuntimeOutput property or the 
project output type instead, these changes could have extraneous
effects).

Fixes #17543

---------

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2023-03-23 08:10:04 -07:00
Rolf Bjarne Kvinge f9cf852c09 Merge remote-tracking branch 'origin/net8.0' into bump-main-in-net8.0-2023-03-14 2023-03-23 15:33:49 +01:00
Rolf Bjarne Kvinge cfa2734a3a Merge remote-tracking branch 'origin/main' into bump-main-in-net8.0-2023-03-14 2023-03-23 15:33:43 +01:00
Rolf Bjarne Kvinge 32dd91129b
[system-dependencies] Check the correct PROVISION_X variable when provisioning simulators. (#17884) 2023-03-23 14:50:54 +01:00
Rolf Bjarne Kvinge 0d992d467b Merge remote-tracking branch 'origin/net8.0' into bump-main-in-net8.0-2023-03-14 2023-03-23 08:36:36 +01:00
Rolf Bjarne Kvinge 4131267879 Merge remote-tracking branch 'origin/main' into bump-main-in-net8.0-2023-03-14 2023-03-23 08:36:21 +01:00
Rolf Bjarne Kvinge 6e2ff59b30
[tests] Port Cecil tests to a .NET test project. (#17836) 2023-03-23 08:34:52 +01:00
Rolf Bjarne Kvinge c3292c32df
[msbuild] Merge the CollectITunesArtwork and CollectITunesArtworkTaskBase classes. (#17859)
We no longer need two have overridable logic for remote builds, so the
non-abstract task class and the abstract base class can be merged.
2023-03-23 08:34:40 +01:00
Rolf Bjarne Kvinge 7ef4153bd2
[msbuild] Always pass --wait-for-exit:<value> to mlaunch. (#17865)
Because depending on other options the default can be either 'true' or
'false', and this way we always ask mlaunch to do the right thing.

Also ensure any additional arguments are added last, so they can
override any other argument.
2023-03-23 08:34:13 +01:00
dotnet-maestro[bot] d059dbc241
[net8.0] Update dependencies from dotnet/installer (#17873)
This pull request updates the following dependencies

## Coherency Updates

The following updates ensure that dependencies with a
*CoherentParentDependency*
attribute were produced in a build used as input to the parent
dependency's build.
See [Dependency Description
Format](https://github.com/dotnet/arcade/blob/master/Documentation/DependencyDescriptionFormat.md#dependency-description-overview)

- **Coherency Updates**:
- **Microsoft.NET.ILLink.Tasks**: from 8.0.0-preview.2.23127.4 to
8.0.0-preview.3.23171.4 (parent: Microsoft.Dotnet.Sdk.Internal)
- **Microsoft.AspNetCore.App.Ref**: from 8.0.0-preview.3.23127.13 to
8.0.0-preview.4.23171.7 (parent: Microsoft.Dotnet.Sdk.Internal)
- **Microsoft.NETCore.App.Ref**: from 8.0.0-preview.2.23127.4 to
8.0.0-preview.3.23171.4 (parent: Microsoft.Dotnet.Sdk.Internal)
-
**Microsoft.NET.Workload.Emscripten.Current.Manifest-8.0.100.Transport**:
from 8.0.0-preview.2.23113.1 to 8.0.0-preview.3.23167.1 (parent:
Microsoft.NETCore.App.Ref)
- **Microsoft.NETCore.App.Ref**: from 8.0.0-preview.2.23127.4 to
8.0.0-preview.3.23171.4 (parent: Microsoft.Dotnet.Sdk.Internal)
- **Microsoft.DotNet.Cecil**: from 0.11.4-alpha.23113.1 to
0.11.4-alpha.23163.1 (parent: Microsoft.NETCore.App.Ref)

## From https://github.com/dotnet/installer
- **Subscription**: 9a2944cb-7dee-4bf2-a65c-08dabd10ae64
- **Build**: 20230322.3
- **Date Produced**: March 22, 2023 10:38:15 AM UTC
- **Commit**: 27622e389865f58c1d9293a4175f5d8f2cc44a2b
- **Branch**: refs/heads/main

- **Updates**:
- **Microsoft.Dotnet.Sdk.Internal**: [from 8.0.100-preview.3.23157.7 to
8.0.100-preview.4.23172.3][6]
- **Microsoft.NET.ILLink.Tasks**: [from 8.0.0-preview.2.23127.4 to
8.0.0-preview.3.23171.4][7]
- **Microsoft.AspNetCore.App.Ref**: [from 8.0.0-preview.3.23127.13 to
8.0.0-preview.4.23171.7][8]
- **Microsoft.NETCore.App.Ref**: [from 8.0.0-preview.2.23127.4 to
8.0.0-preview.3.23171.4][7]
-
**Microsoft.NET.Workload.Emscripten.Current.Manifest-8.0.100.Transport**:
[from 8.0.0-preview.2.23113.1 to 8.0.0-preview.3.23167.1][9]
- **Microsoft.NETCore.App.Ref**: [from 8.0.0-preview.2.23127.4 to
8.0.0-preview.3.23171.4][7]
- **Microsoft.DotNet.Cecil**: [from 0.11.4-alpha.23113.1 to
0.11.4-alpha.23163.1][10]

[6]: 790a290...27622e3
[7]: 2bdc3cb...edb161a
[8]: 3265dc6...16907a1
[9]: d7ff0aa...25d9f7a
[10]: 68e0c35...f32e148
2023-03-23 08:30:47 +01:00
dotnet-maestro[bot] d6455bbe4a
[net8.0] Update dependencies from xamarin/xamarin-macios (#17804)
This pull request updates the following dependencies

## From https://github.com/xamarin/xamarin-macios
- **Subscription**: c395c61c-56c9-4874-9264-08db24ab3ced
- **Build**: 20230321.39
- **Date Produced**: March 21, 2023 1:56:57 PM UTC
- **Commit**: 32ae5f163a
- **Branch**: refs/heads/release/7.0.2xx

- **Updates**:
  - **Microsoft.MacCatalyst.Sdk**: [from 16.2.1051 to 16.2.2042][17]

[17]:
76c2f4b...32ae5f1
2023-03-23 08:26:53 +01:00
Peter Collins 432d27b171
[vs-workload] Update VS Component versions (#17883)
Context: https://github.com/xamarin/sdk-insertions/issues/56

Updates the VS component version for all workloads to use the NuGet
versions commit distance as the third version part.
2023-03-23 08:22:42 +01:00
Rolf Bjarne Kvinge 6161fbbb30
[devops] Collect crash reports for each test job. (#17880) 2023-03-22 22:00:41 +01:00
Rolf Bjarne Kvinge 07198f1224
[tests] Add Windows .NET test that exercises some of our test configuration code. (#17874) 2023-03-22 20:23:26 +01:00
Rolf Bjarne Kvinge 8ac36f126e
[dotnet] Add support for setting an MSBuild property to pass additional mlaunch arguments. (#17866)
This is helpful when doing a command-line -t:Run build, because it's not
possible to set an item group from the command line.
2023-03-22 16:19:49 +01:00
Rolf Bjarne Kvinge c049fd33c3
[src] Fix min OS versions for .NET for numerous APIs. (#17871)
We don't need to specify a min OS version for APIs that are available in
the first OS version we support, in which case we just state that we support
said API.

This was done with this script:
https://gist.github.com/rolfbjarne/5374efba6757c724442137e89fa65113
2023-03-22 15:07:29 +01:00
Rolf Bjarne Kvinge 999c5a3e97
[tests] Share code to verify failures. (#17872)
We have some code that verifies a list of failures against a known set of
failures and:

* Fails if any known failure is fixed.
* Fails if there any new (unknown) failures.

Create a helper method that contains this logic, since it's duplicated quite a
few times across various tests.
2023-03-22 11:47:54 +01:00
Rolf Bjarne Kvinge 7ea0044224
[dotnet/msbuild] Copy binding resource packages to output directories together with CopyLocal assemblies. Fixes #13910. (#17806)
With a project structure like this:

* Executable project references a library project.
* The library project references a binding project (or assembly).

The binding project's assembly will be copied to the library project's
output directory during the build. Unless we also make sure any binding
resource packages are copied as well, the executable project won't find those,
and the final app won't contain any native bits from the binding project.

The solution is to add any binding resource packages to the list of
files to be copied to the library's output directory.

Fixes https://github.com/xamarin/xamarin-macios/issues/13910.
2023-03-22 10:49:26 +01:00
Rolf Bjarne Kvinge abd58acb6e [net8.0] This is preview 4 now. 2023-03-22 09:22:47 +01:00
Rolf Bjarne Kvinge e86c77a773
[devops] Run .NET tests with the 'Windows' category on Windows (#17796) 2023-03-22 07:49:03 +01:00
Rolf Bjarne Kvinge 02f5e2188c
[system-dependencies] Improve detection of existing simulator runtimes. (#17855)
Also fix a condition that would cause the script to provision simulator
runtimes as long as --provision-xcode was *not* passed to the script.
2023-03-22 07:48:10 +01:00
Rolf Bjarne Kvinge 663db17543
[generator] Simplify/clarify code a little bit. (#17858) 2023-03-22 07:42:29 +01:00
dotnet-maestro[bot] 8852f61dfe
[main] Update dependencies from dotnet/installer (to 7.0.2xx) (#17803)
This pull request updates the following dependencies

## Coherency Updates

The following updates ensure that dependencies with a *CoherentParentDependency*
attribute were produced in a build used as input to the parent dependency's build.
See [Dependency Description Format](https://github.com/dotnet/arcade/blob/master/Documentation/DependencyDescriptionFormat.md#dependency-description-overview)

- **Coherency Updates**:
  - **Microsoft.AspNetCore.App.Ref**: from 7.0.3 to 7.0.4 (parent: Microsoft.Dotnet.Sdk.Internal)

## From https://github.com/dotnet/installer
- **Subscription**: fffd7604-ce46-455f-0f2f-08db24524baf
- **Build**: 20230320.23
- **Date Produced**: March 21, 2023 6:36:46 AM UTC
- **Commit**: 332c2bc24954c8305a1985bd8e52088cc6b6a677
- **Branch**: refs/heads/release/7.0.2xx

- **Updates**:
  - **Microsoft.Dotnet.Sdk.Internal**: [from 7.0.105-servicing.23165.29 to 7.0.203-servicing.23170.23][8]

[8]: f7fbfe4...332c2bc
2023-03-22 07:41:11 +01:00
Rolf Bjarne Kvinge 247d1a9838
[maestro] Update emscripten subscription according to upstream changes to use more stable name. (#17864)
Ref: https://github.com/dotnet/runtime/pull/83208
2023-03-22 07:37:01 +01:00
dotnet-maestro[bot] 0197ffef5d
[net8.0] Update dependencies from xamarin/xamarin-macios (#17856)
This pull request updates the following dependencies

## From https://github.com/xamarin/xamarin-macios
- **Subscription**: 69411ae3-c771-4088-2d6e-08dac814288b
- **Build**: 20230321.8
- **Date Produced**: March 21, 2023 10:00:57 AM UTC
- **Commit**: 58b2ef64a4
- **Branch**: refs/heads/release/7.0.1xx-xcode14.2

- **Updates**:
  - **Microsoft.MacCatalyst.Sdk**: [from 16.2.1051 to 16.2.1054][12]

[12]:
76c2f4b...58b2ef6
2023-03-22 07:30:52 +01:00
Rolf Bjarne Kvinge 74c4fe7e25
[msbuild] Enable nullability and unify base and derived class for the GetFiles task. (#17814) 2023-03-21 18:22:12 +01:00
Rolf Bjarne Kvinge bfd87e4bb2
[msbuild] Verify Mac Catalyst apps like we verify macOS apps. Fixes #17829. (#17835)
* For Mac Catalyst apps we must verify the code signature like we do it for macOS apps. Fixes #17829.
* Enable nullability and fix code accordingly.
* Merge the CodesignVerify and CodesignVerifyTaskBase classes to simplify the code.

Submission test is added as well:

* https://github.com/xamarin/maccore/pull/2656
* https://github.com/xamarin/SubmissionSamples/pull/51

Fixes https://github.com/xamarin/xamarin-macios/issues/17829.
2023-03-21 18:20:05 +01:00
Rolf Bjarne Kvinge 6300a6aff7
[tests] Improve NWProtocolIPOptionsTest to not leak exceptions on background threads. (#17824) 2023-03-21 16:16:25 +01:00
dotnet-maestro[bot] 794281233c
[main] Update dependencies from dotnet/runtime (#17821)
This pull request updates the following dependencies

## From https://github.com/dotnet/runtime
- **Subscription**: 38d2313f-22d5-4062-c8e1-08dabd6d8c77
- **Build**: 20230315.8
- **Date Produced**: March 16, 2023 3:09:46 AM UTC
- **Commit**: 1e9466d9a2913f3a45893851f79b54da11ba3069
- **Branch**: refs/heads/release/7.0

- **Updates**:
  - **Microsoft.NETCore.App.Ref**: [from 7.0.5 to 7.0.5][5]

[5]: 1377e5e...1e9466d
2023-03-21 12:51:27 +01:00
dotnet-maestro[bot] 964eee254f
[main] Update dependencies from dotnet/installer (#17820)
This pull request updates the following dependencies

## From https://github.com/dotnet/installer
- **Subscription**: 50c9492e-4671-4d1d-7920-08dabd1031a2
- **Build**: 20230315.29
- **Date Produced**: March 16, 2023 12:31:23 AM UTC
- **Commit**: f7fbfe43cd951a8771c1e26c534a1308ffb25d29
- **Branch**: refs/heads/release/7.0.1xx

- **Updates**:
  - **Microsoft.Dotnet.Sdk.Internal**: [from 7.0.105-servicing.23164.24 to 7.0.105-servicing.23165.29][5]

[5]: 5b75cc6...f7fbfe4
2023-03-21 09:46:12 +01:00
Rolf Bjarne Kvinge a1d915a8a6
[devops] Clean simulator runtimes from bots. (#17832)
If there are more than one simulator runtime for a given platform, then
remove all of them.

This will hopefully fix a few problems we're having with hard drive
space issues (we end up with a lot of identical simulator runtimes
downloaded).
2023-03-21 07:42:09 +01:00
Steve Hawley 63470f9b74
add EditorBrowsable to obsolete member (#17854) 2023-03-21 07:41:39 +01:00
Peter Collins 289ded90fe
[vs-workload] Remove @(MultiTargetPackNames) (#17838)
Context: https://github.com/xamarin/yaml-templates/pull/251

The VS manifest files generated during MSI conversion will now be split
up using the workload pack type rather than a substring match.
2023-03-20 15:36:44 -04:00
Rolf Bjarne Kvinge 97d1eac9cb
[src] Improve the generated project files a little bit. (#17812)
* Use the right TFM.
* Compute the right assembly name.
2023-03-17 11:48:05 +01:00
Rolf Bjarne Kvinge f37c86bd1e
[tools] Re-create dotnet-linker.csproj.inc when dotnet-linker.csproj changes. (#17826) 2023-03-17 07:58:12 +01:00
Rolf Bjarne Kvinge 38a2442839
[tests] Run the OutOverriddenWithoutOutAttribute test on all platforms on .NET (#17827) 2023-03-17 07:57:59 +01:00
Rolf Bjarne Kvinge 68cb21838b
Encode the .NET version we're targeting in the third NuGet version number. (#17818)
Encode the .NET version we're targeting in the third NuGet version number by
adding X000 (where X is the .NET version) to the commit distance.

This accomplishes a few goals:

* We automatically compute a different NuGet version depending on the .NET version we're targeting.
* Versions are sorted correctly (.NET 7 nugets have a higher version number than .NET 6 nugets).
* It's possible to see which .NET version a NuGet is targeting from the version.

The downside is:

* The scheme breaks down if we need more than three digits for the commit
  distance (possible solution: add another zero, so we add X0000 instead of
  X000).
2023-03-17 07:39:59 +01:00
Steve Hawley 61ad2a9dec
CGEventCreate fixed broken call, added tests (#17805)
Fixes https://github.com/xamarin/xamarin-macios/issues/17656
2023-03-16 11:00:12 -04:00
Rolf Bjarne Kvinge 32bab2476a Merge remote-tracking branch 'origin/net8.0' into bump-main-in-net8.0-2023-03-14 2023-03-16 15:03:25 +01:00
Rolf Bjarne Kvinge 3c2ea7b8f6 Merge remote-tracking branch 'origin/main' into bump-main-in-net8.0-2023-03-14 2023-03-16 15:03:19 +01:00
Rolf Bjarne Kvinge b941563bbc
[src] Define NETX_Y_OR_GREATER flags for our platform assemblies. (#17811)
This is automatically done by 'dotnet build', but we don't use 'dotnet build'
to build our platform assemblies, so we have to do it manually since we want
to use these defines in our code.
2023-03-16 15:02:08 +01:00