diff options
Diffstat (limited to 'src/System.Runtime.Extensions')
3 files changed, 1 insertions, 33 deletions
diff --git a/src/System.Runtime.Extensions/src/ApiCompatBaseline.uapaot.txt b/src/System.Runtime.Extensions/src/ApiCompatBaseline.uapaot.txt index aaaffe744f..26243e41df 100644 --- a/src/System.Runtime.Extensions/src/ApiCompatBaseline.uapaot.txt +++ b/src/System.Runtime.Extensions/src/ApiCompatBaseline.uapaot.txt @@ -1,26 +1,4 @@ Compat issues with assembly System.Runtime.Extensions: -MembersMustExist : Member 'System.AppDomain.add_AssemblyLoad(System.AssemblyLoadEventHandler)' does not exist in the implementation but it does exist in the contract. -MembersMustExist : Member 'System.AppDomain.add_AssemblyResolve(System.ResolveEventHandler)' does not exist in the implementation but it does exist in the contract. -MembersMustExist : Member 'System.AppDomain.add_FirstChanceException(System.EventHandler<System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs>)' does not exist in the implementation but it does exist in the contract. -MembersMustExist : Member 'System.AppDomain.add_ProcessExit(System.EventHandler)' does not exist in the implementation but it does exist in the contract. -MembersMustExist : Member 'System.AppDomain.add_ReflectionOnlyAssemblyResolve(System.ResolveEventHandler)' does not exist in the implementation but it does exist in the contract. -MembersMustExist : Member 'System.AppDomain.add_ResourceResolve(System.ResolveEventHandler)' does not exist in the implementation but it does exist in the contract. -MembersMustExist : Member 'System.AppDomain.add_TypeResolve(System.ResolveEventHandler)' does not exist in the implementation but it does exist in the contract. -MembersMustExist : Member 'System.AppDomain.add_UnhandledException(System.UnhandledExceptionEventHandler)' does not exist in the implementation but it does exist in the contract. -MembersMustExist : Member 'System.AppDomain.BaseDirectory.get()' does not exist in the implementation but it does exist in the contract. -MembersMustExist : Member 'System.AppDomain.GetAssemblies()' does not exist in the implementation but it does exist in the contract. -MembersMustExist : Member 'System.AppDomain.GetData(System.String)' does not exist in the implementation but it does exist in the contract. -MembersMustExist : Member 'System.AppDomain.IsCompatibilitySwitchSet(System.String)' does not exist in the implementation but it does exist in the contract. -MembersMustExist : Member 'System.AppDomain.RelativeSearchPath.get()' does not exist in the implementation but it does exist in the contract. -MembersMustExist : Member 'System.AppDomain.remove_AssemblyLoad(System.AssemblyLoadEventHandler)' does not exist in the implementation but it does exist in the contract. -MembersMustExist : Member 'System.AppDomain.remove_AssemblyResolve(System.ResolveEventHandler)' does not exist in the implementation but it does exist in the contract. -MembersMustExist : Member 'System.AppDomain.remove_FirstChanceException(System.EventHandler<System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs>)' does not exist in the implementation but it does exist in the contract. -MembersMustExist : Member 'System.AppDomain.remove_ProcessExit(System.EventHandler)' does not exist in the implementation but it does exist in the contract. -MembersMustExist : Member 'System.AppDomain.remove_ReflectionOnlyAssemblyResolve(System.ResolveEventHandler)' does not exist in the implementation but it does exist in the contract. -MembersMustExist : Member 'System.AppDomain.remove_ResourceResolve(System.ResolveEventHandler)' does not exist in the implementation but it does exist in the contract. -MembersMustExist : Member 'System.AppDomain.remove_TypeResolve(System.ResolveEventHandler)' does not exist in the implementation but it does exist in the contract. -MembersMustExist : Member 'System.AppDomain.remove_UnhandledException(System.UnhandledExceptionEventHandler)' does not exist in the implementation but it does exist in the contract. -MembersMustExist : Member 'System.AppDomain.SetData(System.String, System.Object)' does not exist in the implementation but it does exist in the contract. MembersMustExist : Member 'System.Math.Clamp(System.Byte, System.Byte, System.Byte)' does not exist in the implementation but it does exist in the contract. MembersMustExist : Member 'System.Math.Clamp(System.Decimal, System.Decimal, System.Decimal)' does not exist in the implementation but it does exist in the contract. MembersMustExist : Member 'System.Math.Clamp(System.Double, System.Double, System.Double)' does not exist in the implementation but it does exist in the contract. diff --git a/src/System.Runtime.Extensions/src/System.Runtime.Extensions.csproj b/src/System.Runtime.Extensions/src/System.Runtime.Extensions.csproj index 3a20dc54ff..baf5db7294 100644 --- a/src/System.Runtime.Extensions/src/System.Runtime.Extensions.csproj +++ b/src/System.Runtime.Extensions/src/System.Runtime.Extensions.csproj @@ -8,7 +8,6 @@ <AllowUnsafeBlocks>true</AllowUnsafeBlocks> <IsPartialFacadeAssembly>true</IsPartialFacadeAssembly> <GenFacadesIgnoreMissingTypes Condition="'$(TargetGroup)'=='uapaot'">true</GenFacadesIgnoreMissingTypes> - <DefineConstants Condition="'$(TargetGroup)' == 'uapaot'">$(DefineConstants);uapaot</DefineConstants> </PropertyGroup> <!-- Default configurations to help VS understand the configurations --> <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netcoreapp-Unix-Debug|AnyCPU'" /> diff --git a/src/System.Runtime.Extensions/src/System/AppDomain.cs b/src/System.Runtime.Extensions/src/System/AppDomain.cs index 326e297984..28cde338a8 100644 --- a/src/System.Runtime.Extensions/src/System/AppDomain.cs +++ b/src/System.Runtime.Extensions/src/System/AppDomain.cs @@ -5,11 +5,10 @@ #pragma warning disable CS0067 // events are declared but not used using System; +using System.Collections.Generic; using System.Reflection; using System.Runtime.ExceptionServices; -#if !uapaot using System.Runtime.Loader; -#endif using System.IO; using System.Security.Principal; @@ -25,7 +24,6 @@ namespace System public static AppDomain CurrentDomain => s_domain; -#if !uapaot public string BaseDirectory => AppContext.BaseDirectory; public string RelativeSearchPath => null; @@ -35,7 +33,6 @@ namespace System add { AppContext.UnhandledException += value; } remove { AppContext.UnhandledException -= value; } } -#endif public string DynamicDirectory => null; @@ -59,7 +56,6 @@ namespace System public event EventHandler DomainUnload; -#if !uapaot public event EventHandler<FirstChanceExceptionEventArgs> FirstChanceException { add { AppContext.FirstChanceException += value; } @@ -71,7 +67,6 @@ namespace System add { AppContext.ProcessExit += value; } remove { AppContext.ProcessExit -= value; } } -#endif public string ApplyPolicy(string assemblyName) { @@ -150,7 +145,6 @@ namespace System public int ExecuteAssemblyByName(string assemblyName, params string[] args) => ExecuteAssembly(Assembly.Load(assemblyName), args); -#if !uapaot public object GetData(string name) => AppContext.GetData(name); public void SetData(string name, object data) => AppContext.SetData(name, data); @@ -160,7 +154,6 @@ namespace System bool result; return AppContext.TryGetSwitch(value, out result) ? result : default(bool?); } -#endif public bool IsDefaultAppDomain() => true; @@ -234,7 +227,6 @@ namespace System [ObsoleteAttribute("AppDomain.SetShadowCopyPath has been deprecated. Please investigate the use of AppDomainSetup.ShadowCopyDirectories instead. http://go.microsoft.com/fwlink/?linkid=14202")] public void SetShadowCopyPath(string path) { } -#if !uapaot public Assembly[] GetAssemblies() => AssemblyLoadContext.GetLoadedAssemblies(); public event AssemblyLoadEventHandler AssemblyLoad @@ -262,7 +254,6 @@ namespace System add { AssemblyLoadContext.ResourceResolve += value; } remove { AssemblyLoadContext.ResourceResolve -= value; } } -#endif public void SetPrincipalPolicy(PrincipalPolicy policy) { } |