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

12003 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge 669dd22742
[msbuild] Create the directory for the .stamp file for the _CreateBindingResourcePackage target before trying to create the .stamp file. (#13179) 2021-10-29 18:34:01 +02:00
Chris Hamons 2d278e4712
[msbuild] Fix dSYM generation of iOS binding projects (#13112)
- Fixes https://github.com/xamarin/xamarin-macios/issues/13096
- This was broken in https://github.com/xamarin/xamarin-macios/pull/10304
2021-10-29 10:20:44 -05:00
Manuel de la Pena 2cc31dcb9c
[MailKit] Fix intro in monterey. (#13169) 2021-10-29 11:06:14 -04:00
Rachel Kang 00d6cf3483
Merge pull request #13178 from rachelkang/cat_coreml
[CoreML] Updates for Catalyst
2021-10-29 10:18:00 -04:00
Rolf Bjarne Kvinge c2ba65073d
[Security] Change underlying type of SecAccessControlCreateFlags for .NET. (#13177)
Also fix constant left shift to compile.

Otherwise this happens:

> Security/SecAccessControl.cs(91,25): error CS0031: Constant value '-2147483648' cannot be converted to a 'ulong'
2021-10-29 16:08:48 +02:00
Rolf Bjarne Kvinge ac2ceea0f7
[CGColorConversionInfo] Subclass NativeObject + numerous other code updates (#13176)
* Subclass NativeObject to reuse object lifetime code.
* Enable nullability and fix code accordingly.
* Use 'is' and 'is not' instead of '==' and '!=' for object identity.
* Use 'nameof (parameter)' instead of string constants.
2021-10-29 16:08:31 +02:00
Rolf Bjarne Kvinge 0bc63ba90f
[CGPDFContentStream] Subclass NativeObject + numerous other code updates (#13171)
* Subclass NativeObject to reuse object lifetime code.
* Enable nullability and fix code accordingly.
* Use 'is' and 'is not' instead of '==' and '!=' for object identity.
* Use CFArray.ArrayFromHandleFunc to create managed array from a native CFArray
  instead of doing it manually.
* Use the null-safe NativeObjectExtensions.GetHandle extension method to get
  the handle instead of checking for null (avoids some code duplication).
* Use 'nameof (parameter)' instead of string constants.
* Remove the (IntPtr) constructor for .NET
2021-10-29 16:08:04 +02:00
Rolf Bjarne Kvinge f0c8738966
[tests] Add an Xcode 13.1 version check in WKPreferencesTest. (#13170)
Fixes this test failure on macOS 10.14:

    MonoTouchFixtures.WebKit.WKPreferencesTest
        [FAIL] TextInteractionEnabledTest :   Getter
            Expected: No Exception to be thrown
            But was:  <Foundation.ObjCException: NSInvalidArgumentException: -[WKPreferences setTextInteractionEnabled:]: unrecognized selector sent to instance 0x7fa228f12640
                at (wrapper managed-to-native) ObjCRuntime.Messaging.void_objc_msgSend_bool(intptr,intptr,bool)
                at WebKit.WKPreferences.set__OldTextInteractionEnabled (System.Boolean value) [0x0002c] in /Users/builder/azdo/_work/1/s/xamarin-macios/src/build/mac/mobile/WebKit/WKPreferences.g.cs:482
                at WebKit.WKPreferences.set_TextInteractionEnabled (System.Boolean value) [0x00000] in /Users/builder/azdo/_work/1/s/xamarin-macios/src/WKWebKit/WKPreferences.cs:32
                at MonoTouchFixtures.WebKit.WKPreferencesTest+<>c__DisplayClass0_0.<TextInteractionEnabledTest>b__0 () [0x00000] in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/monotouch-test/WebKit/WKPreferencesTest.cs:19
                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
                --- End of stack trace from previous location where exception was thrown ---
                at NUnit.Framework.Internal.ExceptionHelper.Rethrow (System.Exception exception) [0x00006] in <d392db2fb3d64f4fa564a7b744fc7801>:0
                at NUnit.Framework.Internal.Reflect.DynamicInvokeWithTransparentExceptions (System.Delegate delegate) [0x00013] in <d392db2fb3d64f4fa564a7b744fc7801>:0
                at NUnit.Framework.Internal.ExceptionHelper.RecordException (System.Delegate parameterlessDelegate, System.String parameterName) [0x00067] in <d392db2fb3d64f4fa564a7b744fc7801>:0 >
2021-10-29 16:07:53 +02:00
Rolf Bjarne Kvinge 67414e40fe
[CFSocket] Adjust object lifetime code for CFType subclass + numerous other code updates (#13164)
* Adjust object lifetime code for CFType subclass since CFType now subclasses NativeObject.
* Enable nullability and fix code accordingly.
* Use 'is' and 'is not' instead of '==' and '!=' for object identity.
* Use 'nameof (parameter)' instead of string constants.
* Remove the (IntPtr) constructor for .NET
* Make the (IntPtr, bool) constructor internal for .NET
2021-10-29 16:06:53 +02:00
Rolf Bjarne Kvinge a8ae511dc8
[AddressBook] Add more nullability and fix base class for a few types built for the core build. (#13161) 2021-10-29 16:06:22 +02:00
Rolf Bjarne Kvinge b24866519a
[CoreGraphics] Rename a P/Invoke to not overload on nint vs IntPtr. (#13159)
It would result in the same signature when using C# nints, and a failed build.
2021-10-29 16:05:46 +02:00
Rolf Bjarne Kvinge 0a29d1ef8f
[registrar] The native type for UIntPtr is the same as for IntPtr. (#13156) 2021-10-29 16:04:33 +02:00
Rolf Bjarne Kvinge f9ae3bd9a0
[monotouch-test] Fix a comparison to work with both C# nint and System.nint. (#13155) 2021-10-29 16:03:57 +02:00
Rolf Bjarne Kvinge 635e115127
[CGLContext] Subclass NativeObject + numerous other code updates (#13154)
* Subclass NativeObject to reuse object lifetime code.
* Enable nullability and fix code accordingly.
* Use the null-safe NativeObjectExtensions.GetHandle extension method to get
  the handle instead of checking for null (avoids some code duplication).
* Call 'GetCheckedHandle ()' (which will throw an ObjectDisposedException if
  Handle == IntPtr.Zero) instead of manually checking for IntPtr.Zero and
  throwing ObjectDisposedException.
* Use the 'Runtime.GetNSObject<T> (IntPtr, bool)' overload to specify handle
  ownership, to avoid having to call NSObject.DangerousReleaes manually later.
* Remove the (IntPtr) constructor for NET.
2021-10-29 16:03:15 +02:00
Rolf Bjarne Kvinge 23881c9f80
[CGLPixelFormat] Subclass NativeObject + numerous other code updates (#13153)
* Subclass NativeObject to reuse object lifetime code.
* Enable nullability and fix code accordingly.
* Use 'is' and 'is not' instead of '==' and '!=' for object identity.
* Use 'nameof (parameter)' instead of string constants.
* Remove the (IntPtr) constructor for NET
2021-10-29 16:02:57 +02:00
Rolf Bjarne Kvinge f067762757
[Foundation] Make NSAutoreleasePool generated code. (#13147) 2021-10-29 15:54:36 +02:00
Rolf Bjarne Kvinge f0b72a004d
[apidiff] Fix rule to download reference assemblies. (#13174)
Make seems to ignore pattern rules without a recipe, so just add an empty
recipe for this pattern rule.

Fixes:

> make: *** No rule to make target `temp/downloads/dotnet-iOS-5315390/Microsoft.iOS.Ref/ref/net6.0/Xamarin.iOS.dll', needed by `references/dotnet/Microsoft.iOS.Ref/ref/net6.0/Xamarin.iOS.xml'.  Stop.
2021-10-29 15:51:55 +02:00
Rachel Kang 5d6df6804b
Add ignore file 2021-10-28 15:58:34 -04:00
Rachel Kang c8465dbc4b
[CoreML] Updates for Catalyst 2021-10-28 15:58:12 -04:00
Manuel de la Pena 03960831d5
[Chip] Removing intro failins in monterey. (#13143) 2021-10-28 11:19:52 -04:00
Mauro Agnoletti a88ca0d29d
Updated Xamarin.Messaging version (#13145)
* Updated Xamarin.Messaging version

* Adapt BuildAgent to new Messaging changes
2021-10-28 17:00:14 +02:00
Rolf Bjarne Kvinge 02431b9fc8
[.NET] Move the nfloat type to the ObjCRuntime namespace for .NET. (#13092)
Also move the NMath type from the System namespace to the ObjCRuntime namespace.

Ref: https://github.com/xamarin/xamarin-macios/issues/13087
2021-10-28 11:06:31 +02:00
Rolf Bjarne Kvinge 8f1e650bea
[tests] Allow for F# project files (*.fsproj) in generic make logic. (#13137) 2021-10-28 11:04:29 +02:00
Rolf Bjarne Kvinge 15232eb29a
[CGImage] Subclass NativeObject + numerous other code updates (#13132)
* [CGImage] Subclass NativeObject + numerous other code updates

* Subclass NativeObject to reuse object lifetime code.
* Enable nullability and fix code accordingly.
* Use 'is' and 'is not' instead of '==' and '!=' for object identity.
* Use the null-safe NativeObjectExtensions.GetHandle extension method to get
  the handle instead of checking for null (avoids some code duplication).
* Use 'nameof (parameter)' instead of string constants.
* Remove the (IntPtr) constructor for XAMCORE_4_0.

* [CoreFoundation] Adjust NativeObject's logic to optionally verify the pointer to actually work.

* [CGImage] Don't verify the handle passed to the constructor until .NET.
2021-10-28 08:22:08 +02:00
Rolf Bjarne Kvinge 7597f91452
[CGLayer] Subclass NativeObject + numerous other code updates (#13141)
* Subclass NativeObject to reuse object lifetime code.
* Enable nullability and fix code accordingly.
* Use 'is' and 'is not' instead of '==' and '!=' for object identity.
* Use the null-safe NativeObjectExtensions.GetHandle extension method to get
  the handle instead of checking for null (avoids some code duplication).
* Remove the internal (IntPtr) constructor.
2021-10-28 08:15:34 +02:00
Rolf Bjarne Kvinge 44cf7ae388
[CGPath] Subclass NativeObject + numerous other code updates (#13142)
* Subclass NativeObject to reuse object lifetime code.
* Enable nullability and fix code accordingly.
* Use 'is' and 'is not' instead of '==' and '!=' for object identity.
* Use 'nameof (parameter)' instead of string constants.
* Remove the (IntPtr) constructor for XAMCORE_4_0.
* Fix constructor chain invocation for the (IntPtr, bool) constructor to
  actually pass on the 'owns' parameter.
2021-10-28 08:15:27 +02:00
Rolf Bjarne Kvinge 878da5c0c4
[generator] Call the (IntPtr, bool) constructor for INativeObjects. (#13144)
This is required, because the (IntPtr) constructor will eventually be removed for all types.
2021-10-28 08:15:15 +02:00
Manuel de la Pena c2e2ac8b40
[AVFoundation] Make the notification change for xamcore 4 (#13134)
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2021-10-27 15:06:17 -04:00
Manuel de la Pena 40db84a71e
[WebKit] Add methods removed by Apple. (#13133)
Apple removed methods without deprecating and did not add them back
after a rdar was reported. We can implement those methofs using the new
ones.
2021-10-27 15:04:44 -04:00
Rolf Bjarne Kvinge f1d20dc2bc
[CGEvent] Subclass NativeObject + numerous other code updates (#13122)
* Subclass NativeObject to reuse object lifetime code.
* Enable nullability and fix code accordingly.
* Use 'is' and 'is not' instead of '==' and '!=' for object identity.
* Use the null-safe NativeObjectExtensions.GetHandle extension method to get
  the handle instead of checking for null (avoids some code duplication).
* Use 'nameof (parameter)' instead of string constants.
* Remove the (IntPtr) constructor for XAMCORE_4_0.
2021-10-27 10:24:56 +02:00
Rolf Bjarne Kvinge 978ef11f1d
[CGEventSource] Subclass NativeObject + numerous other code updates (#13125)
* Subclass NativeObject to reuse object lifetime code.
* Enable nullability and fix code accordingly.
* Use 'is' and 'is not' instead of '==' and '!=' for object identity.
* Remove the (IntPtr) constructor for XAMCORE_4_0.
* Make the (IntPtr, bool) constructor internal for XAMCORE_4_0.
2021-10-27 10:24:45 +02:00
Rolf Bjarne Kvinge a28fc44056
[CF[Read|Write|HTTP]Stream] Subclass NativeObject + numerous other code updates (#13127)
* Subclass NativeObject to reuse object lifetime code.
* Enable nullability and fix code accordingly.
* Use 'is' and 'is not' instead of '==' and '!=' for object identity.
* Use the null-safe NativeObjectExtensions.GetHandle extension method to get
  the handle instead of checking for null (avoids some code duplication).
* Use 'nameof (parameter)' instead of string constants.
* Call 'GetCheckedHandle ()' (which will throw an ObjectDisposedException if
  Handle == IntPtr.Zero) instead of manually checking for IntPtr.Zero and
  throwing ObjectDisposedException.
* Use Array.Empty<T> instead of creating an empty array manually.
* Remove the (IntPtr) constructor for XAMCORE_4_0.
* Add an internal (IntPtr, bool) constructor.
2021-10-27 10:20:57 +02:00
Rolf Bjarne Kvinge cf8008cbc0
[CMSync] Subclass NativeObject + numerous other code updates (#13131)
* Subclass NativeObject to reuse object lifetime code.
* Use 'is' and 'is not' instead of '==' and '!=' for object identity.
* Use 'nameof (parameter)' instead of string constants.
* Remove the (IntPtr) constructor for XAMCORE_4_0.
2021-10-27 10:18:48 +02:00
Rolf Bjarne Kvinge 8d6c97ef00
[CMMemoryPool] Subclass NativeObject + a few other code updates (#13129)
* Subclass NativeObject to reuse object lifetime code.
* Enable nullability and fix code accordingly.
2021-10-27 10:18:31 +02:00
Rolf Bjarne Kvinge becfa7d992
[CTFont] Subclass NativeObject + numerous other code updates (#13102)
* [CTFont] Subclass NativeObject + numerous other code updates

* Subclass NativeObject to reuse object lifetime code.
* Enable nullability and fix code accordingly.
* Use 'is' and 'is not' instead of '==' and '!=' for object identity.
* Use CFString.CreateNative/ReleaseNative instead of other means to create
  native strings (the fastest and least memory hungry option).
* Use the null-safe NativeObjectExtensions.GetHandle extension method to get
  the handle instead of checking for null (avoids some code duplication).
* Use 'nameof (parameter)' instead of string constants.
* Use the 'Runtime.GetNSObject<T> (IntPtr, bool)' overload to specify handle
  ownership, to avoid having to call NSObject.DangerousRelease manually later.
* Use Array.Empty<T> instead of creating an empty array manually.
* Add an NSArray.ArrayFromHandle overload that releases the handle if requested (and use it).

* Remove more code.
2021-10-27 10:17:05 +02:00
Rolf Bjarne Kvinge bbb5838113
[CGGradient] Subclass NativeObject + numerous other code updates (#13130)
* Subclass NativeObject to reuse object lifetime code.
* Enable nullability and fix code accordingly.
* Use 'is' and 'is not' instead of '==' and '!=' for object identity.
* Use the null-safe NativeObjectExtensions.GetHandle extension method to get
  the handle instead of checking for null (avoids some code duplication).
* Use 'nameof (parameter)' instead of string constants.
* Call 'GetCheckedHandle ()' (which will throw an ObjectDisposedException if
  Handle == IntPtr.Zero) instead of manually checking for IntPtr.Zero and
  throwing ObjectDisposedException.
2021-10-27 10:11:13 +02:00
Mike Bond 606908acd6
[CI] M1 - Mac Big Sur (11.5): Agent pool update (#13095) 2021-10-26 14:01:15 -07:00
Alex Soto 7021b3890d
Bump macios to Xcode 13.1 SDKs (#13123) 2021-10-26 13:58:37 -04:00
Rolf Bjarne Kvinge bf51c2dcf9
[CGDataConsumer] Subclass NativeObject + numerous other code updates (#13120)
* Subclass NativeObject to reuse object lifetime code.
* Enable nullability and fix code accordingly.
* Use 'is' and 'is not' instead of '==' and '!=' for object identity.
* Use CFString.CreateNative/ReleaseNative instead of other means to create
  native strings (the fastest and least memory hungry option).
* Use the null-safe NativeObjectExtensions.GetHandle extension method to get
  the handle instead of checking for null (avoids some code duplication).
* Use 'nameof (parameter)' instead of string constants.
2021-10-26 17:06:35 +02:00
Rolf Bjarne Kvinge 3213646bdc
[CGContext] Subclass NativeObject + numerous other code updates (#13119)
* Subclass NativeObject to reuse object lifetime code.
* Enable nullability and fix code accordingly.
* Use 'is' and 'is not' instead of '==' and '!=' for object identity.
* Use the null-safe NativeObjectExtensions.GetHandle extension method to get
  the handle instead of checking for null (avoids some code duplication).
* Use 'nameof (parameter)' instead of string constants.
* Call 'GetCheckedHandle ()' (which will throw an ObjectDisposedException if
  Handle == IntPtr.Zero) instead of manually checking for IntPtr.Zero and
  throwing ObjectDisposedException.
* Remove the (IntPtr) constructor for XAMCORE_4_0.
2021-10-26 16:15:15 +02:00
Rolf Bjarne Kvinge 35e1324024
[CGShading] Subclass NativeObject + numerous other code updates (#13117)
* Subclass NativeObject to reuse object lifetime code.
* Enable nullability and fix code accordingly.
* Use 'is' and 'is not' instead of '==' and '!=' for object identity.
* Use 'nameof (parameter)' instead of string constants.
* Call 'GetCheckedHandle ()' (which will throw an ObjectDisposedException if
  Handle == IntPtr.Zero) instead of manually checking for IntPtr.Zero and
  throwing ObjectDisposedException.
* Remove the (IntPtr) constructor for XAMCORE_4_0.
2021-10-26 16:11:17 +02:00
Rolf Bjarne Kvinge 7d597f53b5
[CMSampleBuffer] Subclass NativeObject + numerous other code updates. Fixes #12833. (#13115)
* Subclass NativeObject to reuse object lifetime code.
* Enable nullability and fix code accordingly.
* Use 'is' and 'is not' instead of '==' and '!=' for object identity.
* Use CFString.CreateNative/ReleaseNative instead of other means to create
  native strings (the fastest and least memory hungry option).
* Use the null-safe NativeObjectExtensions.GetHandle extension method to get
  the handle instead of checking for null (avoids some code duplication).
* Use 'nameof (parameter)' instead of string constants.
* Call 'GetCheckedHandle ()' (which will throw an ObjectDisposedException if
  Handle == IntPtr.Zero) instead of manually checking for IntPtr.Zero and
  throwing ObjectDisposedException.
* Use Array.Empty<T> instead of creating an empty array manually.
* Remove the internal (IntPtr) constructor and update callsites to call the
  (IntPtr, bool) constructor.

Fixes https://github.com/xamarin/xamarin-macios/issues/12833.
2021-10-26 16:01:22 +02:00
Rolf Bjarne Kvinge c65bdc767e
[CFHost] Subclass NativeObject + numerous other code updates (#13111)
* Subclass NativeObject to reuse object lifetime code.
* Enable nullability and fix code accordingly.
2021-10-26 08:29:24 +02:00
Rolf Bjarne Kvinge fad9779840
[runtime] Pass value callbacks to free values when creating the 'gchandle_hash' dictionary. (#13109)
This way the values are actually freed.
2021-10-26 08:28:03 +02:00
Rolf Bjarne Kvinge 00ea033536
[CFHTTPMessage] Indirectly subclass NativeObject + numerous other code updates (#13110)
* The base class CFType now subclasses NativeObject, so we can remove a lot of unnecessary code.
* Subclass NativeObject to reuse object lifetime code.
* Enable nullability and fix code accordingly.
* Use 'is' and 'is not' instead of '==' and '!=' for object identity.
* Use CFString.CreateNative/ReleaseNative instead of other means to create
  native strings (the fastest and least memory hungry option).
* Use 'nameof (parameter)' instead of string constants.
* Remove the internal (IntPtr) constructor.
* Adjust the string<->CFString conversion operators to allow for null input
  (and thus null output), and annotate the operators accordingly when
  possible.
2021-10-26 08:27:38 +02:00
Rolf Bjarne Kvinge cc5a1ea94e
[CFHTTPAuthentication] Indirectly subclass NativeObject + numerous other code updates (#13107)
* The base class CFType now subclasses NativeObject, so we can remove a lot of unnecessary code.
* Enable nullability and fix code accordingly.
* Use 'is' and 'is not' instead of '==' and '!=' for object identity.
* Use 'nameof (parameter)' instead of string constants.
* Remove the internal (IntPtr) constructor.
2021-10-26 08:27:23 +02:00
Rolf Bjarne Kvinge 90228391d4
[Policy] Subclass NativeObject + numerous other code updates (#13108)
* Subclass NativeObject to reuse object lifetime code.
* This needed another constructor overload in NativeObject that validates that
  the handle is valid, since the Policy class verifies that.
* Enable nullability and fix code accordingly.
* Use 'is' and 'is not' instead of '==' and '!=' for object identity.
* Use CFString.CreateNative/ReleaseNative instead of other means to create
  native strings (the fastest and least memory hungry option).
* Remove the (IntPtr) constructor for XAMCORE_4_0.
2021-10-26 08:22:56 +02:00
Rolf Bjarne Kvinge 94a7e815ce
[Trust] Subclass NativeObject + numerous other code updates (#13104)
* Subclass NativeObject to reuse object lifetime code.
* Enable nullability and fix code accordingly.
* Use 'is' and 'is not' instead of '==' and '!=' for object identity.
* Use the null-safe NativeObjectExtensions.GetHandle extension method to get
  the handle instead of checking for null (avoids some code duplication).
* Use 'nameof (parameter)' instead of string constants.
* Call 'GetCheckedHandle ()' (which will throw an ObjectDisposedException if
  Handle == IntPtr.Zero) instead of manually checking for IntPtr.Zero and
  throwing ObjectDisposedException.
* Remove the (IntPtr) constructor for XAMCORE_4_0.
2021-10-26 08:21:30 +02:00
Rolf Bjarne Kvinge 79fc7433c2
[CGColorSpace] Subclass NativeObject + numerous other code updates (#13089)
* Subclass NativeObject to reuse object lifetime code.
* Enable nullability and fix code accordingly.
* Use 'is' and 'is not' instead of '==' and '!=' for object identity.
* Use the null-safe NativeObjectExtensions.GetHandle extension method to get
  the handle instead of checking for null (avoids some code duplication).
* Use 'nameof (parameter)' instead of string constants.
* Call 'GetCheckedHandle ()' (which will throw an ObjectDisposedException if
  Handle == IntPtr.Zero) instead of manually checking for IntPtr.Zero and
  throwing ObjectDisposedException.
* Add a FromHandle method that creates a CGColorSpace from an IntPtr, checking
  for IntPtr.Zero first, to deduplicate a lot of code.
2021-10-26 08:19:52 +02:00
Rolf Bjarne Kvinge b70e6f4674
Submodule MonoTouch.Dialog. (#13058)
* Submodule MonoTouch.Dialog.

Submodule MonoTouch.Dialog, so that we can easily build it using .NET. This
submodule will become redundant when/if we publish a .NET version of
MonoTouch.Dialog, but until that happens we need it at least for our own test
suites.

This also means we have to copy our NuGet.config and global.json files to the
MonoTouch.Dialog project directory so that we point msbuild to use our local
build.

New commits in spouliot/Touch.Unit:

* spouliot/Touch.Unit@cbda703 [Touch.Client] Use MonoTouch.Dialog from a submodule. (#109)

Diff: 3345db2f4e..cbda703583

* Use relative path for submodule.

And fix indentation and set the branch name.

* Don't use 'RootTestsDirectory' when it might not be defined yet.

* [tests] Our test projects don't need to reference MonoTouch.Dialog directly.

The projects get the MonoTouch.Dialog reference indirectly through the
Touch.Client project reference.

* [tests] Only validate unique errors in the .NET unit tests.

* [tests] No need to reference System.Json anymore, that's handled directly in the MonoTouch.Dialog project.

* [tests] Reference nunit.framework.targets so we get a workaround for an NUnit issue everywhere.

* [msbuild] Only try to create a package if we're able to create an app bundle.

This fixes an issue where a library project would try (and fail) to create a
package when 'CreatePackage=true' (which could be set for the executable
project, but inherited by the library project since the executable project
depends on it).

* [tests] Adjust PackTest.BindingXcFrameworksProject to not set the AssemblyName property.

MSBuild ends up being very confused when the project we're trying to build
depends on other projects, because AssemblyName is set for all the projects
being build, and MSBuild complains about ambiguous projects:

> error: Ambiguous project name 'bindings-xcframework-test'
2021-10-26 08:18:34 +02:00