MBulli / SmartCommandlineArgs

A Visual Studio Extension which aims to provide a better UI to manage your command line arguments
GNU General Public License v2.0
99 stars 35 forks source link

Changes to arguments after pressing F5 with a build are ignored #158

Closed djfooks closed 1 year ago

djfooks commented 1 year ago

To reproduce

  1. Make a change to a cpp
  2. Hit F5 and chose to build
  3. Change an argument while the build is ongoing

Observe that the application is not started with the changed arguments. Stopping and starting again gets the new arguments.

Irame commented 1 year ago

This happens because we only update the project configuration on the "ProjectBeforeRun" event (see code).

The solution would be to also update the configuration every time the tree is changed. I don't know if that would bring some unwanted side effects, but I think it would be fine.

This would also fix #65. (Except for cases where only the project configuration, target platform, or launch profile changes.)