diff options
author | Marek Safar <marek.safar@gmail.com> | 2017-04-26 00:07:57 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2017-04-27 10:23:30 +0300 |
commit | c0929c34e013bdd78f5ce3cbeeb8c7213fcef80f (patch) | |
tree | a5792607e16dc492c0310da4e05ea7e88af53927 /mcs/class/Facades | |
parent | 5e08742b5c299c0503d11ea44d115c32a6b7c68f (diff) |
[Facades] Move more asseblies to Facades to support implicit reference for _._ like nugets and ignore version mismatch
Diffstat (limited to 'mcs/class/Facades')
17 files changed, 622 insertions, 3 deletions
diff --git a/mcs/class/Facades/System.Runtime.InteropServices.RuntimeInformation/Assembly/AssemblyInfo.cs b/mcs/class/Facades/System.Runtime.InteropServices.RuntimeInformation/Assembly/AssemblyInfo.cs new file mode 100644 index 00000000000..f929501b658 --- /dev/null +++ b/mcs/class/Facades/System.Runtime.InteropServices.RuntimeInformation/Assembly/AssemblyInfo.cs @@ -0,0 +1,46 @@ +// +// AssemblyInfo.cs +// +// Author: +// Alexander Köplinger (alexander.koeplinger@xamarin.com) +// +// (C) 2016 Xamarin, Inc. +// + +// +// 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.Runtime.InteropServices.RuntimeInformation.dll")] +[assembly: AssemblyDescription ("System.Runtime.InteropServices.RuntimeInformation.dll")] +[assembly: AssemblyDefaultAlias ("System.Runtime.InteropServices.RuntimeInformation.dll")] + +[assembly: AssemblyCompany ("Xamarin, Inc.")] +[assembly: AssemblyProduct ("Mono Common Language Infrastructure")] +[assembly: AssemblyCopyright ("Copyright (c) 2016 Xamarin Inc. (http://www.xamarin.com)")] +[assembly: AssemblyVersion ("4.0.0.0")] +[assembly: AssemblyInformationalVersion ("4.0.0.0")] +[assembly: AssemblyFileVersion ("4.0.0.0")] + +[assembly: CLSCompliant (true)] diff --git a/mcs/class/Facades/System.Runtime.InteropServices.RuntimeInformation/Makefile b/mcs/class/Facades/System.Runtime.InteropServices.RuntimeInformation/Makefile new file mode 100644 index 00000000000..c3005ea20a0 --- /dev/null +++ b/mcs/class/Facades/System.Runtime.InteropServices.RuntimeInformation/Makefile @@ -0,0 +1,24 @@ +MCS_BUILD_DIR = ../../../build + +thisdir = class/Facades/System.Runtime.InteropServices.RuntimeInformation +SUBDIRS = +include $(MCS_BUILD_DIR)/rules.make + +LIBRARY_SUBDIR = Facades +LIBRARY_INSTALL_DIR = $(mono_libdir)/mono/$(FRAMEWORK_VERSION)/Facades + +LIBRARY = System.Runtime.InteropServices.RuntimeInformation.dll + +RESX_RESOURCE_STRING = ../../../../external/corefx/src/System.Runtime.InteropServices.RuntimeInformation/src/Resources/Strings.resx + +KEY_FILE = ../../msfinal.pub +SIGN_FLAGS = /delaysign /keyfile:$(KEY_FILE) /nowarn:1616,1699 +LIB_REFS = System +LIB_MCS_FLAGS = $(SIGN_FLAGS) /unsafe + +NO_TEST = yes + +include $(MCS_BUILD_DIR)/library.make + + + diff --git a/mcs/class/Facades/System.Runtime.InteropServices.RuntimeInformation/System.Runtime.InteropServices.RuntimeInformation-net_4_x.csproj b/mcs/class/Facades/System.Runtime.InteropServices.RuntimeInformation/System.Runtime.InteropServices.RuntimeInformation-net_4_x.csproj new file mode 100644 index 00000000000..59f32d42aa0 --- /dev/null +++ b/mcs/class/Facades/System.Runtime.InteropServices.RuntimeInformation/System.Runtime.InteropServices.RuntimeInformation-net_4_x.csproj @@ -0,0 +1,93 @@ +<?xml version="1.0" encoding="utf-8"?>
+<!-- WARNING: this file is autogenerated, don't modify it. Edit the .sources file of the corresponding assembly instead if you want to add/remove C# source files. -->
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>9.0.30729</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{1E1BC1A8-EAD2-496C-A6D6-8AFABD741F56}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <NoWarn>1699</NoWarn>
+ <OutputPath>./../../class/lib/net_4_x</OutputPath>
+ <IntermediateOutputPath>obj-net_4_x</IntermediateOutputPath>
+ <GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
+ <NoStdLib>True</NoStdLib>
+
+ <NoConfig>True</NoConfig>
+
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>
+ </RootNamespace>
+ <AssemblyName>System.Runtime.InteropServices.RuntimeInformation</AssemblyName>
+ <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ </PropertyGroup>
+
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <NoWarn>1699</NoWarn>
+ <Optimize>false</Optimize>
+ <DefineConstants>TRACE;NET_4_0;NET_4_5;NET_4_6;MONO;WIN_PLATFORM;MULTIPLEX_OS</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <NoWarn>1699</NoWarn>
+ <Optimize>true</Optimize>
+ <DefineConstants>NET_4_0;NET_4_5;NET_4_6;MONO;WIN_PLATFORM;MULTIPLEX_OS</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <!-- Set AddAdditionalExplicitAssemblyReferences to false, otherwise if targetting .NET4.0,
+ Microsoft.NETFramework.props will force a dependency on the assembly System.Core. This
+ is a problem to compile the Mono mscorlib.dll -->
+ <PropertyGroup>
+ <AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
+ </PropertyGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <ItemGroup>
+ <Compile Include="..\..\..\external\corefx\src\System.Runtime.InteropServices.RuntimeInformation\src\System\Runtime\InteropServices\RuntimeInformation\Architecture.cs" />
+ <Compile Include="..\..\..\external\corefx\src\System.Runtime.InteropServices.RuntimeInformation\src\System\Runtime\InteropServices\RuntimeInformation\OSPlatform.cs" />
+ <Compile Include="..\..\build\common\Consts.cs" />
+ <Compile Include="Assembly\AssemblyInfo.cs" />
+ <Compile Include="SR.cs" />
+ <Compile Include="System.Runtime.InteropServices\RuntimeInformation.cs" />
</ItemGroup>
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+ <PropertyGroup>
+ <PreBuildEvent Condition=" '$(OS)' != 'Windows_NT' "> + + </PreBuildEvent>
+ <PreBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">
+
+ </PreBuildEvent>
+ <PostBuildEvent Condition=" '$(OS)' != 'Windows_NT' "> + + </PostBuildEvent>
+ <PostBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">
+
+ </PostBuildEvent>
+ </PropertyGroup>
+ <ItemGroup>
+ <ProjectReference Include="../corlib/corlib-net_4_x.csproj">
+ <Project>{2CA6026B-2DC8-4C4C-A12C-1E8234049DB7}</Project>
+ <Name>corlib-net_4_x</Name>
+ </ProjectReference>
+ <ProjectReference Include="../System/System-net_4_x.csproj">
+ <Project>{2762E921-91A8-4C87-91E9-BA628013F753}</Project>
+ <Name>System-net_4_x</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <ItemGroup>
+ <Folder Include="Properties\" />
+ </ItemGroup>
+</Project>
+ diff --git a/mcs/class/Facades/System.Runtime.InteropServices.RuntimeInformation/System.Runtime.InteropServices.RuntimeInformation.dll.sources b/mcs/class/Facades/System.Runtime.InteropServices.RuntimeInformation/System.Runtime.InteropServices.RuntimeInformation.dll.sources new file mode 100644 index 00000000000..2bbe8a7992c --- /dev/null +++ b/mcs/class/Facades/System.Runtime.InteropServices.RuntimeInformation/System.Runtime.InteropServices.RuntimeInformation.dll.sources @@ -0,0 +1,7 @@ +Assembly/AssemblyInfo.cs +System.Runtime.InteropServices/RuntimeInformation.cs + +corefx/SR.cs + +../../../../external/corefx/src/System.Runtime.InteropServices.RuntimeInformation/src/System/Runtime/InteropServices/RuntimeInformation/OSPlatform.cs +../../../../external/corefx/src/System.Runtime.InteropServices.RuntimeInformation/src/System/Runtime/InteropServices/RuntimeInformation/Architecture.cs diff --git a/mcs/class/Facades/System.Runtime.InteropServices.RuntimeInformation/System.Runtime.InteropServices/RuntimeInformation.cs b/mcs/class/Facades/System.Runtime.InteropServices.RuntimeInformation/System.Runtime.InteropServices/RuntimeInformation.cs new file mode 100644 index 00000000000..d775167495e --- /dev/null +++ b/mcs/class/Facades/System.Runtime.InteropServices.RuntimeInformation/System.Runtime.InteropServices/RuntimeInformation.cs @@ -0,0 +1,88 @@ +// +// RuntimeInformation.cs +// +// Author: +// Alexander Köplinger (alexander.koeplinger@xamarin.com) +// +// (C) 2016 Xamarin, Inc. +// + +// +// 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.IO; +using System.Reflection; + +namespace System.Runtime.InteropServices +{ + public static class RuntimeInformation + { + [DllImport ("__Internal")] + extern static string mono_get_runtime_build_info (); + + public static string FrameworkDescription { + get { + return mono_get_runtime_build_info (); + } + } + + public static bool IsOSPlatform (OSPlatform osPlatform) + { + switch (Environment.OSVersion.Platform) { + case PlatformID.Win32NT: + return osPlatform == OSPlatform.Windows; + case PlatformID.Unix: + if (File.Exists ("/usr/lib/libc.dylib")) + return osPlatform == OSPlatform.OSX; + + return osPlatform == OSPlatform.Linux; + default: + return false; + } + } + + public static string OSDescription + { + get + { + return Environment.OSVersion.VersionString; + } + } + + public static Architecture OSArchitecture + { + get + { + // TODO: very barebones implementation, doesn't respect ARM + return Environment.Is64BitOperatingSystem ? Architecture.X64 : Architecture.X86; + } + } + + public static Architecture ProcessArchitecture + { + get + { + // TODO: very barebones implementation, doesn't respect ARM + return Environment.Is64BitProcess ? Architecture.X64 : Architecture.X86; + } + } + } +} diff --git a/mcs/class/Facades/System.Runtime.InteropServices.RuntimeInformation/corefx/SR.cs b/mcs/class/Facades/System.Runtime.InteropServices.RuntimeInformation/corefx/SR.cs new file mode 100644 index 00000000000..ce8c7936c45 --- /dev/null +++ b/mcs/class/Facades/System.Runtime.InteropServices.RuntimeInformation/corefx/SR.cs @@ -0,0 +1,8 @@ +// +// This file was generated by resx2sr tool +// + +partial class SR +{ + public const string Argument_EmptyValue = "Value cannot be empty."; +} diff --git a/mcs/class/Facades/System.Runtime.Loader/AssemblyExtensions.cs b/mcs/class/Facades/System.Runtime.Loader/AssemblyExtensions.cs new file mode 100644 index 00000000000..105024bc125 --- /dev/null +++ b/mcs/class/Facades/System.Runtime.Loader/AssemblyExtensions.cs @@ -0,0 +1,39 @@ +// +// AssemblyExtensions.cs +// +// Authors: +// Marek Safar <marek.safar@gmail.com> +// +// Copyright (C) 2016 Xamarin Inc (http://www.xamarin.com) +// +// 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. +// + + +namespace System.Reflection.Metadata +{ + public static class AssemblyExtensions + { + public static unsafe bool TryGetRawMetadata (this System.Reflection.Assembly assembly, out byte* blob, out int length) + { + throw new NotImplementedException (); + } + } +}
\ No newline at end of file diff --git a/mcs/class/Facades/System.Runtime.Loader/AssemblyInfo.cs b/mcs/class/Facades/System.Runtime.Loader/AssemblyInfo.cs new file mode 100644 index 00000000000..d362786aeea --- /dev/null +++ b/mcs/class/Facades/System.Runtime.Loader/AssemblyInfo.cs @@ -0,0 +1,35 @@ +// +// Copyright (c) 2016 Xamarin Inc. (http://www.xamarin.com) +// +// 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.Runtime.Loader.dll")] +[assembly: AssemblyDescription ("System.Runtime.Loader.dll")] +[assembly: AssemblyDefaultAlias ("System.Runtime.Loader.dll")] +[assembly: AssemblyCompany ("Xamarin, Inc.")] +[assembly: AssemblyProduct ("Mono Common Language Infrastructure")] +[assembly: AssemblyCopyright ("Copyright (c) 2016 Xamarin Inc. (http://www.xamarin.com)")] +[assembly: AssemblyVersion ("4.0.0.0")] +[assembly: AssemblyInformationalVersion ("4.0.0.0")] +[assembly: AssemblyFileVersion ("4.0.0.0")] diff --git a/mcs/class/Facades/System.Runtime.Loader/AssemblyLoadContext.cs b/mcs/class/Facades/System.Runtime.Loader/AssemblyLoadContext.cs new file mode 100644 index 00000000000..1e9b5c8dc6b --- /dev/null +++ b/mcs/class/Facades/System.Runtime.Loader/AssemblyLoadContext.cs @@ -0,0 +1,106 @@ +// +// AssemblyLoadContext.cs +// +// Authors: +// Marek Safar <marek.safar@gmail.com> +// +// Copyright (C) 2016 Xamarin Inc (http://www.xamarin.com) +// +// 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. +// + +namespace System.Runtime.Loader +{ + // + // System.Runtime.Loader netstandard typeforwarders dependency + // + public abstract class AssemblyLoadContext + { + protected AssemblyLoadContext () + { + } + + public static System.Runtime.Loader.AssemblyLoadContext Default { + get { + throw new NotImplementedException (); + } + } + + public static System.Reflection.AssemblyName GetAssemblyName (string assemblyPath) + { + throw new NotImplementedException (); + } + + public static AssemblyLoadContext GetLoadContext (System.Reflection.Assembly assembly) + { + throw new NotImplementedException (); + } + + protected abstract System.Reflection.Assembly Load (System.Reflection.AssemblyName assemblyName); + + public System.Reflection.Assembly LoadFromAssemblyName(System.Reflection.AssemblyName assemblyName) + { + throw new NotImplementedException (); + } + + public System.Reflection.Assembly LoadFromAssemblyPath (string assemblyPath) + { + throw new NotImplementedException (); + } + + public System.Reflection.Assembly LoadFromNativeImagePath (string nativeImagePath, string assemblyPath) + { + throw new NotImplementedException (); + } + + public System.Reflection.Assembly LoadFromStream (System.IO.Stream assembly) + { + throw new NotImplementedException (); + } + + public System.Reflection.Assembly LoadFromStream (System.IO.Stream assembly, System.IO.Stream assemblySymbols) + { + throw new NotImplementedException (); + } + + protected IntPtr LoadUnmanagedDllFromPath (string unmanagedDllPath) + { + throw new NotImplementedException (); + } + + protected virtual IntPtr LoadUnmanagedDll (string unmanagedDllName) + { + throw new NotImplementedException (); + } + + public void SetProfileOptimizationRoot (string directoryPath) + { + } + + public void StartProfileOptimization (string profile) + { + } + +#pragma warning disable 67 + public event Func<AssemblyLoadContext, System.Reflection.AssemblyName, System.Reflection.Assembly> Resolving; + public event Action<AssemblyLoadContext> Unloading; +#pragma warning restore + } +} diff --git a/mcs/class/Facades/System.Runtime.Loader/Makefile b/mcs/class/Facades/System.Runtime.Loader/Makefile new file mode 100644 index 00000000000..46af65f9f1e --- /dev/null +++ b/mcs/class/Facades/System.Runtime.Loader/Makefile @@ -0,0 +1,21 @@ +MCS_BUILD_DIR = ../../../build + +thisdir = class/Facades/System.Runtime.Loader +SUBDIRS = +include $(MCS_BUILD_DIR)/rules.make + +LIBRARY_SUBDIR = Facades +LIBRARY_INSTALL_DIR = $(mono_libdir)/mono/$(FRAMEWORK_VERSION)/Facades + +LIBRARY = System.Runtime.Loader.dll + +KEY_FILE = ../../msfinal.pub +SIGN_FLAGS = /delaysign /keyfile:$(KEY_FILE) /nowarn:1616,1699 +LIB_REFS = System +LIB_MCS_FLAGS = $(SIGN_FLAGS) /unsafe + +NO_TEST = yes + +include $(MCS_BUILD_DIR)/library.make + + diff --git a/mcs/class/Facades/System.Runtime.Loader/System.Runtime.Loader.dll.sources b/mcs/class/Facades/System.Runtime.Loader/System.Runtime.Loader.dll.sources new file mode 100644 index 00000000000..adf4e593e33 --- /dev/null +++ b/mcs/class/Facades/System.Runtime.Loader/System.Runtime.Loader.dll.sources @@ -0,0 +1,3 @@ +AssemblyInfo.cs +AssemblyExtensions.cs +AssemblyLoadContext.cs diff --git a/mcs/class/Facades/System.Xml.XPath.XmlDocument/Assembly/AssemblyInfo.cs b/mcs/class/Facades/System.Xml.XPath.XmlDocument/Assembly/AssemblyInfo.cs new file mode 100644 index 00000000000..8bfb4e9aadb --- /dev/null +++ b/mcs/class/Facades/System.Xml.XPath.XmlDocument/Assembly/AssemblyInfo.cs @@ -0,0 +1,44 @@ +// +// AssemblyInfo.cs +// +// Author: +// Alexander Köplinger (alexander.koeplinger@xamarin.com) +// +// (C) 2016 Xamarin, Inc. +// + +// +// 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.Xml.XPath.XmlDocument.dll")] +[assembly: AssemblyDescription ("System.Xml.XPath.XmlDocument.dll")] +[assembly: AssemblyDefaultAlias ("System.Xml.XPath.XmlDocument.dll")] +[assembly: AssemblyCompany ("Xamarin, Inc.")] +[assembly: AssemblyProduct ("Mono Common Language Infrastructure")] +[assembly: AssemblyCopyright ("Copyright (c) 2016 Xamarin Inc. (http://www.xamarin.com)")] +[assembly: AssemblyVersion ("4.0.2.0")] +[assembly: AssemblyInformationalVersion ("4.0.0.0")] +[assembly: AssemblyFileVersion ("4.0.0.0")] diff --git a/mcs/class/Facades/System.Xml.XPath.XmlDocument/Makefile b/mcs/class/Facades/System.Xml.XPath.XmlDocument/Makefile new file mode 100644 index 00000000000..38259e63b52 --- /dev/null +++ b/mcs/class/Facades/System.Xml.XPath.XmlDocument/Makefile @@ -0,0 +1,19 @@ +MCS_BUILD_DIR = ../../../build + +thisdir = class/Facades/System.Xml.XPath.XmlDocument +SUBDIRS = +include $(MCS_BUILD_DIR)/rules.make + +LIBRARY_SUBDIR = Facades +LIBRARY_INSTALL_DIR = $(mono_libdir)/mono/$(FRAMEWORK_VERSION)/Facades + +LIBRARY = System.Xml.XPath.XmlDocument.dll + +KEY_FILE = ../../msfinal.pub +SIGN_FLAGS = /delaysign /keyfile:$(KEY_FILE) /nowarn:1616,1699 +LIB_REFS = System System.Xml +LIB_MCS_FLAGS = $(SIGN_FLAGS) + +NO_TEST = yes + +include $(MCS_BUILD_DIR)/library.make diff --git a/mcs/class/Facades/System.Xml.XPath.XmlDocument/System.Xml.XPath.XmlDocument.dll.sources b/mcs/class/Facades/System.Xml.XPath.XmlDocument/System.Xml.XPath.XmlDocument.dll.sources new file mode 100644 index 00000000000..583dc25e5ef --- /dev/null +++ b/mcs/class/Facades/System.Xml.XPath.XmlDocument/System.Xml.XPath.XmlDocument.dll.sources @@ -0,0 +1,3 @@ +../../../build/common/MonoTODOAttribute.cs +Assembly/AssemblyInfo.cs +System.Xml/XmlDocumentXPathExtensions.cs diff --git a/mcs/class/Facades/System.Xml.XPath.XmlDocument/System.Xml/XmlDocumentXPathExtensions.cs b/mcs/class/Facades/System.Xml.XPath.XmlDocument/System.Xml/XmlDocumentXPathExtensions.cs new file mode 100644 index 00000000000..ee4968baf6a --- /dev/null +++ b/mcs/class/Facades/System.Xml.XPath.XmlDocument/System.Xml/XmlDocumentXPathExtensions.cs @@ -0,0 +1,83 @@ +// +// XmlDocumentXPathExtensions.cs +// +// Author: +// Alexander Köplinger (alexander.koeplinger@xamarin.com) +// +// (C) 2016 Xamarin, Inc. +// + +// +// 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. +// + +namespace System.Xml +{ + public static class XmlDocumentXPathExtensions + { + [MonoTODO] + public static XmlNodeList SelectNodes (this XmlNode node, string xpath) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public static XmlNodeList SelectNodes (this XmlNode node, string xpath, XmlNamespaceManager nsmgr) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public static XmlNode SelectSingleNode (this XmlNode node, string xpath) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public static XmlNode SelectSingleNode (this XmlNode node, string xpath, XmlNamespaceManager nsmgr) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public static XPath.XPathNavigator CreateNavigator (this XmlNode node) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public static XPath.IXPathNavigable ToXPathNavigable (this XmlNode node) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public static XPath.XPathNavigator CreateNavigator (this XmlDocument document) + { + throw new NotImplementedException (); + } + + [MonoTODO] + public static XPath.XPathNavigator CreateNavigator (this XmlDocument document, XmlNode node) + { + throw new NotImplementedException (); + } + } +} diff --git a/mcs/class/Facades/netstandard/Makefile b/mcs/class/Facades/netstandard/Makefile index d004563039c..fd6e24e65bc 100644 --- a/mcs/class/Facades/netstandard/Makefile +++ b/mcs/class/Facades/netstandard/Makefile @@ -13,7 +13,7 @@ KEY_FILE = ../../Open.snk LIBRARY_SNK = $(KEY_FILE) SIGN_FLAGS = /delaysign /keyfile:$(KEY_FILE) /nowarn:1616,1699 /nowarn:618 LIB_REFS = System System.Xml System.Xml.Linq System.Runtime.Serialization System.Core System.Numerics System.Numerics.Vectors System.Net.Http System.Transactions \ -System.IO.Compression System.Data System.ComponentModel.Composition System.IO.Compression.FileSystem System.Runtime.InteropServices.RuntimeInformation \ +System.IO.Compression System.Data System.ComponentModel.Composition System.IO.Compression.FileSystem Facades/System.Runtime.InteropServices.RuntimeInformation \ Facades/System.Security.Cryptography.Algorithms Facades/System.Globalization.Extensions Facades/System.Data.Common \ Facades/System.Diagnostics.StackTrace Facades/System.Runtime.Serialization.Xml Facades/System.Runtime.Serialization.Primitives \ Facades/System.Security.SecureString Facades/System.Threading.Overlapped Facades/System.Xml.XPath.XDocument diff --git a/mcs/class/Facades/subdirs.make b/mcs/class/Facades/subdirs.make index 85980cfeef3..800e22b891b 100644 --- a/mcs/class/Facades/subdirs.make +++ b/mcs/class/Facades/subdirs.make @@ -32,7 +32,7 @@ System.Security.Cryptography.ProtectedData System.ServiceProcess.ServiceControll # common_SUBDIRS dependencies common_DEPS_SUBDIRS = System.Security.Cryptography.X509Certificates System.ServiceModel.Primitives System.Runtime.Serialization.Primitives \ System.Runtime.Serialization.Xml System.Security.Cryptography.Algorithms System.Globalization.Extensions System.Data.Common \ -System.Diagnostics.StackTrace System.Security.SecureString System.Threading.Overlapped System.Xml.XPath.XDocument +System.Diagnostics.StackTrace System.Security.SecureString System.Threading.Overlapped System.Xml.XPath.XDocument System.Runtime.InteropServices.RuntimeInformation netstandard_drawing_SUBDIRS = System.Drawing.Primitives netstandard @@ -84,7 +84,7 @@ orbis_SUBDIRS = $(common_DEPS_SUBDIRS) $(netstandard_drawing_SUBDIRS) $(mobile_o orbis_PARALLEL_SUBDIRS = $(common_SUBDIRS) $(mobile_only_SUBDIRS) mobile_only_SUBDIRS = System.Net.Ping System.Runtime.Serialization.Formatters System.Security.Cryptography.Csp System.Security.Cryptography.Pkcs \ -System.Security.Cryptography.Cng +System.Security.Cryptography.Cng System.Runtime.Loader System.Xml.XPath.XmlDocument mobile_only_DEPS_SUBDIRS = System.Security.Cryptography.OpenSsl |