[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
This commit is contained in:
Stephen Tozer 2023-12-11 15:19:40 +00:00 committed by GitHub
parent fcdb848596
commit e1c0e7e515
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)