Published as single file fails here ...
- Dominant language
- C#
- Stars
- 567
- Forks
- 109
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
If publishing Bruce as .Net 8 single file it fails to run commands here, because the folder string is empty:
https://github.com/dotnet/Kerberos.NET/blob/9a25b0d813bbb9ed0957850f52c6505b94529833/Bruce/CommandLine/CommandLoader.cs#L90
```
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
Contributor guide
Assessment
This issue has not been assessed yet.