Hi, all, because I have multiple configuration, I need set the NameMapping.CurrentConfigurationName property in the OnStartTest event. I have Perforce to manage the code, the question is, every time I finished the run, it prompts me whether to save the NampeMapping file. How can I avoid such prompt? Thanks in advance.
Are you running it manually or from a command line?
Manually, I don't think there is a way of avoiding the prompt. The reason being is, because you are changing the namemapping file in code, when the code finishes executing, it needs to save the project values. So, you will get prompted at the end if you want to save the changes.
If you are running from a commandline, add the switch "/silentmode" to your command line and it won't prompt for save but will save anyways.