Skip to content

Commit 060d480

Browse files
authored
Merge pull request #1616 from mazharenko/issue-1614
Fix determination of chocolatey
2 parents 04be095 + c1add16 commit 060d480

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NUnitEngine/nunit.engine.core/Services/ExtensionManager.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public void FindExtensionAssemblies(Assembly hostAssembly)
170170
{
171171
log.Info($"FindExtensionAssemblies called for host {hostAssembly.FullName}");
172172

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

0 commit comments

Comments
 (0)