From bd50f070bd693f64b2ceede91f9470ba0deb0aa1 Mon Sep 17 00:00:00 2001 From: Marek Safar Date: Thu, 9 Aug 2018 00:01:18 +0200 Subject: [Facades] Adds System.Threading.Tasks.Extensions for mobile profiles (#9968) * [Facades] Adds System.Threading.Tasks.Extensions for mobile profile * Bump API snapshot submodule * [csproj] Update project files --- .../AssemblyInfo.cs | 36 +++++++ ...acades_System.Threading.Tasks.Extensions.csproj | 110 +++++++++++++++++++++ .../System.Threading.Tasks.Extensions/Makefile | 24 +++++ .../System.Threading.Tasks.Extensions.dll.sources | 2 + .../TypeForwarders.cs | 39 ++++++++ mcs/class/Facades/subdirs.make | 2 +- 6 files changed, 212 insertions(+), 1 deletion(-) create mode 100644 mcs/class/Facades/System.Threading.Tasks.Extensions/AssemblyInfo.cs create mode 100644 mcs/class/Facades/System.Threading.Tasks.Extensions/Facades_System.Threading.Tasks.Extensions.csproj create mode 100644 mcs/class/Facades/System.Threading.Tasks.Extensions/Makefile create mode 100644 mcs/class/Facades/System.Threading.Tasks.Extensions/System.Threading.Tasks.Extensions.dll.sources create mode 100644 mcs/class/Facades/System.Threading.Tasks.Extensions/TypeForwarders.cs (limited to 'mcs/class') diff --git a/mcs/class/Facades/System.Threading.Tasks.Extensions/AssemblyInfo.cs b/mcs/class/Facades/System.Threading.Tasks.Extensions/AssemblyInfo.cs new file mode 100644 index 00000000000..81d888cec0c --- /dev/null +++ b/mcs/class/Facades/System.Threading.Tasks.Extensions/AssemblyInfo.cs @@ -0,0 +1,36 @@ +// +// Copyright (C) 2018 Microsoft Corporation +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// + +using System; +using System.Reflection; +using System.Runtime.CompilerServices; + +[assembly: AssemblyTitle ("System.Threading.Tasks.Extensions")] +[assembly: AssemblyDescription ("System.Threading.Tasks.Extensions")] +[assembly: AssemblyDefaultAlias ("System.Threading.Tasks.Extensions")] +[assembly: AssemblyCompany ("Mono development team")] +[assembly: AssemblyProduct ("Mono Common Language Infrastructure")] +[assembly: AssemblyCopyright ("(c) Various Mono authors")] +[assembly: AssemblyVersion ("4.2.0.0")] +[assembly: AssemblyInformationalVersion ("4.0.0.0")] +[assembly: AssemblyFileVersion ("4.0.0.0")] diff --git a/mcs/class/Facades/System.Threading.Tasks.Extensions/Facades_System.Threading.Tasks.Extensions.csproj b/mcs/class/Facades/System.Threading.Tasks.Extensions/Facades_System.Threading.Tasks.Extensions.csproj new file mode 100644 index 00000000000..c0cbfd950f3 --- /dev/null +++ b/mcs/class/Facades/System.Threading.Tasks.Extensions/Facades_System.Threading.Tasks.Extensions.csproj @@ -0,0 +1,110 @@ + + + + + Debug + net_4_x + {872B3426-C074-4EB6-BFEB-9C42A883E23A} + Library + 1699,1616,1699 + latest + win32 + darwin + linux + false + True + True + System.Threading.Tasks.Extensions + v2.1 + true + true + ../../Open.snk + + + + false + + + ./../../../class/lib/monodroid/Facades + ./../../../class/obj/$(AssemblyName)-Facades + NET_1_1;NET_2_0;NET_2_1;NET_3_5;NET_4_0;NET_4_5;MONO;MOBILE;MOBILE_LEGACY;MOBILE_DYNAMIC;MONODROID;ANDROID + + + ./../../../class/lib/monotouch/Facades + ./../../../class/obj/$(AssemblyName)-Facades + NET_1_1;NET_2_0;NET_2_1;NET_3_5;NET_4_0;NET_4_5;MOBILE;MOBILE_LEGACY;MONO;MONOTOUCH;DISABLE_REMOTING;DISABLE_COM;FEATURE_INTERCEPTABLE_THREADPOOL_CALLBACK;FULL_AOT_RUNTIME + + + ./../../../class/lib/monotouch_watch/Facades + ./../../../class/obj/$(AssemblyName)-Facades + NET_1_1;NET_2_0;NET_2_1;NET_3_5;NET_4_0;NET_4_5;MOBILE;MOBILE_LEGACY;MONO;MONOTOUCH;DISABLE_REMOTING;DISABLE_COM;FEATURE_INTERCEPTABLE_THREADPOOL_CALLBACK;FULL_AOT_RUNTIME;FEATURE_NO_BSD_SOCKETS;MONOTOUCH_WATCH + + + ./../../../class/lib/monotouch_tv/Facades + ./../../../class/obj/$(AssemblyName)-Facades + NET_1_1;NET_2_0;NET_2_1;NET_3_5;NET_4_0;NET_4_5;MOBILE;MOBILE_LEGACY;MONO;MONOTOUCH;DISABLE_REMOTING;DISABLE_COM;FEATURE_INTERCEPTABLE_THREADPOOL_CALLBACK;FULL_AOT_RUNTIME;MONOTOUCH_TV + + + ./../../../class/lib/testing_aot_full/Facades + ./../../../class/obj/$(AssemblyName)-Facades + NET_1_1;NET_2_0;NET_2_1;NET_3_5;NET_4_0;NET_4_5;MONO;MOBILE;MOBILE_LEGACY;FULL_AOT_DESKTOP;FULL_AOT_RUNTIME;DISABLE_REMOTING;DISABLE_COM + + + ./../../../class/lib/winaot/Facades + ./../../../class/obj/$(AssemblyName)-Facades + NET_1_1;NET_2_0;NET_2_1;NET_3_5;NET_4_0;NET_4_5;MONO;MOBILE;MOBILE_LEGACY;FULL_AOT_DESKTOP;FULL_AOT_RUNTIME;DISABLE_REMOTING;DISABLE_COM;WIN_PLATFORM + + + ./../../../class/lib/xammac/Facades + ./../../../class/obj/$(AssemblyName)-Facades + NET_1_1;NET_2_0;NET_2_1;NET_3_5;NET_4_0;NET_4_5;MONO;MOBILE;MOBILE_DYNAMIC;XAMMAC;FEATURE_INTERCEPTABLE_THREADPOOL_CALLBACK;XAMARIN_MODERN + + + ./../../../class/lib/orbis/Facades + ./../../../class/obj/$(AssemblyName)-Facades + NET_1_1;NET_2_0;NET_2_1;NET_3_5;NET_4_0;NET_4_5;MONO;MOBILE;MOBILE_LEGACY;FULL_AOT_DESKTOP;FULL_AOT_RUNTIME;ORBIS;DISABLE_REMOTING;DISABLE_COM + + + ./../../../class/lib/unreal/Facades + ./../../../class/obj/$(AssemblyName)-Facades + NET_1_1;NET_2_0;NET_2_1;MOBILE;MOBILE_DYNAMIC;NET_3_5;NET_4_0;NET_4_5;MONO + + + ./../../../class/lib/wasm/Facades + ./../../../class/obj/$(AssemblyName)-Facades + NET_1_1;NET_2_0;NET_2_1;NET_3_5;NET_4_0;NET_4_5;MONO;MOBILE;MOBILE_LEGACY;FULL_AOT_DESKTOP;FULL_AOT_RUNTIME;WASM;DISABLE_REMOTING;DISABLE_COM;FEATURE_NO_BSD_SOCKETS + + + + true + full + false + + TRACE;$(DefineConstants) + + + pdbonly + true + + + + + + + + + + + + + + + ..\lib\testing_aot_full\nunitlite.dll + False + + + + + \ No newline at end of file diff --git a/mcs/class/Facades/System.Threading.Tasks.Extensions/Makefile b/mcs/class/Facades/System.Threading.Tasks.Extensions/Makefile new file mode 100644 index 00000000000..31446affab9 --- /dev/null +++ b/mcs/class/Facades/System.Threading.Tasks.Extensions/Makefile @@ -0,0 +1,24 @@ +MCS_BUILD_DIR = ../../../build + +thisdir = class/Facades/System.Threading.Tasks.Extensions +SUBDIRS = +include $(MCS_BUILD_DIR)/rules.make + +LIBRARY_SUBDIR = Facades +LIBRARY_INSTALL_DIR = $(mono_libdir)/mono/$(FRAMEWORK_VERSION)/Facades + +LIBRARY = System.Threading.Tasks.Extensions.dll + +KEYFILE = ../../Open.snk +LIBRARY_SNK = $(KEYFILE) +SIGN_FLAGS = /delaysign /nowarn:1616,1699 +LIB_REFS = +LIB_MCS_FLAGS = $(SIGN_FLAGS) + +PLATFORM_DEBUG_FLAGS = + +NO_TEST = yes + +include $(MCS_BUILD_DIR)/library.make + + diff --git a/mcs/class/Facades/System.Threading.Tasks.Extensions/System.Threading.Tasks.Extensions.dll.sources b/mcs/class/Facades/System.Threading.Tasks.Extensions/System.Threading.Tasks.Extensions.dll.sources new file mode 100644 index 00000000000..5ca8e405d30 --- /dev/null +++ b/mcs/class/Facades/System.Threading.Tasks.Extensions/System.Threading.Tasks.Extensions.dll.sources @@ -0,0 +1,2 @@ +AssemblyInfo.cs +TypeForwarders.cs \ No newline at end of file diff --git a/mcs/class/Facades/System.Threading.Tasks.Extensions/TypeForwarders.cs b/mcs/class/Facades/System.Threading.Tasks.Extensions/TypeForwarders.cs new file mode 100644 index 00000000000..446f4da1ddf --- /dev/null +++ b/mcs/class/Facades/System.Threading.Tasks.Extensions/TypeForwarders.cs @@ -0,0 +1,39 @@ +// +// Copyright (C) 2018 Microsoft Corporation +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// + +[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Runtime.CompilerServices.AsyncMethodBuilderAttribute))] +[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Runtime.CompilerServices.AsyncValueTaskMethodBuilder))] +[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Runtime.CompilerServices.AsyncValueTaskMethodBuilder<>))] +[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable))] +[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable<>))] +[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Runtime.CompilerServices.ValueTaskAwaiter))] +[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Runtime.CompilerServices.ValueTaskAwaiter<>))] + +[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Threading.Tasks.ValueTask))] +[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Threading.Tasks.ValueTask<>))] + +[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Threading.Tasks.Sources.IValueTaskSource))] +[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Threading.Tasks.Sources.IValueTaskSource<>))] +[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Threading.Tasks.Sources.ValueTaskSourceOnCompletedFlags))] +[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Threading.Tasks.Sources.ValueTaskSourceStatus))] + diff --git a/mcs/class/Facades/subdirs.make b/mcs/class/Facades/subdirs.make index cd645727008..6fbe74daa20 100644 --- a/mcs/class/Facades/subdirs.make +++ b/mcs/class/Facades/subdirs.make @@ -90,7 +90,7 @@ unreal_PARALLEL_SUBDIRS = $(common_SUBDIRS) $(mobile_only_SUBDIRS) wasm_SUBDIRS = $(common_DEPS_SUBDIRS) $(netstandard_drawing_SUBDIRS) $(mobile_only_DEPS_SUBDIRS) wasm_PARALLEL_SUBDIRS = $(common_SUBDIRS) $(mobile_only_SUBDIRS) -mobile_only_SUBDIRS = System.Security.Cryptography.Pkcs \ +mobile_only_SUBDIRS = System.Security.Cryptography.Pkcs System.Threading.Tasks.Extensions \ System.Security.Cryptography.Cng System.Runtime.Loader System.Xml.XPath.XmlDocument System.Reflection.DispatchProxy System.Memory System.Drawing.Common mobile_only_DEPS_SUBDIRS = System.Security.Cryptography.OpenSsl -- cgit v1.2.3