Skip to content

Commit e1c0e7e

Browse files
authored
[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
1 parent fcdb848 commit e1c0e7e

File tree

1 file changed

+7
-0
lines changed
  • cross-project-tests/debuginfo-tests/dexter/dex/debugger/visualstudio

1 file changed

+7
-0
lines changed

cross-project-tests/debuginfo-tests/dexter/dex/debugger/visualstudio/VisualStudio.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,13 @@ def launch(self, cmdline):
276276
project.Properties, "ActiveConfiguration"
277277
).Object
278278
ActiveConfiguration.DebugSettings.CommandArguments = cmdline_str
279+
ConfigurationName = ActiveConfiguration.ConfigurationName
280+
SolConfig = self._fetch_property(
281+
self._interface.Solution.SolutionBuild.SolutionConfigurations,
282+
ConfigurationName,
283+
)
284+
for Context in SolConfig.SolutionContexts:
285+
Context.ShouldBuild = False
279286

280287
self.context.logger.note("Launching VS debugger...")
281288
self._fn_go(False)

0 commit comments

Comments
 (0)