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

Support UseAlternativeLoadPath for native DLL lookup #207

Open
hotchkj opened this issue Jun 21, 2021 · 0 comments
Open

Support UseAlternativeLoadPath for native DLL lookup #207

hotchkj opened this issue Jun 21, 2021 · 0 comments

Comments

@hotchkj
Copy link

hotchkj commented Jun 21, 2021

Some build tooling has more esoteric loading of dependencies (Cake for example), and requires custom path lookup, particularly when dealing with native dependencies, as this converter has on Microsoft.DiaSymReader.Native.

SymUnmanagedWriterFactory.CreateWriter supports this via SymUnmanagedWriterCreationOptions.UseAlternativeLoadPath, but the current converter code doesn't offer this:

using (var pdbWriter = SymUnmanagedWriterFactory.CreateWriter(new SymMetadataProvider(peReader.GetMetadataReader()), SymUnmanagedWriterCreationOptions.Deterministic))

Currently I have to clone the code to add this option to get the native DLL loading working. It would be extremely useful to have this available, either just included or as an option.

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