-
-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed #127. 'Failed to resolve assembly...' when .NET Standard
- Loading branch information
Showing
3 changed files
with
32 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
//# Author of original code ([Decompiled] MIT-License): Copyright (c) 2009-2015 Robert Giesecke | ||
//# Use Readme & LICENSE files for details. | ||
|
||
//# Modifications: Copyright (c) 2016-2019 Denis Kuzmin < [email protected] > GitHub/3F | ||
//$ Distributed under the MIT License (MIT) | ||
|
||
using Mono.Cecil; | ||
|
||
namespace RGiesecke.DllExport | ||
{ | ||
/// <summary> | ||
/// Implements disabled assembly resolving. | ||
/// Related issue: https://github.com/3F/DllExport/issues/127 | ||
/// | ||
/// For issue127 we can also use DefaultAssemblyResolver.AddSearchDirectory(), | ||
/// But we don't actually need any assembly resolving in our case at all. | ||
/// </summary> | ||
internal sealed class DisabledAssemblyResolver: DefaultAssemblyResolver | ||
{ | ||
public override AssemblyDefinition Resolve(AssemblyNameReference name) | ||
{ | ||
return null; // It will be considered as `resolved = false` due to internal ResolutionException processing in cecil. | ||
} | ||
} | ||
} |
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