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

14050 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge b2c10aab23
[msbuild] Fix the FindAotCompiler task for .NET 7. (#15759)
Compute the .NET version to use when generating the project file to compute
the AOT compiler.

Also include a way to always force the computation, even on macOS (this eases
testing).

Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1597624.
2022-08-26 08:07:20 +02:00
dotnet-maestro[bot] 5db2302809
[net7.0] Update dependencies from dotnet/installer (#15716)
## From https://github.com/dotnet/installer
- **Subscription**: fa8142cc-91f4-4845-3384-08da5a845ad2
- **Build**: 20220823.10
- **Date Produced**: August 23, 2022 9:51:24 PM UTC
- **Commit**: 14391da7ae31fafcad2709e158f6ba9a4d8fd1c7
- **Branch**: refs/heads/release/7.0.1xx

- **Updates**:
  - **Microsoft.Dotnet.Sdk.Internal**: [from 7.0.100-rc.2.22417.1 to 7.0.100-rc.2.22423.10][5]
  - **Microsoft.NETCore.App.Ref**: [from 7.0.0-rc.1.22411.12 to 7.0.0-rc.1.22422.12][6]
  - **Microsoft.AspNetCore.App.Ref**: [from 7.0.0-rc.1.22415.4 to 7.0.0-rc.2.22423.1][7]

[5]: f3da421...14391da
[6]: f52d8c5...ef077d0
[7]: 0438e7e...f3e898b

## 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.NETCore.App.Ref**: from 7.0.0-rc.1.22411.12 to 7.0.0-rc.1.22422.12 (parent: Microsoft.Dotnet.Sdk.Internal)
  - **Microsoft.AspNetCore.App.Ref**: from 7.0.0-rc.1.22415.4 to 7.0.0-rc.2.22423.1 (parent: Microsoft.Dotnet.Sdk.Internal)

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: GitHub Actions <github-actions@xamarin.com>
2022-08-25 12:36:58 +02:00
Rolf Bjarne Kvinge 437e0f9fe4 [dotnet] Remove debug code. 2022-08-24 18:00:26 +02:00
Rolf Bjarne Kvinge 222c0ea824
[apidiff] Fix apidiff for .NET 7. (#15736)
This involved:

* Make the mono-api-info and mono-api-diff tools run with .NET 7 (instead of
  requiring .NET 6).
* Make the code cope with the fact that we're comparing .NET 6 assemblies (in
  a net6.0 directory) with .NET 7 assemblies (in a net7.0 directory).

Co-authored-by: TJ Lambert <50846373+tj-devel709@users.noreply.github.com>
2022-08-24 11:47:41 +02:00
Rolf Bjarne Kvinge 8072b6c86a
[net7.0] Merge main into net7.0. (#15731) 2022-08-23 16:19:56 +02:00
Rolf Bjarne Kvinge 105a12d637 Merge remote-tracking branch 'origin/main' into net7.0-merge-main-2022-08-23 2022-08-23 11:08:56 +02:00
Rolf Bjarne Kvinge a58dfef1b4
[tools] Fix issue when doing api comparison for PRs with multiple commits (#15710)
Fix an issue when doing API comparison for PRs with multiple commits, where we'd only do the comparison for the last commit, by not ignoring the provided base hash in the compare-commits script.
2022-08-22 18:32:08 +02:00
janwiebe-jump e515b5ca04
Fix #9996 and #15622 (#15642)
As discussed in #9996 the CPListSection constructors are not fully correct, since the CPListImageRowItem can't be added to it, which is possible in the native iOS SDK.
This PR fixes that. With that, also #15622 seems to be fixed.

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
Co-authored-by: Alex Soto <alex@alexsoto.me>
Co-authored-by: Chris Hamons <chris.hamons@xamarin.com>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-08-22 14:04:06 +02:00
Rolf Bjarne Kvinge 599ae5a931
[src] Use constants instead of string literals in numerous DllImports. (#15521) 2022-08-22 12:57:04 +02:00
Mauro Agnoletti 028afc2eab
Updated Xamarin.Messaging to 1.7.9 (#15714) 2022-08-19 16:30:35 -04:00
Marius Ungureanu 4b86732da5
Nullability annotations on NSUrl (#15356)
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-08-19 14:56:55 +02:00
dotnet-maestro[bot] 62055c56fb
[net7.0] Update dependencies from dotnet/installer (#15657)
* Update dependencies from https://github.com/dotnet/installer build 20220807.1

Microsoft.Dotnet.Sdk.Internal
 From Version 7.0.100-rc.1.22405.9 -> To Version 7.0.100-rc.1.22407.1

* Re-generate global.json

* Update dependencies from https://github.com/dotnet/installer build 20220808.5

Microsoft.Dotnet.Sdk.Internal
 From Version 7.0.100-rc.1.22405.9 -> To Version 7.0.100-rc.1.22408.5

* Re-generate global.json

* Update dependencies from https://github.com/dotnet/installer build 20220809.23

Microsoft.Dotnet.Sdk.Internal
 From Version 7.0.100-rc.1.22405.9 -> To Version 7.0.100-rc.1.22409.23

* Re-generate global.json

* Update dependencies from https://github.com/dotnet/installer build 20220810.15

Microsoft.Dotnet.Sdk.Internal
 From Version 7.0.100-rc.1.22405.9 -> To Version 7.0.100-rc.1.22410.15

* Re-generate global.json

* Update dependencies from https://github.com/dotnet/installer build 20220812.1

Microsoft.Dotnet.Sdk.Internal
 From Version 7.0.100-rc.1.22405.9 -> To Version 7.0.100-rc.1.22412.1

Dependency coherency updates

Microsoft.NET.ILLink.Tasks,Microsoft.NETCore.App.Ref,Microsoft.AspNetCore.App.Ref
 From Version 7.0.100-1.22377.1 -> To Version 7.0.100-1.22411.2 (parent: Microsoft.Dotnet.Sdk.Internal

* Re-generate global.json

* Update dependencies from https://github.com/dotnet/installer build 20220813.1

Microsoft.Dotnet.Sdk.Internal
 From Version 7.0.100-rc.1.22405.9 -> To Version 7.0.100-rc.1.22413.1

Dependency coherency updates

Microsoft.NET.ILLink.Tasks,Microsoft.NETCore.App.Ref,Microsoft.AspNetCore.App.Ref
 From Version 7.0.100-1.22377.1 -> To Version 7.0.100-1.22412.1 (parent: Microsoft.Dotnet.Sdk.Internal

* Re-generate global.json

* Update dependencies from https://github.com/dotnet/installer build 20220814.7

Microsoft.Dotnet.Sdk.Internal
 From Version 7.0.100-rc.1.22405.9 -> To Version 7.0.100-rc.1.22414.7

Dependency coherency updates

Microsoft.NET.ILLink.Tasks,Microsoft.NETCore.App.Ref,Microsoft.AspNetCore.App.Ref
 From Version 7.0.100-1.22377.1 -> To Version 7.0.100-1.22412.1 (parent: Microsoft.Dotnet.Sdk.Internal

* Re-generate global.json

* Update dependencies from https://github.com/dotnet/installer build 20220816.2

Microsoft.Dotnet.Sdk.Internal
 From Version 7.0.100-rc.1.22405.9 -> To Version 7.0.100-rc.1.22416.2

Dependency coherency updates

Microsoft.NET.ILLink.Tasks,Microsoft.NETCore.App.Ref,Microsoft.AspNetCore.App.Ref
 From Version 7.0.100-1.22377.1 -> To Version 7.0.100-1.22415.1 (parent: Microsoft.Dotnet.Sdk.Internal

* Re-generate global.json

* Update dependencies from https://github.com/dotnet/installer build 20220817.1

Microsoft.Dotnet.Sdk.Internal
 From Version 7.0.100-rc.1.22405.9 -> To Version 7.0.100-rc.2.22417.1

Dependency coherency updates

Microsoft.NET.ILLink.Tasks,Microsoft.NETCore.App.Ref,Microsoft.AspNetCore.App.Ref
 From Version 7.0.100-1.22377.1 -> To Version 7.0.100-1.22415.4 (parent: Microsoft.Dotnet.Sdk.Internal

* Re-generate global.json

* [dotnet] Include the 'marshal-ilgen' component. Fixes #15668.

Fixes https://github.com/xamarin/xamarin-macios/issues/15668.

* [dotnet] Enable serialization discovery in the linker. Fixes #15676.

Fixes https://github.com/xamarin/xamarin-macios/issues/15676.

* [tests] Make the dont link tests actually not link for macOS.

* [tests] The 'trimmode copy' test needs an adjustment after recent linker changes.

* [dotnet] Don't set a default 'TrimMode' value.

We already compute a TrimMode value depending on other properties
(MtouchLink/LinkMode - or a default value if those aren't set), and the logic
to compute the default value is not executed if we set a TrimMode default (because
TrimMode overrides any MtouchLink/LinkMode values).

* [tests] Workaround a bug in 'dotnet build'.

Workaround a bug in 'dotnet build' where escaping semicolons interferes with
our ability to pass RuntimeIdentifiers to the build on the command line.

* [dotnet] Update expected bundle contents according to updated runtime.

* [tests] Update expected error message texts.

* Bump to RC 2.

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: GitHub Actions <github-actions@xamarin.com>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-08-19 12:53:56 +02:00
Rolf Bjarne Kvinge 6f2a34c1d7
[tests] Improve output when writing log events in test logs. (#15688) 2022-08-18 17:25:10 +02:00
Rolf Bjarne Kvinge e54019a336
[dotnet] Make it possible to specify the registrar using a 'Registrar' property in MSBuild. (#15483)
Co-authored-by: Marius Ungureanu <therzok@gmail.com>
2022-08-18 17:21:48 +02:00
Rolf Bjarne Kvinge aaee2bf794
[msbuild] Unify the CreateEmbeddedResources task between iOS and Mac. (#15500)
I've chosen the iOS implementation, since it's a bit more advanced to support
remote builds (the Mac implementation didn't do anything at all).

This should have no effect, since we don't support remote builds for macOS
anyways.
2022-08-18 16:56:23 +02:00
Jimmy Reichley b1cb5f62b7
Remove duplicated SceneKitAsset declarations (#15665)
Just happened to come across this when reading through the targets. Been duplicated for 2 years it looks like so 🤷
2022-08-17 14:52:18 +02:00
Alex Soto 0e53b999d2
[net7.0] Updates the path to illink when building from Windows (#15667)
The directory that contains illink.dll is now net7.0
2022-08-10 16:39:45 -04:00
Steve Hawley 10b6dffec0
better help, change priority of processing help request. (#15660) 2022-08-09 10:14:48 -04:00
Chris Hamons 20825e1218
[generator] Do not zero-extend implied catalyst attributes (#15648)
- In the [Xcode 14 Photo PR](https://github.com/xamarin/xamarin-macios/pull/15608) a test is failing with this:

```
ILLINK : error MT2362: The linker step 'Registrar' failed during processing: One or more errors occurred. (The type 'Photos.PHPersistentObjectChangeDetails' (used as a return type in Photos.PHPersistentChange.ChangeDetails) is not available in MacCatalyst 16.0 (it was introduced in MacCatalyst 16.0.0). Please build with a newer MacCatalyst SDK (usually done by using the most recent version of Xcode). [/Users/donblas/Programming/xamarin-macios/tests/dotnet/MySimpleApp/MacCatalyst/MySimpleApp.csproj]
  		) (The type 'Photos.PHObjectType' (used as a parameter in Photos.PHPersistentChange.ChangeDetails) is not available in MacCatalyst 16.0 (it was introduced in MacCatalyst 16.0.0). Please build with a newer MacCatalyst SDK (usually done by using the most recent version of Xcode).
  		) (The type 'Photos.PHPersistentChangeFetchResult' (used as a return type in Photos.PHPhotoLibrary.FetchPersistentChanges) is not available in MacCatalyst 16.0 (it was introduced in MacCatalyst 16.0.0). Please build with a newer MacCatalyst SDK (usually done by using the most recent version of Xcode).
  		) (The type 'Photos.PHPersistentChangeToken' (used as a parameter in Photos.PHPhotoLibrary.FetchPersistentChanges) is not available in MacCatalyst 16.0 (it was introduced in MacCatalyst 16.0.0). Please build with a newer MacCatalyst SDK (usually done by using the most recent version of Xcode).
```

The details of how we fail are written up in [this issue](https://github.com/xamarin/xamarin-macios/issues/15643) but since sharpie never outputs versions in the form of x.y.z where .z is zero we only hit this with generated attributes.

Because of this fact, we can work around it with a generator change.

This commit changes how we "imply" attributes from iOS to Catalyst. As a brief reminder, because of historical bindings we assume anything that has iOS and not a Catalyst really means "treat iOS as if it was also Catalyst".

This work is done in `AddImpliedCatalyst` and uses `CloneFromOtherPlatform` to make a copy of an attribute, because there is no easy way to say "I want a copy of this, but with this other platform". `CloneFromOtherPlatform` used to always call the 3 version (Major, Minor, Revision) constructor, even when the attribute being cloned only used Major.Minor.

However, this caused us to "zero extend" the version with another zero, which triggers this bug, so stop doing that. Uglier code in the generator, but it works better.

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-08-08 09:26:50 -05:00
Manuel de la Pena 5d8860f100
[UIKit] Remove the preprocessor directives for watchOS. (#15601)
This change should have 0/null/nine/nada changes in the API. The goal is
to remove the preprocessor directives to ensure that the xcode14
bindings have a smaller diff and are easier to review.
2022-08-07 13:50:19 -04:00
Alex Soto 868666ec92
Merge pull request #15651 from dalexsoto/net7.0-a-new-hope
[net7.0] Merges main, PR#15368 and PR#15496 into net7.0 branch
2022-08-06 21:40:58 -04:00
Alex Soto 7e730c25ea Merge remote-tracking branch 'xamarin/darc-net7.0-40db311e-782b-4937-9691-78057bd384db' into net7.0-a-new-hope 2022-08-06 16:11:43 -04:00
GitHub Actions fd5c4ce373 Re-generate global.json 2022-08-06 13:13:21 +00:00
dotnet-maestro[bot] c178e8a704 Update dependencies from https://github.com/dotnet/installer build 20220805.9
Microsoft.Dotnet.Sdk.Internal
 From Version 7.0.100-rc.1.22363.4 -> To Version 7.0.100-rc.1.22405.9

Dependency coherency updates

Microsoft.NET.ILLink.Tasks,Microsoft.NETCore.App.Ref,Microsoft.AspNetCore.App.Ref
 From Version 7.0.100-1.22362.1 -> To Version 7.0.100-1.22377.1 (parent: Microsoft.Dotnet.Sdk.Internal
2022-08-06 13:12:37 +00:00
Jonathan Peppers eba061c862 Add a mkdir to create $(DOTNET_MANIFESTS_PATH) 2022-08-05 18:04:31 -04:00
Jonathan Peppers a135c7e02c Copy 7.0.100 sdk-manifest files
The build was failing with errors like:

    Could not find workload 'microsoft-net-runtime-tvos' extended by workload 'tvos' in manifest 'microsoft.net.sdk.tvos'

I found I could copy the mono/emscripten workloads from 7.0.100 to
7.0.100-rc.1 to get past this.

I looked at the xamarin-android build tree, and we were doing this...

But I don't exactly remember why -- or if it was Peter or I that did it.
2022-08-05 18:04:05 -04:00
Alex Soto af409e9f9e [net7.0] bump linker to net7.0 2022-08-05 18:03:40 -04:00
Alex Soto 3240c511b4 Merge remote-tracking branch 'xamarin/darc-net7.0-40db311e-782b-4937-9691-78057bd384db' into net7.0-a-new-hope 2022-08-05 17:59:36 -04:00
Alex Soto 028b85da07 Merge remote-tracking branch 'agocke/set-trimmode-partial' into net7.0-a-new-hope 2022-08-05 17:59:04 -04:00
Alex Soto 1434ede326 Merge remote-tracking branch 'xamarin/main' into net7.0-a-new-hope 2022-08-05 17:58:58 -04:00
Steve Hawley 8858da6bf3
[Nnyeah] doc'n update (#15646) 2022-08-05 16:35:25 -04:00
Steve Hawley d4e827ce20
[nnyeah] Added code to look up the legacy platform dll instead of requiring it. (#15631)
* Added code to look up the legacy platform dll instead of requiring it.
2022-08-05 10:21:52 -04:00
GitHub Actions 68253e546f Re-generate global.json 2022-08-05 13:11:48 +00:00
dotnet-maestro[bot] 0d3356526a Update dependencies from https://github.com/dotnet/installer build 20220805.1
Microsoft.Dotnet.Sdk.Internal
 From Version 7.0.100-rc.1.22363.4 -> To Version 7.0.100-rc.1.22405.1

Dependency coherency updates

Microsoft.NET.ILLink.Tasks,Microsoft.NETCore.App.Ref,Microsoft.AspNetCore.App.Ref
 From Version 7.0.100-1.22362.1 -> To Version 7.0.100-1.22377.1 (parent: Microsoft.Dotnet.Sdk.Internal
2022-08-05 13:11:01 +00:00
Steve Hawley d34cbe230c
Better error message for ctors that we can't get to anymore. (#15378)
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2022-08-04 15:34:28 -04:00
Manuel de la Pena 182bee91b7
[CI] Make sure we do not have pkgs from other builds. (#15619) 2022-08-04 10:31:46 -04:00
GitHub Actions 4ceb899732 Re-generate global.json 2022-08-04 13:29:20 +00:00
dotnet-maestro[bot] cb9dc4b9f4 Update dependencies from https://github.com/dotnet/installer build 20220803.8
Microsoft.Dotnet.Sdk.Internal
 From Version 7.0.100-rc.1.22363.4 -> To Version 7.0.100-rc.1.22403.8

Dependency coherency updates

Microsoft.NET.ILLink.Tasks,Microsoft.NETCore.App.Ref,Microsoft.AspNetCore.App.Ref
 From Version 7.0.100-1.22362.1 -> To Version 7.0.100-1.22377.1 (parent: Microsoft.Dotnet.Sdk.Internal
2022-08-04 13:28:28 +00:00
Manuel de la Pena ce6f46840a
[submodules] Fix indentation in config file. (#15618) 2022-08-03 17:13:23 -04:00
Manuel de la Pena 8a17b2592f
[CI] List the installed frameworks in the test bot. (#15611) 2022-08-03 10:25:20 -04:00
GitHub Actions df5a088114 Re-generate global.json 2022-08-03 13:18:49 +00:00
dotnet-maestro[bot] bef4fc03a8 Update dependencies from https://github.com/dotnet/installer build 20220803.4
Microsoft.Dotnet.Sdk.Internal
 From Version 7.0.100-rc.1.22363.4 -> To Version 7.0.100-rc.1.22403.4

Dependency coherency updates

Microsoft.NET.ILLink.Tasks,Microsoft.NETCore.App.Ref,Microsoft.AspNetCore.App.Ref
 From Version 7.0.100-1.22362.1 -> To Version 7.0.100-1.22377.1 (parent: Microsoft.Dotnet.Sdk.Internal
2022-08-03 13:17:43 +00:00
Rolf Bjarne Kvinge 29df69192f
[nnyeah] Return a non-zero exit code if something goes wrong. (#15450) 2022-08-02 19:28:15 -04:00
Steve Hawley f069898a29
[nnyeah] update documentation (#15592)
* update documentation

* clean up mark down
2022-08-02 11:11:10 -04:00
GitHub Actions bba5246b79 Re-generate global.json 2022-08-02 13:20:29 +00:00
dotnet-maestro[bot] 81d3e56191 Update dependencies from https://github.com/dotnet/installer build 20220802.2
Microsoft.Dotnet.Sdk.Internal
 From Version 7.0.100-rc.1.22363.4 -> To Version 7.0.100-rc.1.22402.2

Dependency coherency updates

Microsoft.NET.ILLink.Tasks,Microsoft.NETCore.App.Ref,Microsoft.AspNetCore.App.Ref
 From Version 7.0.100-1.22362.1 -> To Version 7.0.100-1.22377.1 (parent: Microsoft.Dotnet.Sdk.Internal
2022-08-02 13:19:33 +00:00
GitHub Actions a9cc7ff746 Re-generate global.json 2022-08-01 13:07:49 +00:00
dotnet-maestro[bot] adf684ff49 Update dependencies from https://github.com/dotnet/installer build 20220731.2
Microsoft.Dotnet.Sdk.Internal
 From Version 7.0.100-rc.1.22363.4 -> To Version 7.0.100-rc.1.22381.2

Dependency coherency updates

Microsoft.NET.ILLink.Tasks,Microsoft.NETCore.App.Ref,Microsoft.AspNetCore.App.Ref
 From Version 7.0.100-1.22362.1 -> To Version 7.0.100-1.22377.1 (parent: Microsoft.Dotnet.Sdk.Internal
2022-08-01 13:07:00 +00:00
GitHub Actions 5574949880 Re-generate global.json 2022-07-30 13:15:25 +00:00
dotnet-maestro[bot] fa113ff270 Update dependencies from https://github.com/dotnet/installer build 20220729.5
Microsoft.Dotnet.Sdk.Internal
 From Version 7.0.100-rc.1.22363.4 -> To Version 7.0.100-rc.1.22379.5

Dependency coherency updates

Microsoft.NET.ILLink.Tasks,Microsoft.NETCore.App.Ref,Microsoft.AspNetCore.App.Ref
 From Version 7.0.100-1.22362.1 -> To Version 7.0.100-1.22377.1 (parent: Microsoft.Dotnet.Sdk.Internal
2022-07-30 13:14:41 +00:00