Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEgor Bogatov <egorbo@gmail.com>2019-03-11 15:23:31 +0300
committerAlexander Köplinger <alex.koeplinger@outlook.com>2019-03-11 15:23:31 +0300
commitd0013e438c6ba81f9b58cbb6a8d47eccbc14420f (patch)
treee59dcda1e9a4801a1cdf45fd30da8653c66a8fc1 /mcs/class/System.Drawing
parentdb67d18d0da569040883ac6c380403c794b2d824 (diff)
Add System.Drawing converters to netstandard facade (#13326)
This PR adds missing System.Drawing converters thus it completes NS2.1 support (as of today) for all profiles except macOS\IOS specific ones: monotouch, tv, watch, xammac, xammac_net_4_5.
Diffstat (limited to 'mcs/class/System.Drawing')
-rw-r--r--mcs/class/System.Drawing/System.Drawing.csproj39
-rw-r--r--mcs/class/System.Drawing/netstandard.sources6
2 files changed, 21 insertions, 24 deletions
diff --git a/mcs/class/System.Drawing/System.Drawing.csproj b/mcs/class/System.Drawing/System.Drawing.csproj
index 7caf1fe0e45..e774ce4c86d 100644
--- a/mcs/class/System.Drawing/System.Drawing.csproj
+++ b/mcs/class/System.Drawing/System.Drawing.csproj
@@ -87,6 +87,9 @@
<Compile Include="..\..\..\external\corefx\src\Common\src\System\Drawing\KnownColor.cs" />
<Compile Include="..\..\..\external\corefx\src\Common\src\System\Drawing\KnownColorTable.cs" />
<Compile Include="..\..\..\external\corefx\src\Common\src\System\Numerics\Hashing\HashHelpers.cs" />
+ <Compile Include="..\..\..\external\corefx\src\System.ComponentModel.TypeConverter\src\System\Drawing\SizeFConverter.cs" />
+ <Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\ColorConverter.cs" />
+ <Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\PointConverter.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\SystemColors.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Primitives\src\System\Drawing\Color.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Primitives\src\System\Drawing\Point.cs" />
@@ -114,13 +117,11 @@
<When Condition="'$(Platform)' == 'xammac'">
<ItemGroup>
<Compile Include="..\..\..\external\corefx\src\System.ComponentModel.TypeConverter\src\System\Drawing\SizeConverter.cs" />
- <Compile Include="..\..\..\external\corefx\src\System.ComponentModel.TypeConverter\src\System\Drawing\SizeFConverter.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\AssemblyRef.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\BitmapSuffixInSameAssemblyAttribute.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\BitmapSuffixInSatelliteAssemblyAttribute.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Brush.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\ClientUtils.cs" />
- <Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\ColorConverter.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\DashCap.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Design\CategoryNameCollection.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Design\IPropertyValueUIService.cs" />
@@ -213,7 +214,6 @@
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Internal\GPRECT.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Internal\GPRECTF.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\NativeMethods.cs" />
- <Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\PointConverter.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Printing\Duplex.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Printing\InvalidPrinterException.Serializable.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Printing\InvalidPrinterException.cs" />
@@ -323,21 +323,25 @@
</ItemGroup>
</When>
<When Condition="'$(Platform)' == 'winaot'">
- <ItemGroup />
+ <ItemGroup>
+ <Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\RectangleConverter.cs" />
+ <Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\SizeConverter.cs" />
+ </ItemGroup>
</When>
<When Condition="'$(Platform)' == 'wasm'">
- <ItemGroup />
+ <ItemGroup>
+ <Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\RectangleConverter.cs" />
+ <Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\SizeConverter.cs" />
+ </ItemGroup>
</When>
<When Condition="'$(Platform)' == 'unreal'">
<ItemGroup>
<Compile Include="..\..\..\external\corefx\src\System.ComponentModel.TypeConverter\src\System\Drawing\SizeConverter.cs" />
- <Compile Include="..\..\..\external\corefx\src\System.ComponentModel.TypeConverter\src\System\Drawing\SizeFConverter.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\AssemblyRef.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\BitmapSuffixInSameAssemblyAttribute.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\BitmapSuffixInSatelliteAssemblyAttribute.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Brush.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\ClientUtils.cs" />
- <Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\ColorConverter.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\DashCap.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Design\CategoryNameCollection.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Design\IPropertyValueUIService.cs" />
@@ -430,7 +434,6 @@
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Internal\GPRECT.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Internal\GPRECTF.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\NativeMethods.cs" />
- <Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\PointConverter.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Printing\Duplex.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Printing\InvalidPrinterException.Serializable.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Printing\InvalidPrinterException.cs" />
@@ -540,18 +543,19 @@
</ItemGroup>
</When>
<When Condition="'$(Platform)' == 'orbis'">
- <ItemGroup />
+ <ItemGroup>
+ <Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\RectangleConverter.cs" />
+ <Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\SizeConverter.cs" />
+ </ItemGroup>
</When>
<When Condition="'$(Platform)' == 'net_4_x'">
<ItemGroup>
<Compile Include="..\..\..\external\corefx\src\System.ComponentModel.TypeConverter\src\System\Drawing\SizeConverter.cs" />
- <Compile Include="..\..\..\external\corefx\src\System.ComponentModel.TypeConverter\src\System\Drawing\SizeFConverter.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\AssemblyRef.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\BitmapSuffixInSameAssemblyAttribute.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\BitmapSuffixInSatelliteAssemblyAttribute.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Brush.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\ClientUtils.cs" />
- <Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\ColorConverter.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\DashCap.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Design\CategoryNameCollection.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Design\IPropertyValueUIService.cs" />
@@ -644,7 +648,6 @@
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Internal\GPRECT.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Internal\GPRECTF.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\NativeMethods.cs" />
- <Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\PointConverter.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Printing\Duplex.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Printing\InvalidPrinterException.Serializable.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Printing\InvalidPrinterException.cs" />
@@ -756,13 +759,11 @@
<When Condition="'$(Platform)' == 'monotouch_watch'">
<ItemGroup>
<Compile Include="..\..\..\external\corefx\src\System.ComponentModel.TypeConverter\src\System\Drawing\SizeConverter.cs" />
- <Compile Include="..\..\..\external\corefx\src\System.ComponentModel.TypeConverter\src\System\Drawing\SizeFConverter.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\AssemblyRef.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\BitmapSuffixInSameAssemblyAttribute.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\BitmapSuffixInSatelliteAssemblyAttribute.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Brush.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\ClientUtils.cs" />
- <Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\ColorConverter.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\DashCap.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Design\CategoryNameCollection.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Design\IPropertyValueUIService.cs" />
@@ -855,7 +856,6 @@
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Internal\GPRECT.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Internal\GPRECTF.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\NativeMethods.cs" />
- <Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\PointConverter.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Printing\Duplex.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Printing\InvalidPrinterException.Serializable.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Printing\InvalidPrinterException.cs" />
@@ -967,13 +967,11 @@
<When Condition="'$(Platform)' == 'monotouch_tv'">
<ItemGroup>
<Compile Include="..\..\..\external\corefx\src\System.ComponentModel.TypeConverter\src\System\Drawing\SizeConverter.cs" />
- <Compile Include="..\..\..\external\corefx\src\System.ComponentModel.TypeConverter\src\System\Drawing\SizeFConverter.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\AssemblyRef.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\BitmapSuffixInSameAssemblyAttribute.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\BitmapSuffixInSatelliteAssemblyAttribute.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Brush.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\ClientUtils.cs" />
- <Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\ColorConverter.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\DashCap.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Design\CategoryNameCollection.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Design\IPropertyValueUIService.cs" />
@@ -1066,7 +1064,6 @@
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Internal\GPRECT.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Internal\GPRECTF.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\NativeMethods.cs" />
- <Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\PointConverter.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Printing\Duplex.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Printing\InvalidPrinterException.Serializable.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Printing\InvalidPrinterException.cs" />
@@ -1178,13 +1175,11 @@
<When Condition="'$(Platform)' == 'monotouch'">
<ItemGroup>
<Compile Include="..\..\..\external\corefx\src\System.ComponentModel.TypeConverter\src\System\Drawing\SizeConverter.cs" />
- <Compile Include="..\..\..\external\corefx\src\System.ComponentModel.TypeConverter\src\System\Drawing\SizeFConverter.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\AssemblyRef.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\BitmapSuffixInSameAssemblyAttribute.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\BitmapSuffixInSatelliteAssemblyAttribute.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Brush.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\ClientUtils.cs" />
- <Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\ColorConverter.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\DashCap.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Design\CategoryNameCollection.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Design\IPropertyValueUIService.cs" />
@@ -1277,7 +1272,6 @@
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Internal\GPRECT.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Internal\GPRECTF.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\NativeMethods.cs" />
- <Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\PointConverter.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Printing\Duplex.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Printing\InvalidPrinterException.Serializable.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Printing\InvalidPrinterException.cs" />
@@ -1389,13 +1383,11 @@
<When Condition="'$(Platform)' == 'monodroid'">
<ItemGroup>
<Compile Include="..\..\..\external\corefx\src\System.ComponentModel.TypeConverter\src\System\Drawing\SizeConverter.cs" />
- <Compile Include="..\..\..\external\corefx\src\System.ComponentModel.TypeConverter\src\System\Drawing\SizeFConverter.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\AssemblyRef.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\BitmapSuffixInSameAssemblyAttribute.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\BitmapSuffixInSatelliteAssemblyAttribute.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Brush.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\ClientUtils.cs" />
- <Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\ColorConverter.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\DashCap.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Design\CategoryNameCollection.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Design\IPropertyValueUIService.cs" />
@@ -1488,7 +1480,6 @@
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Internal\GPRECT.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Internal\GPRECTF.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\NativeMethods.cs" />
- <Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\PointConverter.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Printing\Duplex.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Printing\InvalidPrinterException.Serializable.cs" />
<Compile Include="..\..\..\external\corefx\src\System.Drawing.Common\src\System\Drawing\Printing\InvalidPrinterException.cs" />
diff --git a/mcs/class/System.Drawing/netstandard.sources b/mcs/class/System.Drawing/netstandard.sources
index 3fe5ac835a4..5c8a0cf6769 100644
--- a/mcs/class/System.Drawing/netstandard.sources
+++ b/mcs/class/System.Drawing/netstandard.sources
@@ -14,3 +14,9 @@ System.Drawing/KnownColors.cs
corefx/SR.cs
System.Drawing/SR.cs
../../../external/corefx/src/System.Drawing.Common/src/System/Drawing/SystemColors.cs
+../../../external/corefx/src/System.Drawing.Common/src/System/Drawing/ColorConverter.cs
+../../../external/corefx/src/System.Drawing.Common/src/System/Drawing/PointConverter.cs
+../../../external/corefx/src/System.Drawing.Common/src/System/Drawing/RectangleConverter.cs
+../../../external/corefx/src/System.Drawing.Common/src/System/Drawing/SizeConverter.cs
+../../../external/corefx/src/System.ComponentModel.TypeConverter/src/System/Drawing/SizeFConverter.cs
+