Skip to content

Published as single file fails here ... #394

@cocoon

Description

@cocoon

Describe the bug
If publishing Bruce as .Net 8 single file it fails to run commands here, because the folder string is empty:

var folder = Path.GetDirectoryName(entry.Location);

var folder = Path.GetDirectoryName(entry.Location);
var dlls = Directory.GetFiles(folder, "*.dll");

Error will be:
System.ArgumentNullException: Value cannot be null. (Parameter 'path')

To Reproduce
Upgrade bruce project to.Net 8
set target to Windows
Publish set to win-x64
enable checkbox single file
run bruce
execute a command

Expected behavior
Expected to run the command.

Screenshots
n/a

Additional context
n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions