Skip to content

GetExeDir() returns null #70

@xvfaithvx

Description

@xvfaithvx

When attempting to use FaceAISharpBundle in a self-contained deployment, I am receiving a null exception due to this line:

   private static string GetExeDir() => Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)!;

I'd like to know if this might be updated to :
private static string GetExeDir() => Path.GetDirectoryName(Application.StartupPath)!;

Thank you!

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