From e1c0e7e515a6fcc8e0cedeaca65015dc27f15ff0 Mon Sep 17 00:00:00 2001 From: Stephen Tozer Date: Mon, 11 Dec 2023 15:19:40 +0000 Subject: [PATCH] [Dexter] Set ShouldBuild=false for Visual Studio solutions (#75045) Since Dexter no longer intends to build any code, the ShouldBuild property in any Visual Studio project being run by Dexter should be false to ensure that a build step is never invoked by Dexter, whether the project has already been built or not. Reviewed by: OCHyams --- .../dexter/dex/debugger/visualstudio/VisualStudio.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cross-project-tests/debuginfo-tests/dexter/dex/debugger/visualstudio/VisualStudio.py b/cross-project-tests/debuginfo-tests/dexter/dex/debugger/visualstudio/VisualStudio.py index 50a97e2b77d1..0e20cfbbd264 100644 --- a/cross-project-tests/debuginfo-tests/dexter/dex/debugger/visualstudio/VisualStudio.py +++ b/cross-project-tests/debuginfo-tests/dexter/dex/debugger/visualstudio/VisualStudio.py @@ -276,6 +276,13 @@ class VisualStudio( project.Properties, "ActiveConfiguration" ).Object ActiveConfiguration.DebugSettings.CommandArguments = cmdline_str + ConfigurationName = ActiveConfiguration.ConfigurationName + SolConfig = self._fetch_property( + self._interface.Solution.SolutionBuild.SolutionConfigurations, + ConfigurationName, + ) + for Context in SolConfig.SolutionContexts: + Context.ShouldBuild = False self.context.logger.note("Launching VS debugger...") self._fn_go(False)