Skip to content

Commit

Permalink
fix determination of chocolatey
Browse files Browse the repository at this point in the history
  • Loading branch information
mazharenko authored and CharliePoole committed Jan 31, 2025
1 parent 0d2aea3 commit 039e6dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/NUnitConsoleAndEngine.CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ jobs:
with:
dotnet-version: |
3.1.x
6.0.x
6.0.x
7.0.x
8.0.100
- name: 🔧 Install dotnet tools
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public void FindExtensionAssemblies(Assembly hostAssembly)
{
log.Info($"FindExtensionAssemblies called for host {hostAssembly.FullName}");

bool isChocolateyPackage = System.IO.File.Exists(Path.Combine(hostAssembly.Location, "VERIFICATION.txt"));
bool isChocolateyPackage = System.IO.File.Exists(Path.Combine(Path.GetDirectoryName(hostAssembly.Location)!, "VERIFICATION.txt"));
string[] extensionPatterns = isChocolateyPackage
? new[] { "nunit-extension-*/**/tools/", "nunit-extension-*/**/tools/*/" }
: new[] { "NUnit.Extension.*/**/tools/", "NUnit.Extension.*/**/tools/*/" };
Expand Down

0 comments on commit 039e6dc

Please sign in to comment.