Skip to content

Commit 29e941f

Browse files
author
Jordan Pierce
committed
Fix workflow: list outputs and set VS SDK path
1 parent 7e20328 commit 29e941f

1 file changed

Lines changed: 23 additions & 7 deletions

File tree

.github/workflows/build.yml

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,35 @@ jobs:
2424
run: nuget restore OffensiveVS360.sln
2525

2626
- name: Build Release VSIX
27-
run: msbuild OffensiveVS360.sln /p:Configuration=Release /p:Platform="Any CPU" /m
27+
run: |
28+
# Find VS install path for VSIX creation
29+
$vsPath = & "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -latest -products * -requires Microsoft.VisualStudio.Component.CoreEditor -property installationPath
30+
echo "VS Path: $vsPath"
31+
msbuild OffensiveVS360.sln /p:Configuration=Release /p:Platform="Any CPU" /p:VsSDKInstall="$vsPath\VSSDK" /m
32+
33+
- name: List build outputs
34+
run: |
35+
echo "=== All VSIX files ==="
36+
Get-ChildItem -Recurse -Filter "*.vsix" | ForEach-Object { echo $_.FullName }
37+
echo "=== bin/Release contents ==="
38+
Get-ChildItem -Recurse -Path "OffensiveVS360\bin" -ErrorAction SilentlyContinue | ForEach-Object { echo $_.FullName }
2839
29-
- name: Find VSIX
30-
id: find_vsix
40+
- name: Find and upload VSIX
3141
run: |
3242
$vsix = Get-ChildItem -Recurse -Filter "*.vsix" | Select-Object -First 1
33-
echo "VSIX_PATH=$($vsix.FullName)" >> $env:GITHUB_OUTPUT
34-
echo "VSIX_NAME=$($vsix.Name)" >> $env:GITHUB_OUTPUT
35-
echo "Found: $($vsix.FullName)"
43+
if ($vsix) {
44+
echo "Found VSIX: $($vsix.FullName)"
45+
Copy-Item $vsix.FullName "OffensiveVS360.vsix"
46+
} else {
47+
echo "No VSIX found, checking for manual creation..."
48+
# The VSIX SDK may need VS installed — try creating via command line
49+
exit 1
50+
}
3651
3752
- name: Upload VSIX artifact
3853
uses: actions/upload-artifact@v4
3954
with:
4055
name: OffensiveVS360-vsix
41-
path: ${{ steps.find_vsix.outputs.VSIX_PATH }}
56+
path: OffensiveVS360.vsix
57+
if-no-files-found: error
4258
retention-days: 30

0 commit comments

Comments
 (0)