Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to Exclude Directories? #562

Open
CWXDEV opened this issue Aug 10, 2024 · 0 comments
Open

Ability to Exclude Directories? #562

CWXDEV opened this issue Aug 10, 2024 · 0 comments

Comments

@CWXDEV
Copy link

CWXDEV commented Aug 10, 2024

Heya,

I been looking through the Source extensively and it might be a usecase you don't expect but I thought i'd to make sure.

I'm trying to add some instructions to a Assembly-CSharp.dll and it also requires a LocalVariable:

var importer = new Importer(assembly)
var typeToUse = typeof(System.Exception); // Will come from System.Private.CoreLib.
var importedType = importer.Import(typeToUse);
var local = new Local(importedType.ToTypeSig())

then add that to the method, however my issue is that this is resolved to System.Private.CoreLib in my .NET folder, and i want it to resolve to mscorelib in a directory i provide.

Is this currently possible?
Is there a way to "exclude" directories?

Just to add also, im coming from using MonoCecil and they have a way to add and remove Directories in their AssemblyResolver if that helps explain where im coming from.

thanks

@CWXDEV CWXDEV changed the title Ability to Exclude Directories Ability to Exclude Directories? Aug 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant