forked from dotnet/runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mark AssemblyDependencyResolver as unsupported on Browser and mobile (d…
…otnet#54601) * Mark AssemblyDependencyResolver as unsupported on Browser and mobile * Apply AlekseyK's workaround to fix android CI builds * Add an annotation for maccatalyst
- Loading branch information
1 parent
4aeef0d
commit 5306472
Showing
4 changed files
with
52 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
...vate.CoreLib/src/System/Runtime/Loader/AssemblyDependencyResolver.PlatformNotSupported.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
using System.Reflection; | ||
using System.Runtime.Versioning; | ||
|
||
namespace System.Runtime.Loader | ||
{ | ||
[UnsupportedOSPlatform("android")] | ||
[UnsupportedOSPlatform("browser")] | ||
[UnsupportedOSPlatform("ios")] | ||
[UnsupportedOSPlatform("maccatalyst")] | ||
[UnsupportedOSPlatform("tvos")] | ||
public sealed class AssemblyDependencyResolver | ||
{ | ||
public AssemblyDependencyResolver(string componentAssemblyPath) | ||
{ | ||
throw new PlatformNotSupportedException(); | ||
} | ||
|
||
public string? ResolveAssemblyToPath(AssemblyName assemblyName) | ||
{ | ||
throw new PlatformNotSupportedException(); | ||
} | ||
|
||
public string? ResolveUnmanagedDllToPath(string unmanagedDllName) | ||
{ | ||
throw new PlatformNotSupportedException(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters