Bridges the worlds of .NET with the native APIs of macOS, iOS, tvOS, and watchOS.
Перейти к файлу
monojenkins daf5006281 [d16-2] [msbuild] Add reference to `System.Drawing.Common.dll` to XI projects. (#6035)
* [msbuild] Add reference to `System.Drawing.Common.dll` to XI projects.

Fixes https://github.com/mono/mono/issues/13483 :

```
@akoeplinger: Since we moved types from Mono.Android.dll and
Xamarin.iOS/WatchOS/TVOS.dll to System.Drawing.Common.dll user projects
would fail to compile. We need to add some msbuild logic to add a
reference to the assembly automatically.
```

* [msbuild] Implement the same fix for XM projects as well.

* [msbuild] Update Xamarin.iOS.Tasks.TargetTests.GetReferencedAssemblies_* tests.

We're including a new assembly, which means the
Xamarin.iOS.Tasks.TargetTests.GetReferencedAssemblies_* must be updated
accordingly.

Also modify these tests so that test assert that fails lists the actual
assembly that's missing, i.e. instead of this:

    1) Test Failure : Xamarin.iOS.Tasks.TargetTests.GetReferencedAssemblies_Executable
         #1
      Expected: 6
      But was:  7

we now print:

    1) Test Failure : Xamarin.iOS.Tasks.TargetTests.GetReferencedAssemblies_Executable
         References
      Expected: equivalent to < "mscorlib.dll", "MyLibrary.dll", "System.Core.dll", "System.dll", "System.Xml.dll", "Xamarin.iOS.dll" >
      But was:  < "mscorlib.dll", "MyLibrary.dll", "System.Core.dll", "System.dll", "System.Drawing.Common.dll", "System.Xml.dll", "Xamarin.iOS.dll" >

* [tests] Adjust Xamarin.MMP.Tests.AssemblyReferencesTests.ShouldNotAllowReference_ToSystemDrawing.

The test was verifying that referencing System.Drawing.dll and trying to use
System.Drawing.RectangleF would fail to compile (because System.Drawing.dll
shouldn't be resolved in this case).

The addition of System.Drawing.Common.dll breaks this assumption, because now
we ship System.Drawing.RectangleF, so the code that was supposed to fail to
compile works just fine instead.

So modify the test to verify that there's no System.Drawing.dll in the final
bundle.

* Remove workarounds for mono/mono#13483.

* [msbuild] Create a way out if automatically referencing System.Drawing.Common.dll causes problems.

* [msbuild] Adjust variable name and boolean logic according to review.
2019-05-10 16:16:01 +02:00
builds Download the Mono SDK archive for macOS as well. (#5953) 2019-04-26 16:44:29 +02:00
docs [docs] Fix grammar. 2019-04-30 14:29:24 +00:00
external Bump macios-binaries to get updated mlaunch. 2019-05-09 14:20:43 +02:00
fsharp Add config file for libmono-native dllmap 2019-03-13 00:34:47 +01:00
jenkins [jenkins] Add support to build.sh for timing out the build. (#5952) 2019-04-26 23:06:12 +02:00
mk Bump maccore to get mlaunch fix for older simulators. 2019-05-09 13:24:29 +02:00
mono Add config file for libmono-native dllmap 2019-03-13 00:34:47 +01:00
msbuild [d16-2] [msbuild] Add reference to `System.Drawing.Common.dll` to XI projects. (#6035) 2019-05-10 16:16:01 +02:00
opentk Move System.Drawing types to Mono 2019-03-13 17:26:47 +01:00
runtime [runtime] Add new functions to the header so that they don't use C++ mangling. 2019-04-30 14:29:24 +00:00
src [src] Sprinkle availability attributes for iOS 8.1, tvOS 9.0 and watchOS 2.0. 2019-05-09 13:24:50 +02:00
tests [d16-2] [msbuild] Add reference to `System.Drawing.Common.dll` to XI projects. (#6035) 2019-05-10 16:16:01 +02:00
tools Fix mlaunch build. (#6038) 2019-05-10 15:40:51 +02:00
.gitignore [Tests] Add a new iOS app to run the xunit and nunit tests (#4914) 2018-11-16 13:31:40 -05:00
.gitmodules Branching for d16-2 2019-04-29 17:31:31 -04:00
CODEOWNERS [codeowners] Add chamons to a few areas (#5147) 2018-11-19 22:20:40 -05:00
ISSUE_TEMPLATE.md Update ISSUE_TEMPLATE.md (#4233) 2018-06-12 17:26:51 -04:00
LICENSE Adjust license to match requested format 2016-04-25 16:38:57 -04:00
Make.config Fix defining extra simulators so that they're actually installed. 2019-05-09 13:24:53 +02:00
Make.versions Branching for d16-2 2019-04-29 17:31:31 -04:00
Makefile Merge branch 'xcode10.2' into master-merge-xcode10.2 2019-04-03 13:57:31 -04:00
NuGet.config Add a 'repositorypath' to our NuGet.Config and update paths everywhere accordingly. (#1110) 2016-11-04 09:13:33 +01:00
README.md Update README.md (#3587) 2018-02-26 14:31:49 -05:00
Versions-ios.plist.in Bump for Xcode 10.2 beta 1 (#5470) 2019-01-24 16:36:15 -05:00
Versions-mac.plist.in Add the minimum system mono version for running Xamarin.Mac apps using system mono to Versions.plist. (#5281) 2018-12-18 07:48:19 +01:00
Xamarin.Mac.sln Fix linker paths 2019-03-22 11:19:35 +01:00
Xamarin.iOS.sln Remove unusued project configuration ('DebugStaticRegistrar') from Xamarin.iOS.sln. 2018-08-23 12:32:09 +02:00
banner.png [README] Add Xamarin.iOS + Xamarin.Mac banner (#1665) 2017-02-08 17:42:48 -05:00
configure [builds] Download & extract the mono sdk package. (#5247) 2018-12-11 07:48:05 +01:00
product.snk Add our mono runtimes to the build. 2016-04-24 14:47:24 -04:00
system-dependencies.sh [provisioning] Make sure nothing can block Xcode mv (#5943) 2019-04-23 16:55:59 -04:00
versions-check.csharp [Versions-ios.plist] watchOS started at 1.0 (#1328) 2016-12-13 10:52:58 +01:00

README.md

Xamarin.iOS + Xamarin.Mac logo

Xamarin.iOS & Xamarin.Mac

Status
master xamarin-macios-builds-master

Welcome!

This module is the main repository for both Xamarin.iOS and Xamarin.Mac.

These SDKs allow us to create native iOS, tvOS, watchOS and macOS applications using the same UI controls we would in Objective-C and Xcode, except with the flexibility and elegance of a modern language (C#), the power of the .NET Base Class Library (BCL), and two first-class IDEs—Visual Studio for Mac and Visual Studio—at our fingertips.

This repository is where we do development for the Xamarin.iOS and Xamarin.Mac SDKs. There are a few ways that you can contribute, for example:

Contributing

If you are interested in fixing issues and contributing directly to the code base, please see the document How to Contribute, which covers the following:

Feedback

Gitter

License

Copyright (c) .NET Foundation Contributors. All rights reserved. Licensed under the MIT License.