Skip to content

Commit

Permalink
fix determination of chocolatey
Browse files Browse the repository at this point in the history
  • Loading branch information
mazharenko committed Jan 29, 2025
1 parent 04be095 commit c1add16
Showing 1 changed file with 1 addition and 1 deletion.
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 c1add16

Please sign in to comment.