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

Reset Imports #4

Open
smiket opened this issue Jun 6, 2021 · 0 comments
Open

Reset Imports #4

smiket opened this issue Jun 6, 2021 · 0 comments

Comments

@smiket
Copy link

smiket commented Jun 6, 2021

Hi Toni,

Very nice code, thank you for publishing this! I ran into an issue while migrating a large codebase, where less imports were not working correctly. It happened when several files were bundled from different locations - many of them importing the same 'common' files. In the end, I resolved the issue by adding this call, just above the line referenced below.

engine.ResetImports();

engine.CurrentDirectory = Path.GetDirectoryName(file.PhysicalPath);

Just wanted to mention that, and once again thank you for the library :)

Steve

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