From 4840b8e3be31815959c9af9c0be29489f240c2f5 Mon Sep 17 00:00:00 2001 From: dh Date: Sat, 3 Oct 2026 13:51:49 +0200 Subject: [PATCH] ci: diagnose Windows SDK pack resolution on the actual runner --- .gitea/workflows/pr-push-build-and-test.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.gitea/workflows/pr-push-build-and-test.yaml b/.gitea/workflows/pr-push-build-and-test.yaml index c2e5ce3..286c0a2 100644 --- a/.gitea/workflows/pr-push-build-and-test.yaml +++ b/.gitea/workflows/pr-push-build-and-test.yaml @@ -77,6 +77,19 @@ jobs: echo "WIN_DOTNET_DIR=${WIN_DOTNET_DIR}" >> "${GITHUB_ENV}" "${WINE_BIN}" "${WIN_DOTNET_DIR}/dotnet.exe" --info + - name: Diagnose Windows SDK targeting-pack resolution + run: | + find "${WIN_DOTNET_DIR}/packs" -maxdepth 4 -name PackageOverrides.txt -print + "${WINE_BIN}" "${WIN_DOTNET_DIR}/dotnet.exe" msbuild MeetingAssistant/MeetingAssistant.csproj \ + -p:EnableWindowsTargeting=true \ + -p:TargetFramework=net10.0 \ + -getProperty:NetCoreRoot,NetCoreTargetingPackRoot,PrunePackageDataRoot,PrunePackageTargetingPackRoots,MSBuildSDKsPath,DOTNET_MSBUILD_SDK_RESOLVER_CLI_DIR + "${WINE_BIN}" "${WIN_DOTNET_DIR}/dotnet.exe" msbuild MeetingAssistant/MeetingAssistant.csproj \ + -p:EnableWindowsTargeting=true \ + -p:TargetFramework=net10.0 \ + -t:AddPrunePackageReferences \ + -v:normal + - name: Build Windows desktop target via Wine run: | rm -f MeetingAssistant/bin/Release/net10.0-windows10.0.19041.0/win-x64/MeetingAssistant.dll