Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I default VS Test Processor Architecture to x64?

I depend on a mixed-mode assembly which is compiled for x64. Because I do not want warnings in my build, all of the projects in my solution target x64 directly--they are not Any CPU.

To get my x64 unit tests to work properly, I find that I must manually change the Visual Studio unit test Default Processor Architecture to x64 every time I start Visual Studio. This is easy enough but tedious.

Is there a way to get VS to persist this setting so that I don't have to do it every time?

like image 332
Andrew Miller Avatar asked Feb 02 '14 16:02

Andrew Miller


People also ask

How to change Visual Studio to 64-bit?

Answers. After trying both options, I like the right click Project -> Properties -> Build -> General -> Platform Target -> x64. This keeps everything cleaner.


1 Answers

On Visual Studio 2013 I found that after setting "Default Process Architecture" to X64 I'll go and open "Options..." and close it with "OK", then the "Default Process Architecture" will preserved, at least for this one solution.

like image 60
PeTeeR22r Avatar answered Oct 08 '22 03:10

PeTeeR22r