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

13615 Коммитов

Автор SHA1 Сообщение Дата
Steve Hawley 94e40c8b11
[nnyeah] fix issues compiling against nnyeah touched libraries (#15082)
fix issues compiling against nnyeah touched libraries
2022-05-20 15:31:18 -04:00
TJ Lambert b773b97b9b
[coremotion] Add nullability to (generated and manual) bindings (#15072)
Co-authored-by: tj_devel709 <antlambe@microsoft.com>
2022-05-20 09:42:22 -05:00
Chris Hamons 03c3b3003a
[nnyeah] Add rest of top nuget examples to integration suite (#15058) 2022-05-20 05:48:29 -05:00
Chris Hamons add714ffb7
[nnyeah] Add unit test showing most common nuget failure (#15065)
- 'Error while attempting to map member System.IntPtr Foundation.NSObject::get_Handle() in old assembly'
- Also fix a strange directory name created by Cache.CreateTemporaryDirectory being called from async test method
2022-05-20 05:48:02 -05:00
Manuel de la Pena 0e179206d2
[XHarness] Provide the correct value to the tvOS label. (#15063) 2022-05-20 11:25:29 +02:00
TJ Lambert 1477c9bd51
[Localization] Use force-with-lease (#15054)
Co-authored-by: TJ Lambert <tjlambert@microsoft.com>
2022-05-18 15:18:34 -05:00
Steve Hawley 6d072fbc46
[nnyeah] Import Type and Member references (#15052)
import methods and types when referencing them
2022-05-18 16:18:04 -04:00
Manuel de la Pena 2953cf1fed
[Xharness] Move to use a flag to decide what tests to use (#15032)
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-05-18 10:50:19 -04:00
Chris Hamons 873cc1ea96
[nnyeah] Integration tests run against dotnet tool from nupkg (#15051) 2022-05-18 09:23:49 -05:00
TJ Lambert aacf5c62de
[tvmlkit] Add nullability to (generated and manual) bindings (#14912)
Co-authored-by: tj_devel709 <antlambe@microsoft.com>
2022-05-18 09:04:15 -05:00
TJ Lambert b48534b028
[systemconfiguration] Add nullability to (generated and manual) bindings (#14903)
* add nullability

* throw better exceptions

* use is null

Co-authored-by: tj_devel709 <antlambe@microsoft.com>
2022-05-18 09:03:25 -05:00
Rolf Bjarne Kvinge 3bbaaf42cf
[devops] Compute DOTNET_TFM instead of hardcoding 'net6.0.' (#15005) 2022-05-18 13:33:08 +02:00
dotnet-maestro[bot] bcd03374a9
[main] Update dependencies from dotnet/runtime (#15047)
This pull request updates the following dependencies

[marker]: <> (Begin:0f76eea3-d4b0-4229-e732-08d9ecb01c9c)
## From https://github.com/dotnet/runtime
- **Subscription**: 0f76eea3-d4b0-4229-e732-08d9ecb01c9c
- **Build**: 20220516.4
- **Date Produced**: May 16, 2022 8:48:30 PM UTC
- **Commit**: 15626cf7e26af1c3800127242e47237698faed61
- **Branch**: refs/heads/release/6.0

[DependencyUpdate]: <> (Begin)

- **Updates**:
  - **Microsoft.NETCore.App.Ref**: [from 6.0.6 to 6.0.6][1]

[1]: 21d3425...15626cf

[DependencyUpdate]: <> (End)


[marker]: <> (End:0f76eea3-d4b0-4229-e732-08d9ecb01c9c)

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2022-05-18 13:00:10 +02:00
Rolf Bjarne Kvinge 4c2ddcf349
[dotnet-linker] Bump default trampoline count when using the interpreter on x64 in .NET. Fixes #14887. (#15025)
Fixes https://github.com/xamarin/xamarin-macios/issues/14887.
2022-05-18 11:27:28 +02:00
Rolf Bjarne Kvinge 5c08c5a689
[Runtime] Provide better diagnostics if we fail to invoke a method in CoreCLR. (#15043)
A stack trace like this isn't all that helpful:

    *** Terminating app due to uncaught exception 'System.Reflection.TargetException', reason: 'Object does not match target type. (System.Reflection.TargetException)
    at System.Reflection.RuntimeConstructorInfo.CheckConsistency(Object target)
    at System.Reflection.RuntimeConstructorInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    at ObjCRuntime.Runtime.InvokeMethod(MethodBase method, Object instance, IntPtr native_parameters) in /Users/builder/azdo/_work/1/s/xamarin-macios/src/ObjCRuntime/Runtime.CoreCLR.cs:line 655
    at ObjCRuntime.Runtime.InvokeMethod(MonoObject* methodobj, MonoObject* instanceobj, IntPtr native_parameters) in /Users/builder/azdo/_work/1/s/xamarin-macios/src/ObjCRuntime/Runtime.CoreCLR.cs:line 552
    at ObjCRuntime.Runtime.bridge_runtime_invoke_method(MonoObject* method, MonoObject* instance, IntPtr parameters, IntPtr& exception_gchandle) in /Users/builder/azdo/_work/1/s/xamarin-macios/runtime/Delegates.generated.cs:line 1210

with this change we'll be told exactly which function we failed to call.
2022-05-18 11:09:10 +02:00
Chris Hamons 2aae39d8de
[nnyeah] Optionally run integration test nnyeah in-process (#15049) 2022-05-17 16:27:19 -05:00
Steve Hawley 3207ba2707
[nnyeah] Refactor module usage (#15048)
Clean up usage of modules in the app.
the var 'module' gets used all over the place. I'm going to refactor to fix up usage of imports and this will make things much easier to track.

In addition, there are a number of types that get used from module.TypeSystem.SomeType which I put into locals just to tidy up.
2022-05-17 16:35:14 -04:00
TJ Lambert f773e62672
[videotoolbox] Add nullability to (generated and manual) bindings (#14971)
* add nullability

* throw better exceptions

* use is null and not null

* remove some exclamation points

* Address changes

* revert changes to VTAlphaChennelMode

Co-authored-by: tj_devel709 <antlambe@microsoft.com>
2022-05-17 14:57:07 -05:00
TJ Lambert e6031a756c
[storekit] Add nullability to (generated and manual) bindings (#14896)
* adding nullability

* use is not null

* return null

Co-authored-by: TJ Lambert <tjlambert@microsoft.com>
2022-05-17 14:53:26 -05:00
TJ Lambert 5c8e3dd97b
[corespotlight] Add nullability to (generated and manual) bindings (#15023)
Co-authored-by: tj_devel709 <antlambe@microsoft.com>
2022-05-17 09:47:10 -05:00
TJ Lambert 8fb0209676
[ituneslibrary] Add nullability to (generated and manual) bindings (#14967)
Co-authored-by: TJ Lambert <tjlambert@microsoft.com>
2022-05-17 09:45:33 -05:00
TJ Lambert ca1f393f7f
[wkwebkit] Add nullability to (generated and manual) bindings (#14955)
Co-authored-by: TJ Lambert <tjlambert@microsoft.com>
2022-05-17 09:44:51 -05:00
Chris Hamons f33ddd906d
[nnyeah] Convert integration test to nunit from Makefile (#15040)
- Also refactor test layout a bit to split unit from integration
- Integration should long term invoke the nuget installed, unit never will.
2022-05-17 09:24:35 -05:00
Rolf Bjarne Kvinge e7d367758a
[devops] Fix tests according to recent changes. (#15045) 2022-05-17 14:23:03 +02:00
Alex Soto f67029b01c
[mono] Bump mono to the latest version of 2020-02 (#15042)
New commits in mono/mono:

* mono/mono@dffa5ab922 [2020-02] Bump corefx to get MaxResponseHeadersLength fix

Diff: 281ee19b9b..dffa5ab922
2022-05-17 14:22:31 +02:00
Rolf Bjarne Kvinge 45b5379d43
[devops] Reword api diff GitHub text a bit and add index entry. (#15019) 2022-05-16 21:37:21 +02:00
Rolf Bjarne Kvinge 27d1d0292b
[runtime] Handle fatal managed exceptions a bit better in the runtime. (#15029)
Handle managed exceptions a bit better when we know there won't be any other
managed frames further up the stack (such as in the main method). In this
case, there's no use in trying to convert the managed exception into an
Objective-C exception, because we already know the process will be terminated.

Instead just print the exception to stderr, and abort immediately.

This means we'll actually get some useful information printed to stderr.
2022-05-16 21:31:37 +02:00
VS MobileTools Engineering Service 2 61ef886513
Localized file check-in by OneLocBuild Task: Build definition ID 14411: Build ID 6156518 (#15034) 2022-05-16 15:01:18 -04:00
Steve Hawley 746cf884c0
[nnyeah] Fix for handling nfloat (#15021)
nfloat needed a proper reference to System.Runtime.InteropServices.
2022-05-16 11:53:33 -04:00
TJ Lambert 4d3ef30198
[coretelephony] Add nullability to (generated and manual) bindings (#15022)
Co-authored-by: tj_devel709 <antlambe@microsoft.com>
2022-05-16 10:32:03 -05:00
TJ Lambert 669839a4a6
[vision] Add nullability to (generated and manual) bindings (#14973)
* add nullability and throw better exceptions

* Use is null

Co-authored-by: tj_devel709 <antlambe@microsoft.com>
2022-05-16 10:31:28 -05:00
TJ Lambert e9f0d7d892
[watchkit] Add nullability to (generated and manual) bindings (#14972)
* adding nullability

* throw better exceptions

* use is null

Co-authored-by: TJ Lambert <tjlambert@microsoft.com>
2022-05-16 10:30:52 -05:00
TJ Lambert d14b600b87
[xkit] Add nullability to (generated and manual) bindings (#14969)
Co-authored-by: TJ Lambert <tjlambert@microsoft.com>
2022-05-16 10:29:33 -05:00
TJ Lambert 3322f33730
[tvservices] Add nullability to (generated and manual) bindings (#14928)
Co-authored-by: tj_devel709 <antlambe@microsoft.com>
2022-05-16 10:28:33 -05:00
TJ Lambert b5ffa8d5ea
[compression] Add nullability to (generated and manual) bindings (#14916)
* adding nullability

* throw better exceptions

* use is null and is not null

* revert these exceptions

* use ArrayPoolBuffer and remove comments

* remove the exclamation point

* Throw exceptions instead of re-init

* Move EnsureBufferInitialized to the correct spot

Co-authored-by: tj_devel709 <antlambe@microsoft.com>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-05-16 10:27:32 -05:00
Chris Hamons 5249316b8a
[Nnyeah] nuget execution (#15017)
- Add a stupidly simple "download a nuget and test it" target
- Fix a few targets that should have had :: instead of : (I believe)

I tried to create a fancy define block to param this instead of hard coding, but I ran into the limits of my makefile example. Bike shedding an example would be appreciated, else we can go with this for now.
2022-05-16 09:23:13 -05:00
Mauro Agnoletti 31c54460d5
Avoid executing _VerifyXcodeVersion when there's no connection to a Mac (#15026)
This should fix an annoying warning where the user builds an iOS project offline and get a message about that target couldn't be executed
2022-05-16 12:30:49 +02:00
Rolf Bjarne Kvinge 46b393ac5e
[tests] Adjust a few linker tests to cope with unreliable networks. (#15018)
* Handle 502 and 503 errors in the TrustUsingOldPolicy and TrustUsingNewCallback tests. Fixes:

    [FAIL] TrustUsingOldPolicy : System.Net.WebException : The remote server returned an error: (503) Service Unavailable.
    [FAIL] TrustUsingNewCallback : System.Net.WebException : The remote server returned an error: (503) Service Unavailable.

* Add more http and https urls to try (and don't use microsoft.com). Hopefully fixes:

    [FAIL] WebClient_SSL_Leak : At least one url should work

This is a follow-up to #14943.
2022-05-16 11:41:13 +02:00
dotnet-maestro[bot] 9a46a8b46d
[main] Update dependencies from dotnet/runtime (#14983)
* Update dependencies from https://github.com/dotnet/runtime build 20220510.4

Microsoft.NETCore.App.Ref
 From Version 6.0.6 -> To Version 6.0.6

* Update dependencies from https://github.com/dotnet/runtime build 20220513.1

Microsoft.NETCore.App.Ref
 From Version 6.0.6 -> To Version 6.0.6

* Update dependencies from https://github.com/dotnet/runtime build 20220513.11

Microsoft.NETCore.App.Ref
 From Version 6.0.6 -> To Version 6.0.6

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-05-16 11:29:51 +02:00
dotnet-maestro[bot] fb57211f6f
[main] Update dependencies from dotnet/installer (#15033)
Update dependencies from https://github.com/dotnet/installer build 20220513.15

Microsoft.Dotnet.Sdk.Internal
 From Version 6.0.301-rtm.22261.3 -> To Version 6.0.301-rtm.22263.15

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2022-05-16 11:28:24 +02:00
Rolf Bjarne Kvinge 82482edc70
[cecil-tests] Improve these tests a bit. (#14994) 2022-05-13 20:50:02 +02:00
Rolf Bjarne Kvinge 8b9cd60dc6
[dotnet] Update localized json files. (#15024)
This is just changing line endings, ignoring whitespace shows no changes.
2022-05-13 20:49:51 +02:00
Rolf Bjarne Kvinge 009bd4ac01
[apidiff] Simplify code a bit to use templates and iterate over the selected platforms. (#15006) 2022-05-13 20:44:15 +02:00
Rolf Bjarne Kvinge 0caa8166c3
[apidiff] Remove detection of empty diffs for cases we know that will never happen. (#15007)
There will always be an API diff between:

* legacy Xamarin.*.dll assemblies and .NET Microsoft.*.dll assemblies.
* Microsoft.iOS.dll and Microsoft.MacCatalyst.dll

so don't bother with logic to detect empty diffs, just assume they will never be empty.
2022-05-13 20:43:39 +02:00
Manuel de la Pena 0ec49ff31a
[CI] Reset the submodules for the API diff. (#14997)
When we do the checkout of head, we must make sure that the submodules are the correct ones.
2022-05-13 13:07:45 -04:00
Steve Hawley 4b5581553c
[nnyeah] Get nint types (#15016)
Fixed issue with treating nint et al as TypeDefinitions instead of TypeReferences
Fixed issue where an old assembly reference is left hanging around
2022-05-13 09:51:56 -04:00
dotnet-maestro[bot] 4800775b4d
[main] Update dependencies from dotnet/installer (#14966)
* Update dependencies from https://github.com/dotnet/installer build 20220510.1

Microsoft.Dotnet.Sdk.Internal
 From Version 6.0.301-rtm.22254.17 -> To Version 6.0.301-rtm.22260.1

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

Microsoft.Dotnet.Sdk.Internal
 From Version 6.0.301-rtm.22254.17 -> To Version 6.0.301-rtm.22260.12

Dependency coherency updates

Microsoft.NET.ILLink.Tasks,Microsoft.AspNetCore.App.Ref
 From Version 6.0.200-1.22178.2 -> To Version 6.0.200-1.22219.3 (parent: Microsoft.Dotnet.Sdk.Internal

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

Microsoft.Dotnet.Sdk.Internal
 From Version 6.0.301-rtm.22254.17 -> To Version 6.0.301-rtm.22261.3

Dependency coherency updates

Microsoft.NET.ILLink.Tasks,Microsoft.AspNetCore.App.Ref
 From Version 6.0.200-1.22178.2 -> To Version 6.0.200-1.22219.3 (parent: Microsoft.Dotnet.Sdk.Internal

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2022-05-13 09:29:18 +02:00
Rolf Bjarne Kvinge fe6a06dbca
[msbuild] Improve error reporting when an external tool fails to print some of stderr. (#14993)
Improve error reporting when an external tool fails to print some of stderr (up to 1024 characters).

Before:

    error : clang exited with code 1

After:

    error : clang exited with code 1:
    error : [...]/xamarin-macios/tests/dotnet/MyInterpretedApp/iOS/obj/Debug/net6.0-ios/iossimulator-x64/linker-cache/main.x86_64.mm:58:25: error: use of undeclared identifier 'MONO_AOT_MODE_INTERP_ONLY'; did you mean 'MONO_AOT_MODE_INTERP'?
    error :         mono_jit_set_aot_mode (MONO_AOT_MODE_INTERP_ONLY);
    error :                                ^~~~~~~~~~~~~~~~~~~~~~~~~
    error :                                MONO_AOT_MODE_INTERP
    error : [...]/xamarin-macios/builds/downloads/dotnet-sdk-6.0.301-rtm.22254.17-osx-x64/packs/Microsoft.iOS.Runtime.iossimulator-x64/15.4.16-ci.x64-interpreter-only/runtimes/iossimulator-x64/native/xamarin/mono-runtime.h:452:2: note: 'MONO_AOT_MODE_INTERP' declared here
    error :         MONO_AOT_MODE_INTERP,
    error :         ^
2022-05-13 09:14:10 +02:00
Rolf Bjarne Kvinge ea2e7bdaaf
Update the issue template. (#15004)
Point to a new document in the wiki explaining how to get version information
and build logs.

The wiki allows us to have longer explanations with screenshots, and it also
explains how to get a binary build log.
2022-05-13 09:10:24 +02:00
Rolf Bjarne Kvinge d819b06550
[devops] Authenticate requests to GitHub. (#15009)
This way we don't run into rate limits as easily.
2022-05-13 09:10:01 +02:00