Always run unit tests on x64 in Visual Studio 2017

My projects are running on the x64 platform. But the default test settings in VS2017 set X86 as the default processor architecture.

My concern is that I have to manually change the setting to X64 in this window each time.


enter image description here


I googled it and found a seemingly correct way to do it. About using the file .runsettingsas described in https://msdn.microsoft.com/en-us/library/ee782531.aspx

I created a settings file and tried to apply it on VS2017, but the IDE forgets the settings after a restart. I selected the settings file again and again. To make matters worse, it doesn't work either.

- xunit X64 , .

X64? - , !

+4

Source: https://habr.com/ru/post/1696136/


All Articles