I got a ADO.NET driver which is compiled as 64-bit. I therefore need to run mstests in 64-bit mode. Is that possible?
(the dev machine is 64bit).
From the Visual Studio menu, choose Test, then choose Processor Architecture for AnyCPU projects. Choose x64 to run the tests as a 64-bit process.
Visual Studio 2022 on Windows is now a 64-bit application.
Let us now click on Run All button in Test Explorer. It will first build the code and the run the test and you will see the total time taken by the test. Let us change the test method so that we can see the output when the test fails. Let us execute the test again by clicking on the Run All button link.
No! There is no 64-bit version of Visual Studio.
Visual Studio has a built in option for this. It was a bit hard to find (if you do not know where to look).
Doubleclick on the local.testsettings
file in Solution Explorer and select Hosts
in the listbox. Then change as the image shows.
You must do your tests in a 64-bit OS and your application should be compiled with AnyCPU
.
It is easier in Visual studio 2013. Select Test->Test Settings->Default Processor Architecture->x64 before running the tests
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With