-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
- Loading branch information
1 parent
f39d544
commit 610861e
Showing
4 changed files
with
48 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
30 changes: 30 additions & 0 deletions
30
...ystem.Private.CoreLib/src/System/Runtime/Loader/AssemblyDependencyResolver.Unsupported.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,30 @@ | ||
// 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("browser")] | ||
[UnsupportedOSPlatform("ios")] | ||
[UnsupportedOSPlatform("tvos")] | ||
[UnsupportedOSPlatform("android")] | ||
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