]> repos.lx-s.de Git - winmute.git/commitdiff
Fixed path in github workflow
authorlx-s <lx-s@users.noreply.github.com>
Fri, 14 Aug 2026 11:26:03 +0000 (13:26 +0200)
committerlx-s <lx-s@users.noreply.github.com>
Fri, 14 Aug 2026 11:26:03 +0000 (13:26 +0200)
.github/workflows/release.yml

index 6bdf3daa78767430d2b43787d2275a34c2c63bad..3eeade9ab31ab7218da9308604e4eb20084a6db9 100644 (file)
@@ -51,7 +51,14 @@ jobs:
         uses: microsoft/setup-msbuild@v2
 
       - name: Build WinMute.exe
-        run: msbuild WinMute\WinMute.vcxproj /p:Configuration=Release /p:Platform=x64 /m
+        run: |
+          # SolutionDir only resolves correctly when MSBuild is invoked
+          # through the .sln/.slnx; building the .vcxproj directly (done here
+          # to avoid depending on the runner's MSBuild supporting .slnx)
+          # otherwise falls back to the project's own directory, and
+          # WinMute.props's OutDir/IntDir (which are $(SolutionDir)-relative)
+          # end up one level too deep.
+          msbuild WinMute\WinMute.vcxproj /p:Configuration=Release /p:Platform=x64 /p:SolutionDir="$env:GITHUB_WORKSPACE\" /m
 
       - name: Determine version
         id: version