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

10892 Коммитов

Автор SHA1 Сообщение Дата
Manuel de la Pena 78b22880d5
[CI] Use LFS for the static page checkout. (#11760)
PR https://github.com/xamarin/xamarin-macios/pull/11754 created a 50+MB
for the generator diff that resulted in a 250 mb index file. This is too
large and github rejects the push. USing LFS fixes the issue.

fixes: https://github.com/xamarin/maccore/issues/2449
2021-06-01 15:54:33 -04:00
Rolf Bjarne Kvinge 1c60b17bbe
[runtime] Show the typename of the MonoObjects we're leaking. (#11758)
This makes it a bit easier to figure out what's going on.
2021-06-01 20:43:50 +02:00
Manuel de la Pena 882dde132a
[Actions] We do not inf data because we are not in the correct paht. (#11759) 2021-06-01 13:48:02 -04:00
TJ Lambert 640467a03f
Updating Localization READMEs (#11738)
Co-authored-by: tj_devel709 <antlambe@microsoft.com>
2021-06-01 09:51:38 -05:00
Rolf Bjarne Kvinge 0864407f78
[tests] Adjust MX8029_b and MX8033 tests to cope with slightly different exception message output for CoreCLR. (#11732)
* [tests] Adjust MX8029_b and MX8033 tests to cope with slightly different exception message output for CoreCLR.

Fixes these unit tests:

    [FAIL] MX8029_b :   Message
      Expected string length 217 but was 238. Strings differ at index 149.
      Expected: "...lector: setIntArray:\n\tMethod: MonoTouchFixtures.ObjCRuntim..."
      But was:  "...lector: setIntArray:\n\tMethod: System.Void MonoTouchFixture..."
      ----------------------------------------------^
      at MonoTouchFixtures.ObjCRuntime.RuntimeTest.MX8029_b() in /Users/rolf/work/maccore/onedotnet/xamarin-macios/tests/monotouch-test/ObjCRuntime/RuntimeTest.cs:line 625

    [FAIL] MX8033 :   Message
      Expected string length 192 but was 207. Strings differ at index 129.
      Expected: "...\n\tSelector: intArray\n\tMethod: MonoTouchFixtures.ObjCRuntim..."
      But was:  "...\n\tSelector: intArray\n\tMethod: System.Int32[] MonoTouchFixt..."
      ------------------------------------------------^
      at MonoTouchFixtures.ObjCRuntime.RuntimeTest.MX8033() in /Users/rolf/work/maccore/onedotnet/xamarin-macios/tests/monotouch-test/ObjCRuntime/RuntimeTest.cs:line 644

* There's no need to restrict the TestRuntime.IsCoreCLR method to .NET code only.

The logic works just as well on legacy Xamarin as well.

* Make code C# 7.3 compatible.

Fixes this error:

> xamarin-macios/tests/common/TestRuntime.cs(1183,46): error CS8370: Feature 'not pattern' is not available in C# 7.3. Please use language version 9.0 or greater.
2021-06-01 15:56:54 +02:00
Manuel de la Pena a57e31873d
[CI] Do not generate github static pages on CI. (#11720)
We added the github pages to make the life of the reviews easier, the
issue we found is that we have a limited amount of space. Due to that we
are removing the generation from the ci.

Triggers in pipleines are disable by default, removing it will stop it
from being executed. The PR are triggered via a release pipeline we
called macios.glue
2021-06-01 09:53:02 -04:00
Sebastien Pouliot 3d68543d3d
[catalyst][coremotion] Update xtro (#11753)
The _missing_ API are for watchOS only and not available for Catalyst.
2021-06-01 09:09:19 -04:00
Sebastien Pouliot 50dfaf535c
[generator] Use `is` instead of `==` when doing null checks (#11754)
In most cases this will generate the exact same IL [1].

However it will perform _better_ (like you expect) if the `==` operator
is overloaded (even more if the operator implementation is buggy).

A last, small benefit is that avoiding `==` means the linker is more
likely to be able to remove it from the final applications.

This PR only change the generated code. IOW not the generator code,
nor the manual bindings. Those should also be updated but requires
more work.

References:
[1] https://gist.github.com/spouliot/fb05e733e1f9f403de69ab3ab6bdac2b
[2] https://www.thomasclaudiushuber.com/2020/03/19/c-why-you-should-prefer-the-is-keyword-over-the-operator/
2021-06-01 09:08:27 -04:00
Rolf Bjarne Kvinge 1e1e0298bd
[runtime] Don't forget to free the method field in MonoMethodSignatures. (#11746)
Before:

    There were 258096 MonoObjects created, 246948 MonoObjects freed, so 11148 were not freed. (dynamic registrar)
    There were 205834 MonoObjects created, 205214 MonoObjects freed, so 620 were not freed. (static registrar)

After:

    There were 205834 MonoObjects created, 205222 MonoObjects freed, so 612 were not freed. (dynamic registrar)
    There were 258100 MonoObjects created, 258019 MonoObjects freed, so 81 were not freed. (static registrar)
2021-06-01 13:09:43 +02:00
Rolf Bjarne Kvinge 03685e70b8
[static registrar] Release the return value from xamarin_get_reflection_method_method in generated code. (#11748)
* If the return value from xamarin_get_reflection_method_method is cached in a
  static variable, we can only release at process exist.
* Otherwise just release at the end of the current method.

Before:

    There were 258096 MonoObjects created, 246948 MonoObjects freed, so 11148 were not freed. (dynamic registrar)
    There were 205834 MonoObjects created, 205214 MonoObjects freed, so 620 were not freed. (static registrar)

After:

    There were 258092 MonoObjects created, 246945 MonoObjects freed, so 11147 were not freed. (dynamic registrar)
    There were 205834 MonoObjects created, 205600 MonoObjects freed, so 234 were not freed. (static registrar)
2021-06-01 07:36:01 +02:00
Rolf Bjarne Kvinge 1b98f4ec9e
[runtime] Release the block_wrapper_queue and xamarin_wrapper_hash dictionaries upon process exit. (#11751)
While not strictly necessary to not leak (because the process is exiting
anyway), it makes it easier to read leak reports, because these dictionaries
won't show up as leaked memory anymore.

Before:

    There were 258096 MonoObjects created, 258015 MonoObjects freed, so 81 were not freed. (dynamic registrar)
    There were 205834 MonoObjects created, 205833 MonoObjects freed, so 1 were not freed. (static registrar)

After:

    There were 258104 MonoObjects created, 258025 MonoObjects freed, so 79 were not freed. (dynamic registrar)
    There were 205834 MonoObjects created, 205834 MonoObjects freed, so no leaked MonoObjects. (static registrar)
2021-06-01 07:35:29 +02:00
Rolf Bjarne Kvinge b4a7a9ffe8
[tests] Re-enable Mac Catalyst tests related to the GC not working. (#11752)
This seems to be working again now.
2021-06-01 07:21:18 +02:00
Rolf Bjarne Kvinge 71a0659207
[dotnet] Tell .NET to not generate files we don't need. Fixes #9687. (#11693)
Tell .NET to not generate files we don't need:

* Dependency file (*.deps.json).
* Reference assemblies for executable projects.

Fixes https://github.com/xamarin/xamarin-macios/issues/9687.
2021-05-31 18:06:42 +02:00
Rolf Bjarne Kvinge fdae69f5d6
[tests] Only run the RegistrarTest.CustomUserTypeWithDynamicallyLoadedAssembly test from a source checkout. (#11743)
It needs another assembly built from the source tree, so it won't work unless
executed from a source checkout. This way we don't try to run it on older
macOS versions, where the required assembly won't exist.
2021-05-31 15:43:25 +02:00
Rolf Bjarne Kvinge eeff586458
[AVFoundation/introspection] Fix availability attributes / introspection for watchOS 5.0. Fixes #xamarin/maccore@2420. (#11741)
* [AVFoundation] Set watchOS availability for a few classes that were forgotten about in Xcode 12.5.

Partially fixes https://github.com/xamarin/maccore/issues/2420.

* [introspection] Cope with MLSequence's lack of protocol compliance in earlier versions of watchOS.

Partially fixes https://github.com/xamarin/maccore/issues/2420.

* [introspection] Improve error message to include method and type data.
2021-05-31 15:26:12 +02:00
Rolf Bjarne Kvinge b7f87340a5
[tests] Don't run the MTLDeviceTest.ReturnReleaseTest unless Metal is available. (#11742) 2021-05-31 15:25:26 +02:00
Rolf Bjarne Kvinge 7aa0a10284
[monotouch-test] Ignore a few audio-related tests when we're running on a VM. (#11744)
Fixes these failures when on a VM:

    Xamarin.Mac.Tests.AudioUnitTests
    	[FAIL] GetCurrentDevice_Test :   Expected: True
      But was:  False

    		  at Xamarin.Mac.Tests.AudioUnitTests.GetCurrentDevice_Test () [0x00011] in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/monotouch-test/AudioUnit/AudioUnit.cs:37
    Xamarin.Mac.Tests.AudioUnitTests : 13 ms

    Xamarin.Mac.Tests.AUGraphTests
    	[FAIL] DoTest : Did not see events after 1 second
    		  at Xamarin.Mac.Tests.AUGraphTests.WaitOnGraphAndMixerCallbacks () [0x00050] in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/monotouch-test/AudioUnit/AUGraphTestMac.cs:93
    		  at Xamarin.Mac.Tests.AUGraphTests.DoTest () [0x0004c] in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/monotouch-test/AudioUnit/AUGraphTestMac.cs:66
    Xamarin.Mac.Tests.AUGraphTests : 3113 ms

    Xamarin.Mac.Tests.AVAudioIONodeTests
    	[FAIL] AVAudioIONodeTests_AudioUnitTest : Foundation.ObjCException : com.apple.coreaudio.avfaudio: error -10879
    		  at (wrapper managed-to-native) ObjCRuntime.Messaging.IntPtr_objc_msgSend(intptr,intptr)
    		  at AVFoundation.AVAudioEngine.get_OutputNode () [0x00030] in /Users/builder/azdo/_work/1/s/xamarin-macios/src/build/mac/mobile/AVFoundation/AVAudioEngine.g.cs:1099
    		  at Xamarin.Mac.Tests.AVAudioIONodeTests.AVAudioIONodeTests_AudioUnitTest () [0x0000d] in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/monotouch-test/AVFoundation/AVAudioIONode.cs:23
    		  at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
    		  at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in /Library/Frameworks/Xamarin.Mac.framework/Versions/Current/src/Xamarin.Mac/mcs/class/corlib/System.Reflection/RuntimeMethodInfo.cs:395
    Xamarin.Mac.Tests.AVAudioIONodeTests : 7 ms
2021-05-31 15:25:08 +02:00
Rolf Bjarne Kvinge 8d6893c838
[ObjCRuntime] Unwrap TargetInvocationExceptions we get when invoking methods using reflection. (#11733)
Fixes this unit test:

    [FAIL] ManagedExceptionPassthrough :   exception
     Expected: same as <System.ApplicationException: 3,14
      at MonoTouchFixtures.ObjCRuntime.ExceptionsTest.ManagedExceptionTest.ThrowManagedException() in xamarin-macios/tests/monotouch-test/ObjCRuntime/ExceptionsTest.cs:line 128>
     But was:  <System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
    ---> System.ApplicationException: 3,14
      at MonoTouchFixtures.ObjCRuntime.ExceptionsTest.ManagedExceptionTest.ThrowManagedException() in xamarin-macios/tests/monotouch-test/ObjCRuntime/ExceptionsTest.cs:line 128
      --- End of inner exception stack trace ---
      at System.RuntimeMethodHandle.InvokeMethod(Object target, Span`1& arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
      at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) in System.Private.CoreLib.dll:token 0x6004d2a+0x0
      at ObjCRuntime.Runtime.InvokeMethod(MethodBase method, Object instance, IntPtr native_parameters) in Xamarin.Mac.dll:token 0x60011d1+0x254
      at ObjCRuntime.Runtime.InvokeMethod(MonoObject* methodobj, MonoObject* instanceobj, IntPtr native_parameters) in Xamarin.Mac.dll:token 0x60011d0+0x0
      at ObjCRuntime.Runtime.bridge_runtime_invoke_method(MonoObject* method, MonoObject* instance, IntPtr parameters, IntPtr& exception_gchandle) in Xamarin.Mac.dll:token 0x6001124+0x26
      at ApiDefinition.Messaging.void_objc_msgSendSuper(IntPtr receiver, IntPtr selector)
      at Bindings.Test.ObjCExceptionTest.InvokeManagedExceptionThrower() in xamarin-macios/tests/xharness/tmp-test-dir/monotouch-test2683/obj/Debug/net6.0-macos/macOS/Bindings.Test/ObjCExceptionTest.g.cs:line 105
      at MonoTouchFixtures.ObjCRuntime.ExceptionsTest.ManagedExceptionPassthrough() in xamarin-macios/tests/monotouch-test/ObjCRuntime/ExceptionsTest.cs:line 154>
      at MonoTouchFixtures.ObjCRuntime.ExceptionsTest.ManagedExceptionPassthrough() in xamarin-macios/tests/monotouch-test/ObjCRuntime/ExceptionsTest.cs:line 159
2021-05-31 08:11:49 +02:00
Rolf Bjarne Kvinge 2bee92225c
[runtime] Complete support for exception marshalling on CoreCLR. (#11734)
* [runtime] Add support for exception marshalling to CoreCLR.

* [runtime] Add an empty implementation of the toggle ref machinery.

We need this to use the unhandled exception handler support in CoreCLR,
because the ObjectiveCMarshal.Initialize call to initialize unhandled
exception support requires passing toggle ref callbacks as well.

* [tests] The TestConstrainedGenericType test can now be re-enabled, after a few updates.
2021-05-31 08:10:34 +02:00
Rolf Bjarne Kvinge 4f28fb2481
[dynamic registrar] Free the return value from mono_signature_get_params and mono_signature_get_return_type. (#11730)
Before:

    There were 258042 MonoObjects created, 235166 MonoObjects freed, so 22876 were not freed. (dynamic registrar)
    There were 205804 MonoObjects created, 204219 MonoObjects freed, so 1585 were not freed. (static registrar)

After:

    There were 258066 MonoObjects created, 246781 MonoObjects freed, so 11285 were not freed. (dynamic registrar)
    There were 205804 MonoObjects created, 204491 MonoObjects freed, so 1313 were not freed. (static registrar)
2021-05-31 08:02:45 +02:00
Rolf Bjarne Kvinge 6a83ed9169
[runtime] The return value from mono_class_from_mono_type must be released. (#11729)
Before:

    There were 258042 MonoObjects created, 235166 MonoObjects freed, so 22876 were not freed. (dynamic registrar)
    There were 205804 MonoObjects created, 204219 MonoObjects freed, so 1585 were not freed. (static registrar)

After:

    There were 258050 MonoObjects created, 235177 MonoObjects freed, so 22873 were not freed. (dynamic registrar)
    There were 205804 MonoObjects created, 204219 MonoObjects freed, so 1585 were not freed. (static registrar)
2021-05-31 08:02:11 +02:00
Rolf Bjarne Kvinge c12cb23414
[dynamic registrar] Out parameters must be released. (#11727)
Before:

    There were 258042 MonoObjects created, 235166 MonoObjects freed, so 22876 were not freed. (dynamic registrar)
    There were 205804 MonoObjects created, 204219 MonoObjects freed, so 1585 were not freed. (static registrar)

After:

    There were 258058 MonoObjects created, 235308 MonoObjects freed, so 22750 were not freed. (dynamic registrar)
    There were 205804 MonoObjects created, 204219 MonoObjects freed, so 1585 were not freed. (static registrar)
2021-05-31 08:01:24 +02:00
Rolf Bjarne Kvinge dc30bdf220
[registrar] Make sure to release the return value from xamarin_get_parameter_type. (#11725)
Before:

    There were 258046 MonoObjects created, 235142 MonoObjects freed, so 22904 were not freed. (dynamic registrar)
    There were 205804 MonoObjects created, 204193 MonoObjects freed, so 1611 were not freed. (static registrar)

After:

    There were 258054 MonoObjects created, 235172 MonoObjects freed, so 22882 were not freed. (dynamic registrar)
    There were 205804 MonoObjects created, 205190 MonoObjects freed, so 614 were not freed. (static registrar)
2021-05-28 16:19:47 +02:00
Sebastien Pouliot 51c936457d
[catalyst][contacts] Update for Catalyst (#11721) 2021-05-28 10:01:06 -04:00
Rolf Bjarne Kvinge 165941ec14
[Runtime] Complete the CoreCLR implementation of setting the pending managed exeption. (#11709)
This made it possible to unignore some tests.

Co-authored-by: Alex Soto <alex@alexsoto.me>
2021-05-28 13:20:49 +02:00
Rolf Bjarne Kvinge e11ad011d9
[static registrar] Go straight to exception handling after invoking the managed method if an exception occurred. (#11714)
This fixes a memory corruption where we'd try to process out parameters when
an exception had occurred, and those out parameters weren't expected to be
processed.
2021-05-28 07:44:18 +02:00
Manuel de la Pena b538801293
[Action] Typo and space :/ (#11719) 2021-05-27 17:18:51 -04:00
Manuel de la Pena fb8aaf4552
[Action] If we did not have data do not fail. (#11718) 2021-05-27 17:11:52 -04:00
Manuel de la Pena 8c36e1acf2
[Action] Number is part of the event. (#11717) 2021-05-27 17:06:17 -04:00
Manuel de la Pena c5cf3aad24
[Actions] Clean data after a PR is closed. (#11715)
* [Actions] Clean data after a PR is closed.

To keep the github  webpage small we remove the data once the PR has
been closed (that means closed or merged). The data will be kept in
vsdrops, the only links that will stop working are those from the github
static webpage.

Since we are interested in making the reviewer life better this is a
good compromise.

How to avoif merge conflicts:

We want to make sure we avoid merge conflicts, this is done using two
locks:

1. macios.ci-cleanup - Lock in the xamarin-macios action that will
   ensure that we create a new branch to cleanup the data.
2. ci-results - Lock in the macios.ci action that will merge branhces
   one by one.

This repo will create a new pr that cleans the data, the macios.ci repo
will execute an action when this new branch is created and will merge it
as soon as possible making sure that previos created branches are
merged.

* Update .github/workflows/github-page-clean-up.yml

Co-authored-by: TJ Lambert <50846373+tj-devel709@users.noreply.github.com>

Co-authored-by: TJ Lambert <50846373+tj-devel709@users.noreply.github.com>
2021-05-27 17:01:25 -04:00
Manuel de la Pena 7bc5a4c67f
[CI] Provide links to the GitHub pages that are generated per build. (#11703) 2021-05-27 12:09:26 -04:00
Manuel de la Pena 4097270665
[CI]Renove other files, better code. (#11713) 2021-05-27 12:06:44 -04:00
Rolf Bjarne Kvinge 57288a5ad4
[registrar] Return values from mono_value_box must be released. (#11708)
Before:

    There were 258046 MonoObjects created, 235142 MonoObjects freed, so 22904 were not freed. (dynamic registrar)
    There were 205804 MonoObjects created, 204193 MonoObjects freed, so 1611 were not freed. (static registrar)

After:

    There were 258054 MonoObjects created, 235172 MonoObjects freed, so 22882 were not freed. (dynamic registrar)
    There were 205804 MonoObjects created, 204193 MonoObjects freed, so 1611 were not freed. (static registrar)
2021-05-27 16:43:11 +02:00
Rolf Bjarne Kvinge c5bb80193b
[Foundation] Add reminder about NSAutoreleasePool. (#11706)
It's not trivial to do now, because the existing constructors are public,
which the generator isn't able to re-create without modifications (to the
generator).

So just add a reminder instead.
2021-05-27 16:42:28 +02:00
Rolf Bjarne Kvinge 013be35fc9
[runtime] Skip custom command line argument parsing for macOS and Mac Catalyst. (#11705)
Due to the following reasons:

* Desktop apps like macOS and Mac catalyst can be launched directly from the
  command line by users.
* It's trivial to set environment variables for desktop apps before launching
  them.
* All the different command line arguments we support for mobile targets can
  also be set using environment variables.

We don't need additional command line argument parsing for desktop platforms,
so just remove it.

The end result is that instead of doing this to run a specific unit test:

     path/to/macOS/app/MacOS/Contents/theapp --app-arg --test --app-arg MyTestFixture

This will now work:

     path/to/macOS/app/MacOS/Contents/theapp --test MyTestFixture

Which is how apps on desktop platforms should work anyway.
2021-05-27 16:42:09 +02:00
Mauro Agnoletti 02fa220f10
Updated Xamarin.Messaging version (#11699)
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2021-05-27 15:06:49 +02:00
Sebastien Pouliot 7d3a95a161
[dotnet][linker] Use signature (not name) for iOS substitutions (just like tvOS) (#11700)
ref: https://github.com/xamarin/maccore/issues/2446
2021-05-27 08:50:37 -04:00
Rolf Bjarne Kvinge fa5bb58e6d
[static registrar] Add a missing call to xamarin_mono_object_release for return values from mono_value_box. (#11707)
Before:

    There were 258046 MonoObjects created, 235142 MonoObjects freed, so 22904 were not freed. (dynamic registrar)
    There were 205804 MonoObjects created, 204193 MonoObjects freed, so 1611 were not freed. (static registrar)

After:

    There were 258018 MonoObjects created, 235128 MonoObjects freed, so 22890 were not freed. (dynamic registrar)
    There were 205809 MonoObjects created, 204221 MonoObjects freed, so 1588 were not freed. (static registrar)
2021-05-27 13:54:09 +02:00
Manuel de la Pena bc3fdacebe
[CI] Remove xml files since they are in vsdrops and empty dirs. (#11704) 2021-05-27 06:06:06 -04:00
Rolf Bjarne Kvinge 2fed900225
[static registrar] Add a missing call to xamarin_mono_object_release for out parameters. (#11696)
This involves storing the out parameter in an additional variable, so that we
can still access it after the method call.

Before:

    There were 257927 MonoObjects created, 235060 MonoObjects freed, so 22867 were not freed. (dynamic registrar)
    There were 205700 MonoObjects created, 203983 MonoObjects freed, so 1717 were not freed. (static registrar)

After:

    There were 257935 MonoObjects created, 235064 MonoObjects freed, so 22871 were not freed. (dynamic registrar)
    There were 205700 MonoObjects created, 204006 MonoObjects freed, so 1694 were not freed. (static registrar)
2021-05-27 07:31:02 +02:00
Rolf Bjarne Kvinge c88c0b5283
[dotnet] Remove the .NET workload resolver workaround, it's not needed anymore. (#11695) 2021-05-27 07:30:46 +02:00
Rolf Bjarne Kvinge ba4fa19267
[runtime] Intercept the objc_msgSend family of functions using CoreCLR's supported mechanisms. (#11692)
This allows us to re-introduce a few tests.
2021-05-27 07:29:39 +02:00
Manuel de la Pena 97e34bc451
[CI] Fix build reason if and uses a better branch name. (#11690) 2021-05-26 23:34:29 -04:00
Manuel de la Pena 19bafa46e9
[CI] Expressions should be between $() (#11701) 2021-05-26 23:31:38 -04:00
Manuel de la Pena 37bbb91851
[CI] Override if present. (#11698)
This should not happen since we should not be getting same url.
2021-05-26 20:46:19 -04:00
Manuel de la Pena ff138b724e
[CI] Path returns errors becuase of missing ' use method. (#11697) 2021-05-26 15:47:51 -04:00
Jonathan Peppers 7bf450b987
[dotnet] publishing settings for NuGet.org (#11687)
* [dotnet] publishing settings for NuGet.org

Context: https://github.com/xamarin/xamarin-android/pull/5948

Microsoft has rules for submitting signed NuGet packages with the
namespace `Microsoft.*` under the Microsoft + Xamarin organizations.

Some of these rules include:

* Package must be signed.
* Must include a license.
* `$(Authors)` should be `Microsoft`
* `$(PackageProjectUrl)` can't be blank.
* `$(Copyright)` must *exactly* say `© Microsoft Corporation. All rights reserved.`

If any of these are wrong, you'll get errors during `nuget push` such as:

    Response status code does not indicate success:
    400 (The package is not compliant with metadata requirements for Microsoft packages on NuGet.org.
    Go to https://aka.ms/Microsoft-NuGet-Compliance for more information.
    Policy violations: The package metadata is missing required ProjectUrl.

We used a script to fix up these values and resign for .NET 6 Preview
4. This was painful but got us by for the current release.

Going forward, we should just fill out these values for .NET 6 .nupkg
files.

* Forgot $(PackageLicenseFile)
2021-05-26 21:35:05 +02:00
TJ Lambert 6ad068b946
[Localization] Cherry Picking lcl files (#11682)
* LEGO: Merge pull request 11652

LEGO: Merge pull request 11652

* LEGO: Merge pull request 11646

LEGO: Merge pull request 11646

Co-authored-by: csigs <csigs@users.noreply.github.com>
2021-05-26 13:59:55 -05:00
Rolf Bjarne Kvinge e4ce1a389d
[static registrar] Add a few missing calls to xamarin_mono_object_release for arrays. (#11685)
Before:

> There were 205700 MonoObjects created, 113865 MonoObjects freed, so 91835 were not freed. (static registrar)

After:

> There were 205700 MonoObjects created, 113982 MonoObjects freed, so 91718 were not freed. (static registrar)
2021-05-26 20:39:16 +02:00
Rolf Bjarne Kvinge fe0cc33b8c
[xharness] Disable msbuild node reuse to fix issue with msbuild processes interfering with eachother. (#11689)
Fixes https://github.com/xamarin/maccore/issues/2444.
2021-05-26 20:36:48 +02:00