Friday, 15 February 2019

Some (n)unit tests run on TFS are failing with System.OutOfMemoryException

Symptom:
- some tests are failing with "----> System.OutOfMemoryException : Exception of type 'System.OutOfMemoryException' was thrown." error


Solution:
- add "/platform:x64" to VSTest step

Additional info:
under the hood, TFS is running "vstest.console.exe" and it looks that is run as a 32bit application by default


No comments:

Post a Comment