From c810d9ebfb7dc7802add3fbb321bb31517502c63 Mon Sep 17 00:00:00 2001 From: Qiutong Shen Date: Mon, 8 Jun 2026 10:36:52 +0800 Subject: [PATCH] Declare sln-level dependency on WinUIComponentCs for CsWinRT authoring sample The three consumer apps in CsWinRTAuthoringWinUI.sln (CppApp, CppAppUnpackaged, CsApp) all load the WinUIComponentCs.dll at runtime, but only CsApp can express that through a managed ; the two C++ projects cannot ProjectReference a C# project. Without an explicit dependency, MSBuild may build the consumers in parallel with the component and copy stale or missing binaries, producing intermittent build failures. Add a sln-level GlobalSection(ProjectDependencies) so all three consumers wait for WinUIComponentCs to finish before they build. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- Samples/CustomControls/CsWinRTAuthoringWinUI.sln | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Samples/CustomControls/CsWinRTAuthoringWinUI.sln b/Samples/CustomControls/CsWinRTAuthoringWinUI.sln index 2e78b05c4..049cbc61e 100644 --- a/Samples/CustomControls/CsWinRTAuthoringWinUI.sln +++ b/Samples/CustomControls/CsWinRTAuthoringWinUI.sln @@ -88,6 +88,11 @@ Global {B71D15EF-F17B-4E8F-B023-08C4E3B32DAB}.Release|x86.Build.0 = Release|Win32 {B71D15EF-F17B-4E8F-B023-08C4E3B32DAB}.Release|x86.Deploy.0 = Release|Win32 EndGlobalSection + GlobalSection(ProjectDependencies) = postSolution + {34A4AD19-A703-47F3-B279-E505C6A2A935}.0 = {BCC816DC-0F01-4F0F-8506-DF6AFEFAEA92} + {B71D15EF-F17B-4E8F-B023-08C4E3B32DAB}.0 = {BCC816DC-0F01-4F0F-8506-DF6AFEFAEA92} + {4B4FA4E7-D50E-4059-A906-6F78F6DFEBCD}.0 = {BCC816DC-0F01-4F0F-8506-DF6AFEFAEA92} + EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection