Skip to content

Commit 039e6dc

Browse files
mazharenkoCharliePoole
authored andcommitted
fix determination of chocolatey
1 parent 0d2aea3 commit 039e6dc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/NUnitConsoleAndEngine.CI.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ jobs:
3636
with:
3737
dotnet-version: |
3838
3.1.x
39-
6.0.x
39+
6.0.x
40+
7.0.x
4041
8.0.100
4142
4243
- name: 🔧 Install dotnet tools

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)