Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

How to: Run a Unit Test as a 64-bit Process

If you have a 64-bit machine, you can now run unit tests and capture code coverage information as a 64-bit process.

Configuring test setting for 64-bit

To run a unit test as a 64-bit process

  1. If your code or tests were compiled as 32-bit/x86, but you now want to run them as a 64-bit process, recompile them as Any CPU, or optionally as 64-bit.

    TipTip

    For maximum flexibility, you should compile your test projects with the Any CPU configuration. Then you can run on both 32 and 64 bit agents. There is no advantage to compiling test projects with the 64-bit configuration.

  2. Open the Test Settings file for your tests.

  3. In the left pane, click Hosts.

  4. Select the Host Type that you want.

  5. In the Run tests in 32 or 64 bit process drop-down list select Run tests in 64 bit process on 64 bit machine.

  6. Click Apply and then click Close.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft