From 968014b91e7f1907819dad4590af37567b1ca5c5 Mon Sep 17 00:00:00 2001 From: Mike Griese Date: Thu, 18 Nov 2021 08:31:45 -0600 Subject: [PATCH 1/3] Maximum bodgy. Manually create the copycomplete file for TerminalConnection, because vcpkg never writes it. --- .../TerminalConnection.vcxproj | 45 ++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/src/cascadia/TerminalConnection/TerminalConnection.vcxproj b/src/cascadia/TerminalConnection/TerminalConnection.vcxproj index f594bc46fb6..783451dd549 100644 --- a/src/cascadia/TerminalConnection/TerminalConnection.vcxproj +++ b/src/cascadia/TerminalConnection/TerminalConnection.vcxproj @@ -97,4 +97,47 @@ - \ No newline at end of file + + + + + + + + + + + + + + From 23d235e7921c8c23fa20b564ba354ba20b73f354 Mon Sep 17 00:00:00 2001 From: Mike Griese Date: Mon, 22 Nov 2021 15:42:24 -0600 Subject: [PATCH 2/3] comments too --- .../TerminalConnection.vcxproj | 56 ++++++++----------- 1 file changed, 24 insertions(+), 32 deletions(-) diff --git a/src/cascadia/TerminalConnection/TerminalConnection.vcxproj b/src/cascadia/TerminalConnection/TerminalConnection.vcxproj index 783451dd549..a2cefca71fb 100644 --- a/src/cascadia/TerminalConnection/TerminalConnection.vcxproj +++ b/src/cascadia/TerminalConnection/TerminalConnection.vcxproj @@ -98,45 +98,37 @@ - + - --> + - - - - From 08a3ceb7cd6e31b090c47dd11caad00416ab65ec Mon Sep 17 00:00:00 2001 From: Mike Griese Date: Mon, 22 Nov 2021 16:44:37 -0600 Subject: [PATCH 3/3] spe --- .../TerminalConnection/TerminalConnection.vcxproj | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cascadia/TerminalConnection/TerminalConnection.vcxproj b/src/cascadia/TerminalConnection/TerminalConnection.vcxproj index a2cefca71fb..f9ab61577f7 100644 --- a/src/cascadia/TerminalConnection/TerminalConnection.vcxproj +++ b/src/cascadia/TerminalConnection/TerminalConnection.vcxproj @@ -104,22 +104,22 @@ We depend on `cpprest142*.dll`, which comes from our vcpkg dependency. As a part of the vcpkg dependency restore, msbuild will call the `deployBinary()` function in - `packages\vcpkg-cpprestsdk.2.10.14\scripts\buildsystems\msbuild\applocal.ps1`. + `packages\vcpkg-cpprestsdk.2.10.14\scripts\BuildSystems\msbuild\AppLocal.ps1`. That function does the actual job of copying the file. It copies it outside of MsBuild. MsBuild then, in the `_CopyFilesMarkedCopyLocal` target, determines that it needs to copy `cpprest142*.dll`, because that dll is a member of `@(ReferencesCopiedInThisBuild)`. However, the file's already been copied, so MsBuild never copies it. But that also prevents MsBuild from setting `WroteAtLeastOneFile`, which then means that MsBuild will never create the - .copycomplete file for this project. + .CopyComplete file for this project. - Because that file is missing, MsBuild will never thiqnk the project is up to + Because that file is missing, MsBuild will never think the project is up to date, and the FastUpToDate check in VS will always force MsBuild to run a pass on this project. To mitigate this, we're adding this other target here, which runs after _CopyFilesMarkedCopyLocal, and always creates the CopyUpToDateMarker. This - makes the FastUpTodate check succeed. + makes the FastUpToDate check succeed. -->