mercredi 25 juillet 2018

Saving the default processor architecture for tests in VS 2017

I am using Visual Studio 15.7.5 and I have checked in my complete solution to github. It contains 3 projects, where one of them is using the google test framework. Additionally I am using the VS-extension "Google Test Adapter" from Christian Soltenborn.

Now I want to be able to clone my solution from github to an arbitrarily place in my filesystem and be instant ready to compile and running all stuff inclusive the google tests WITHOUT modifying something at the solution-/project-settings.

In the sum it works now all fine, but for each clone I still have to set the default processor architecture manually to x64. This setting is NOT saved in the solution-/project-settings. I think this specific setting is saved in some file(s) in the folder .vs. But this folder is part of my .gitignore file, because this directory should not be committed.

I also tried to create some XML-File in the solution with the suffix .runsettings, which I used then as "test setting file". This works, but the path saved here seems to be an absolute path fixed to the actual directory of the solution. So I would need to assign manually the .runsettings-file for each new clone.

I could not find any real solution for this problem, and others seems to have similar problems:
How can I default VS Test Processor Architecture to x64?

Who has got any idea, how to solve this problem? Also any dirty hacks are welcome, which do finally the job. I cannot imagine, that this bug (Not really very exotic) is still present, although microsoft knows this bug for a long time!

Aucun commentaire:

Enregistrer un commentaire