Skip to content

Commit c1add16

Browse files
committed
fix determination of chocolatey
1 parent 04be095 commit c1add16

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
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)