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

15233 Коммитов

Автор SHA1 Сообщение Дата
Manuel de la Pena 77afb6009b
[CI] Fix yaml paramenter. (#17581) 2023-02-21 14:22:12 -05:00
Manuel de la Pena 4e640a9f40
[CI] Do not skip the insertion but the nuget push. (#17571)
Do not skip the msi conversion since that will be needed in the unified
pipeline BUT skip pushing to the internal nuget feeds.
2023-02-21 14:06:13 -05:00
dotnet-maestro[bot] d30cc612ce
[main] Update dependencies from dotnet/installer (#17564)
This pull request updates the following dependencies

## From https://github.com/dotnet/installer
- **Subscription**: 50c9492e-4671-4d1d-7920-08dabd1031a2
- **Build**: 20230217.20
- **Date Produced**: February 18, 2023 12:32:51 AM UTC
- **Commit**: 15e62a00f494b1d07fde1fe3cca373bb02488cc6
- **Branch**: refs/heads/release/7.0.1xx

- **Updates**:
- **Microsoft.Dotnet.Sdk.Internal**: [from 7.0.104-servicing.23114.27 to
7.0.104-servicing.23117.20][5]

[5]: 6d3cb5a...15e62a0
2023-02-21 14:57:31 +01:00
Rolf Bjarne Kvinge ad4af52393
[dotnet] Improve error message when someone tries to disable trimming by setting PublishTrimmed=false. (#17568)
Make it more actionable, by telling users what they can do instead.
2023-02-21 14:54:44 +01:00
Manuel de la Pena b462bfde99
[Generator] Move naming logic to its own class and add tests. (#17562)
Naming could be problematic when generating code, move the logic out of
the generator class to a helper class whose only job is to name classes
and keep track of names.

---------

Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
2023-02-17 15:33:53 -05:00
dotnet-maestro[bot] 99277af638
[main] Update dependencies from dotnet/runtime (#17555)
This pull request updates the following dependencies

## From https://github.com/dotnet/runtime
- **Subscription**: 38d2313f-22d5-4062-c8e1-08dabd6d8c77
- **Build**: 20230215.6
- **Date Produced**: February 16, 2023 6:00:46 AM UTC
- **Commit**: b68fd882623b528fd4ef78b122209710f17bacdb
- **Branch**: refs/heads/release/7.0

- **Updates**:
  - **Microsoft.NETCore.App.Ref**: [from 7.0.4 to 7.0.4][1]
2023-02-17 07:29:08 +01:00
Manuel de la Pena 48015145bc
[Generator] Remove a missed warning. (#17558) 2023-02-16 16:51:09 -05:00
Manuel de la Pena a9dbc684ab
[Generator] Make generator.cs smaller by not using nested enums. (#17533)
Code is complicated, lets remove as much noise as possible to focus on
the important parts.

---------

Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
2023-02-16 16:50:42 -05:00
Manuel de la Pena 783ba7a8d9
[Generator] Use a specialized class to store the marshal types. (#17549)
Use a class that we can have to store the types and a single place to
locate the types to load.

Later we can use the class to write tests and move to a Dictionary
implementation that passes the tests and is more efficient.

---------

Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
2023-02-16 08:48:31 -05:00
Manuel de la Pena 28db48f6ee
[Generator] Refactor method that was forgotten as an extension one. (#17550)
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
2023-02-16 08:48:09 -05:00
Manuel de la Pena 6669ed18b0
[Generator] Move all attr related methods to the attr manager. (#17548)
Group all attr methods in the attr manager class.

---------

Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
Co-authored-by: TJ Lambert <50846373+tj-devel709@users.noreply.github.com>
2023-02-16 08:47:48 -05:00
Manuel de la Pena c744a8bbc7
[Generator] Refactor AsyncMethodInfo, set nullability and add collection extensions. (#17538)
Several changes:

- Refactored AsyncMethodInfo and move the collection extensions out of
the Generator class.
- Added tests for the collection extension methods.
- Fix a mistake/bug in which Last was used instead of LastOrDefault
(funny comment was close to the right reason).

---------

Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
2023-02-16 08:47:28 -05:00
Manuel de la Pena be1bee04b4
[Generator] Refactor more string extensions. (#17532)
Move all the string methods that can be an extension to a static class
(re-use the present one) and add tests.

---------

Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
Co-authored-by: TJ Lambert <50846373+tj-devel709@users.noreply.github.com>
2023-02-16 08:45:43 -05:00
dotnet-maestro[bot] ec67c91627
[main] Update dependencies from dotnet/installer (#17545)
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 7.0.100-1.22579.2 to 7.0.100-1.23062.2 (parent: Microsoft.Dotnet.Sdk.Internal)
  - **Microsoft.AspNetCore.App.Ref**: from 7.0.2 to 7.0.3 (parent: Microsoft.Dotnet.Sdk.Internal)

## From https://github.com/dotnet/installer
- **Subscription**: 50c9492e-4671-4d1d-7920-08dabd1031a2
- **Build**: 20230214.27
- **Date Produced**: February 15, 2023 2:49:17 AM UTC
- **Commit**: 6d3cb5a4f9f758114727bce6a7fd965097a763fa
- **Branch**: refs/heads/release/7.0.1xx

- **Updates**:
  - **Microsoft.Dotnet.Sdk.Internal**: [from 7.0.104-servicing.23109.16 to 7.0.104-servicing.23114.27][1]
  - **Microsoft.NET.ILLink.Tasks**: [from 7.0.100-1.22579.2 to 7.0.100-1.23062.2][2]
  - **Microsoft.AspNetCore.App.Ref**: [from 7.0.2 to 7.0.3][3]

[1]: 0709aa6...6d3cb5a
[2]: 8db10f4...19fa656
[3]: https://dev.azure.com/dnceng/internal/_git/dotnet-aspnetcore/branches?baseVersion=GC7c81065&targetVersion=GCfebee99&_a=files
2023-02-16 09:21:05 +01:00
Rolf Bjarne Kvinge 7e6d0fdc23
[dotnet] Fix computing manifest version band. (#17536)
We need to use 'DOTNET_MANIFEST_VERSION_BAND' instead of
'DOTNET_VERSION_BAND', because the former always ends with '00' (which
manifest version bands are supposed), while the latter can have other numbers
(for instance 7.0.100 vs 7.0.101 - the former is a valid manifest version
band, the latter isn't).
2023-02-15 19:06:29 +01:00
Manuel de la Pena b0683b90d5
[Generator] Move PlatformName maps out of the generator and add tests. (#17539)
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
2023-02-15 12:12:13 -05:00
Manuel de la Pena 62cbbacafc
[Generator] Move the conversion attr out and enable nullability. (#17529)
Cleaned some code that could be simpler too.

---------

Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
Co-authored-by: TJ Lambert <50846373+tj-devel709@users.noreply.github.com>
2023-02-15 11:35:57 -05:00
dotnet-maestro[bot] 6fd20a51da
[main] Update dependencies from dotnet/installer (#17478)
This pull request updates the following dependencies

## From https://github.com/dotnet/installer
- **Subscription**: 50c9492e-4671-4d1d-7920-08dabd1031a2
- **Build**: 20230209.16
- **Date Produced**: February 10, 2023 2:27:00 AM UTC
- **Commit**: 0709aa684bebd00a44d298d05db8c86d23f9f192
- **Branch**: refs/heads/release/7.0.1xx

- **Updates**:
  - **Microsoft.Dotnet.Sdk.Internal**: [from 7.0.103-servicing.23073.22 to 7.0.104-servicing.23109.16][8]

[8]: e36f7f3...0709aa6
2023-02-15 06:49:37 +01:00
Manuel de la Pena 9ca00b3b89
[Generator] Move out MarshalType and enable nullability. (#17531)
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
2023-02-14 10:27:38 -05:00
Manuel de la Pena 484dbcb960
[Generator] Refactor attr factory out and enable nullability. (#17528)
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
2023-02-14 10:21:04 -05:00
Manuel de la Pena 17e8200b30
[Generator] Move CustomAttributeDataExtensions to its own file and enable nullability. (#17526)
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
2023-02-14 10:18:48 -05:00
Manuel de la Pena 30f5169b46
[Generator] Remove not needed method that adds indirection. (#17525)
Remove more indirections that make the code more complicated to follow
that it really needs to be.

---------

Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
2023-02-14 10:18:02 -05:00
Rolf Bjarne Kvinge 2b03ac31a6
Bump mlaunch to fix an unneccessary warning. (#17523)
Ref: 645f1813c5
2023-02-14 15:00:01 +01:00
Haritha Mohan 375e8c62aa
[MapKit] Make MKMapRect.World static (#17522)
Fixes #14787
2023-02-13 16:34:45 -08:00
Manuel de la Pena 498ced1811
[Generator] Remove method that is already present in the reflection API. (#17524)
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
2023-02-13 19:17:38 -05:00
dustin-wojciechowski 3eeb7691dc
Add ventura to mac tests configurations (#17349)
Added Ventura machines to macTestConfigurations within both the
build-ci-pipeline and the build-pr-pipelines.

---------

Co-authored-by: Alex Soto <alex@alexsoto.me>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2023-02-13 11:08:18 -05:00
Manuel de la Pena c4c53fed32
[Generator] Remove not needed method. (#17457) 2023-02-13 11:02:10 -05:00
dotnet-maestro[bot] 402bd65050
[main] Update dependencies from dotnet/runtime (#17483)
This pull request updates the following dependencies

## From https://github.com/dotnet/runtime
- **Subscription**: 38d2313f-22d5-4062-c8e1-08dabd6d8c77
- **Build**: 20230211.3
- **Date Produced**: February 11, 2023 7:03:02 PM UTC
- **Commit**: a1136a901d67e88d070136b6684825285c756eef
- **Branch**: refs/heads/release/7.0

- **Updates**:
  - **Microsoft.NETCore.App.Ref**: [from 7.0.3 to 7.0.4][10]
  - **Microsoft.NET.Workload.Emscripten.net7.Manifest-7.0.100**: [from 7.0.3 to 7.0.4][11]

[10]: 7db1c33...a1136a9
[11]: 67006e8...ba16583

## 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.Workload.Emscripten.net7.Manifest-7.0.100**: from 7.0.3 to 7.0.4 (parent: Microsoft.NETCore.App.Ref)
2023-02-13 15:32:24 +01:00
Rolf Bjarne Kvinge bef4867281
[dotnet] Only include the Xamarin.Shared.Sdk.MultiTarget.targets file if it exists. Fixes #16400. (#17498)
Hopefully fixes https://github.com/xamarin/xamarin-macios/issues/16400.
2023-02-13 07:20:05 +01:00
Steve Hawley 309dbe3be0
[DotNet] CoreFoundation Pinvokes (#17505)
Updates the pinvokes in CoreFoundation to have blittable types.
I intentionally did *not* do `CFReadStream` and `CFWriteStream` as the
changes needed for those are may create a breaking API change, so those
should probably be their own PR for closer scrutiny.

Please look closely at CFProxySupport as that was the least
straightforward of the changes.
2023-02-10 19:06:29 -05:00
Manuel de la Pena 6adfba60b1
[Generator] Add nullability to the filters. (#17458) 2023-02-10 17:13:40 -05:00
Manuel de la Pena 4e5c1081fd
[Generator] Remove method that just added an indirection. (#17456) 2023-02-10 17:10:36 -05:00
Rolf Bjarne Kvinge 8e4f22d20e
[msbuild] Add DT* entries to the Info.plist for all platforms. Fixes #13300. (#17499)
Modify the code to add Xcode (DT*) variables to the Info.plist:

* Do it for all platforms, not only mobile platforms. Apple uses these fields to
  determine if an app was built with a prerelease or old version of Xcode, and will
  reject any app submissions if this validation fails.

* Change the behavior to do not distinguish simulator builds, a bit of testing
  in Xcode shows that Xcode always adds these values to the Info.plist, even for
  simulator builds. This is probably something that changed in Xcode a *long* time
  ago, since this code is old (from the initial import of the build logic from MonoDevelop
  around 10 years ago).

* Also bump Xamarin.MacDev to get a related fix:

  New commits in xamarin/Xamarin.MacDev:

  * xamarin/Xamarin.MacDev@74c95ee [Xamarin.MacDev] Always fetch the DTSDKBuild variable.

  Diff: 14d53612d4..74c95ee1c3

Fixes https://github.com/xamarin/xamarin-macios/issues/13300.
2023-02-10 22:58:38 +01:00
Rolf Bjarne Kvinge 51136f1656
[devops] Remove logic to publish the mlaunch NuGet. (#17494)
The mlaunch NuGet is published from the maccore repository now.
2023-02-10 22:42:08 +01:00
Emanuel Fernandez Dell'Oca 33512be08d
Update Xamarin.Messaging to 1.9.17 (#17501)
Co-authored-by: Mauro Agnoletti <mauro.agnoletti@gmail.com>
2023-02-10 22:40:08 +01:00
Manuel de la Pena 1ab1e27fc5
[Generator] Refactor frameworks and enable nullability. (#17454)
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
2023-02-10 12:48:55 -05:00
Manuel de la Pena ab61de421f
[Generator] Move MemberInformation out of the generator and enable nullability. (#17448) 2023-02-09 12:17:59 -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
Rolf Bjarne Kvinge 8efc00aa01
[src] Create XML documentation when building our platform assemblies for .NET. Fixes #17395. (#17476)
Also fix XML comments to be valid and not produce compiler warnings.

Unfortunately XML comments can't be conditionally compiled
(https://github.com/dotnet/csharplang/discussions/295), so we have to 
duplicate a lot of content that is just slightly different.

Fixes https://github.com/xamarin/xamarin-macios/issues/17395.
2023-02-09 09:24:08 +01:00
Steve Hawley 1a9e9be626
[dotnet] address book pinvokes (#17419) 2023-02-08 12:02:06 -05:00
Manuel de la Pena d8d17f20ab
[Generator] Move WrapPropMemberInformation out an enable nullability. (#17437) 2023-02-08 11:55:29 -05:00
Mauro Agnoletti 8b0763b568
[win] Add Hot Restart define constant in a target instead of an evaluation property (#17470)
This is needed in order to read the correct value of the
"IsHotRestartBuild" property set by the VS extension. Doing it in a
PropertyGroup at evaluation was not getting the correct value since it
was not being set as an MSBuild global property

This PR is related to this other one in the XVS extension:
https://github.com/xamarin/XamarinVS/pull/13612
2023-02-08 09:47:24 +01:00
Mauro Agnoletti 7f7942eae0
Imports the .user.env file if exists and the build is from VS (#17466)
This will allow the latest runtime identifier values to be evaluated in time during the MSBuild property evaluation phase.

Related and dependent of this PR: https://github.com/xamarin/XamarinVS/pull/13606
2023-02-08 09:37:39 +01:00
Rolf Bjarne Kvinge 8fbf227abb
[src] Unify build code for .NET platforms. (#17445)
Use a make template for the build logic for our platform assemblies, so that we don't
unintentionally have slightly different build code for different platforms (especially
when making changes to the build this way ensures that we make the same change on all
platforms).

This also makes the code significantly shorter, and will make it easier to add more
platforms in the future if we ever need that.
2023-02-08 07:56:49 +01:00
Rolf Bjarne Kvinge afb6505f8c
[tests] Bump Microsoft.NET.Test.Sdk version to latest stable. (#17462)
The older version of Microsoft.NET.Test.Sdk depends on an older version of
Newtonsoft.Json, which triggers automated security warnings.

Ref: https://devdiv.visualstudio.com/DevDiv/_componentGovernance/113130/alert/7090885?typeId=12169115
2023-02-07 14:52:45 +01:00
Manuel de la Pena ea91fd23c7
[Generator] Move IMemberGatherer out and enable nullability. (#17436) 2023-02-07 06:11:47 -05:00
Rolf Bjarne Kvinge fd44670214
[ObjCRuntime] Make sure to call 'Release' in all code paths in Runtime.GetINativeObject<T> when owns=true. Fixes #12732. (#17118)
Fixes https://github.com/xamarin/xamarin-macios/issues/12732.
2023-02-07 07:22:35 +01:00
Rolf Bjarne Kvinge 13f51fb583
[tests] Add another failure scenario to random network test failures in CI. (#17439) 2023-02-07 07:22:09 +01:00
Rolf Bjarne Kvinge 6a372f5bb3
[src] Remove workaround for a Mono bug that's been fixed in .NET 7+. (#17452)
Ref: https://github.com/xamarin/xamarin-macios/pull/14803
Ref: https://github.com/dotnet/runtime/pull/68265
2023-02-07 07:17:38 +01:00
Manuel de la Pena 589e99259f
[Generator] Clean btouch null code and remove not needed imports. (#17459) 2023-02-06 21:09:17 -05:00