xamarin-macios/tests/bindings-framework-test
Jonathan Peppers 666059f289
[msbuild] add System.Drawing.Common ref for bindings (#8528)
Fixes: https://github.com/xamarin/xamarin-macios/issues/8265

Usage of `System.Drawing` types in iOS binding projects are failing with:

    error CS1069: The type name 'Color' could not be found in the namespace 'System.Drawing'.
    This type has been forwarded to assembly 'System.Drawing.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
    Consider adding a reference to that assembly.

In 3a7bdc0, an `_AddExtraReferences` MSBuild target was added for iOS
and Mac projects, but mistakenly missing from binding projects.

I moved the `_AddExtraReferences` target to `Xamarin.Shared.targets`,
so it will be used for all project types.

I also updated a test, I could merely use `System.Drawing.Color` in
`StructsAndEnums.cs` to reproduce the failure.
2020-05-07 15:27:06 -05:00
..
ApiDefinition.cs [bindings-framework-test] Remove unused define. 2016-06-27 13:07:37 +02:00
StructsAndEnums.cs [msbuild] add System.Drawing.Common ref for bindings (#8528) 2020-05-07 15:27:06 -05:00
XTest.framework.linkwith.cs [tests] Add missing framework to the bindings-framework-test project's LinkWith attribute. 2019-04-29 14:55:40 +02:00
bindings-framework-test.csproj [generator] Add C#8 nullability into generated code (#7570) 2020-04-09 09:29:28 -04:00