Skip to content

Commit 7b22b6c

Browse files
author
xavave
committed
Improve solution file detection in OpenCVSharp build process
1 parent 1034f87 commit 7b22b6c

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/build-win-arm64.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,17 @@ jobs:
220220
Write-Host "Fixed jpeg.lib path in main vcxproj"
221221
}
222222
223-
msbuild OpenCVSharpExtern.sln /t:build /p:Configuration=Release /p:Platform=ARM64 /m:2
223+
# Find the actual solution file generated by CMake
224+
Write-Host "Looking for solution file..."
225+
$slnFile = Get-ChildItem -Filter "*.sln" | Select-Object -First 1
226+
if ($slnFile) {
227+
Write-Host "Found solution file: $($slnFile.Name)"
228+
msbuild $slnFile.Name /t:build /p:Configuration=Release /p:Platform=ARM64 /m:2
229+
} else {
230+
Write-Error "No .sln file found in build directory"
231+
Get-ChildItem
232+
exit 1
233+
}
224234
225235
226236
- name: Upload Native Artifacts

0 commit comments

Comments
 (0)