From 20bfccefb7837f485724bdf1ba9e1cb44e335126 Mon Sep 17 00:00:00 2001 From: Mike Griese Date: Tue, 12 Jan 2021 19:23:17 -0600 Subject: [PATCH] Fix the duplicate .xbf error after a TerminalControl build (#8754) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Whenever you'd make a change to anything in the Terminal Control project, then tried deploying the package, you'd get errors like "Package contains two files with the same name and different content, files are `Thing.xbf` and `.../bin/x64/debug/TSM/TerminalControl/Thing.xbf`". It seems like `GetPackagingOutputs` was double counting these xbfs as being both from TerminalControl and also TSM&TSE. So if you'd change TerminalControl, it'd change the xbf files, but not the ones in TSM/TSE, and then eventually the wapproj would fail to put it all together. This combination of flags seems to * make mdmerge work * make the packaging project work * make a partial rebuild of TerminalControl followed by a deploy work I'm hoping that this PR build will confirm that this works in CI as well. ## PR Checklist * [x] Fixes this minor annoyance I've been having for the past 2 months * [x] I work here ## Validation Steps Performed Validated locally on VS 16.8.3. Sure to break by 16.9 🙃. --- ...Microsoft.Terminal.Settings.Editor.vcxproj | 25 +++++++++++++++++-- .../Microsoft.Terminal.Settings.Model.vcxproj | 23 +++++++++++++++-- 2 files changed, 44 insertions(+), 4 deletions(-) diff --git a/src/cascadia/TerminalSettingsEditor/Microsoft.Terminal.Settings.Editor.vcxproj b/src/cascadia/TerminalSettingsEditor/Microsoft.Terminal.Settings.Editor.vcxproj index 8ae5a71a6..af4ef42d7 100644 --- a/src/cascadia/TerminalSettingsEditor/Microsoft.Terminal.Settings.Editor.vcxproj +++ b/src/cascadia/TerminalSettingsEditor/Microsoft.Terminal.Settings.Editor.vcxproj @@ -215,13 +215,34 @@ false + - false + + true + false + false + + + + + $(OpenConsoleCommonOutDir)TerminalControl\Microsoft.Terminal.TerminalControl.winmd + true + false + false + + + @@ -231,4 +252,4 @@ - \ No newline at end of file + diff --git a/src/cascadia/TerminalSettingsModel/dll/Microsoft.Terminal.Settings.Model.vcxproj b/src/cascadia/TerminalSettingsModel/dll/Microsoft.Terminal.Settings.Model.vcxproj index b55520d9b..cea7de13f 100644 --- a/src/cascadia/TerminalSettingsModel/dll/Microsoft.Terminal.Settings.Model.vcxproj +++ b/src/cascadia/TerminalSettingsModel/dll/Microsoft.Terminal.Settings.Model.vcxproj @@ -59,18 +59,37 @@ false + - false + + true + false + true - true + + + + $(OpenConsoleCommonOutDir)TerminalControl\Microsoft.Terminal.TerminalControl.winmd + true + false + false + + +