Skip to content

Reset Imports #4

@smiket

Description

@smiket

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions