From 6cd0f834962e470476b0ce50f2598d2e7838a545 Mon Sep 17 00:00:00 2001 From: Alekhya Date: Mon, 4 May 2020 07:42:05 -0700 Subject: [PATCH] Fix FancyZones issue of dlls being overwritten by PreviewPane's MarkDig (#2589) * Added output folder * Added FileExplorerPreview output folder for all projects * Added extra dlls and FileExplorerPreview to path * Added folder and modified path for registry setup of preview handlers --- installer/PowerToysSetup/Product.wxs | 43 +++++++++++-------- .../MarkDownPreviewHandler.csproj | 8 ++-- .../SvgPreviewHandler.csproj | 8 ++-- .../common/PreviewHandlerCommon.csproj | 8 ++-- .../powerpreview/powerpreview.vcxproj | 4 +- .../powerpreviewTest/powerpreviewTest.vcxproj | 4 +- 6 files changed, 42 insertions(+), 33 deletions(-) diff --git a/installer/PowerToysSetup/Product.wxs b/installer/PowerToysSetup/Product.wxs index 95c3a8a18d..d8226ed7a7 100644 --- a/installer/PowerToysSetup/Product.wxs +++ b/installer/PowerToysSetup/Product.wxs @@ -212,6 +212,7 @@ + @@ -473,19 +474,6 @@ Value="{51B4D7E5-7568-4234-B4BB-47FB3C016A69}" Type="string" /> - - - - - - - - - - - - - @@ -499,11 +487,11 @@ - + - + @@ -516,11 +504,11 @@ - + - + @@ -548,6 +536,27 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/src/modules/previewpane/MarkDownPreviewHandler/MarkDownPreviewHandler.csproj b/src/modules/previewpane/MarkDownPreviewHandler/MarkDownPreviewHandler.csproj index 0a990c6e4b..1c5fcbb182 100644 --- a/src/modules/previewpane/MarkDownPreviewHandler/MarkDownPreviewHandler.csproj +++ b/src/modules/previewpane/MarkDownPreviewHandler/MarkDownPreviewHandler.csproj @@ -54,23 +54,23 @@ true full false - $(SolutionDir)$(Platform)\$(Configuration)\modules\ + $(SolutionDir)$(Platform)\$(Configuration)\modules\FileExplorerPreview\ DEBUG;TRACE prompt 4 true - $(SolutionDir)$(Platform)\$(Configuration)\modules\MarkdownPreviewPaneDocumentation.xml + $(SolutionDir)$(Platform)\$(Configuration)\modules\FileExplorerPreview\MarkdownPreviewPaneDocumentation.xml x64 pdbonly true - $(SolutionDir)$(Platform)\$(Configuration)\modules\ + $(SolutionDir)$(Platform)\$(Configuration)\modules\FileExplorerPreview\ TRACE prompt 4 true - $(SolutionDir)$(Platform)\$(Configuration)\modules\MarkdownPreviewPaneDocumentation.xml + $(SolutionDir)$(Platform)\$(Configuration)\modules\FileExplorerPreview\MarkdownPreviewPaneDocumentation.xml x64 diff --git a/src/modules/previewpane/SvgPreviewHandler/SvgPreviewHandler.csproj b/src/modules/previewpane/SvgPreviewHandler/SvgPreviewHandler.csproj index 6d868febf3..f1c516dec9 100644 --- a/src/modules/previewpane/SvgPreviewHandler/SvgPreviewHandler.csproj +++ b/src/modules/previewpane/SvgPreviewHandler/SvgPreviewHandler.csproj @@ -59,9 +59,9 @@ true - $(SolutionDir)$(Platform)\$(Configuration)\modules\ + $(SolutionDir)$(Platform)\$(Configuration)\modules\FileExplorerPreview\ DEBUG;TRACE - $(SolutionDir)$(Platform)\$(Configuration)\modules\SvgPreviewHandler.xml + $(SolutionDir)$(Platform)\$(Configuration)\modules\FileExplorerPreview\SvgPreviewHandler.xml 2 true full @@ -71,9 +71,9 @@ MinimumRecommendedRules.ruleset - $(SolutionDir)$(Platform)\$(Configuration)\modules\ + $(SolutionDir)$(Platform)\$(Configuration)\modules\FileExplorerPreview\ TRACE - $(SolutionDir)$(Platform)\$(Configuration)\modules\SvgPreviewHandler.xml + $(SolutionDir)$(Platform)\$(Configuration)\modules\FileExplorerPreview\SvgPreviewHandler.xml true true pdbonly diff --git a/src/modules/previewpane/common/PreviewHandlerCommon.csproj b/src/modules/previewpane/common/PreviewHandlerCommon.csproj index 787acb6237..4ee5ce88e9 100644 --- a/src/modules/previewpane/common/PreviewHandlerCommon.csproj +++ b/src/modules/previewpane/common/PreviewHandlerCommon.csproj @@ -54,23 +54,23 @@ true full false - $(SolutionDir)$(Platform)\$(Configuration)\modules\ + $(SolutionDir)$(Platform)\$(Configuration)\modules\FileExplorerPreview\ DEBUG;TRACE prompt 4 true - $(SolutionDir)$(Platform)\$(Configuration)\modules\PreviewHandlerCommonDocumentation.xml + $(SolutionDir)$(Platform)\$(Configuration)\modules\FileExplorerPreview\PreviewHandlerCommonDocumentation.xml x64 pdbonly true - $(SolutionDir)$(Platform)\$(Configuration)\modules\ + $(SolutionDir)$(Platform)\$(Configuration)\modules\FileExplorerPreview\ TRACE prompt 4 true - $(SolutionDir)$(Platform)\$(Configuration)\modules\PreviewHandlerCommonDocumentation.xml + $(SolutionDir)$(Platform)\$(Configuration)\modules\FileExplorerPreview\PreviewHandlerCommonDocumentation.xml x64 diff --git a/src/modules/previewpane/powerpreview/powerpreview.vcxproj b/src/modules/previewpane/powerpreview/powerpreview.vcxproj index 0a1ba42472..abf0ad47f1 100644 --- a/src/modules/previewpane/powerpreview/powerpreview.vcxproj +++ b/src/modules/previewpane/powerpreview/powerpreview.vcxproj @@ -46,12 +46,12 @@ true - $(SolutionDir)$(Platform)\$(Configuration)\modules\ + $(SolutionDir)$(Platform)\$(Configuration)\modules\FileExplorerPreview\ $(SolutionDir)$(Platform)\$(Configuration)\obj\$(ProjectName)\ false - $(SolutionDir)$(Platform)\$(Configuration)\modules\ + $(SolutionDir)$(Platform)\$(Configuration)\modules\FileExplorerPreview\ $(SolutionDir)$(Platform)\$(Configuration)\obj\$(ProjectName)\ diff --git a/src/modules/previewpane/powerpreviewTest/powerpreviewTest.vcxproj b/src/modules/previewpane/powerpreviewTest/powerpreviewTest.vcxproj index b95e2fe4bc..3875b90a63 100644 --- a/src/modules/previewpane/powerpreviewTest/powerpreviewTest.vcxproj +++ b/src/modules/previewpane/powerpreviewTest/powerpreviewTest.vcxproj @@ -77,7 +77,7 @@ true - $(SolutionDir)$(Platform)\$(Configuration)\modules\ + $(SolutionDir)$(Platform)\$(Configuration)\modules\FileExplorerPreview\ $(SolutionDir)$(Platform)\$(Configuration)\obj\$(ProjectName)\ @@ -87,7 +87,7 @@ false - $(SolutionDir)$(Platform)\$(Configuration)\modules\ + $(SolutionDir)$(Platform)\$(Configuration)\modules\FileExplorerPreview\ $(SolutionDir)$(Platform)\$(Configuration)\obj\$(ProjectName)\