0

I need to run unit test made in .NET Framework version 4.5. I am running this system:

  • OS: macOS Catalina
  • Version: 10.15.5

Because I have a macOS system I installed Mono on the official website. The version I installed is: 6.10.0.104. It supports mono32 as well as mono64, but for some odd reason my IDE (Rider) is using mono32 to run tests. I am just wondering how I can force mono64 to be used?

The error that is thrown is:

Exit code is 1 (Error: --arch=32 Failed to switch to '/Library/Frameworks/Mono.framework/Versions/Current/bin/mono32'.

The version of Rider that I use is: JetBrains Rider 2020.1.3 Build #RD-201.7846.1.

I have found a similar question here, but no one answered that question unfortunately.

Thank you for helping me in advance!

KittyCat
  • 415
  • 4
  • 9
  • 26
  • What unit testing framework did you use? How did you configure it? If your project was forced to run as 32 bit, you need to revise the settings to run as 64 bit. – Lex Li Sep 04 '20 at 14:18

1 Answers1

2

I changed "Default platform architecture" to "x64" in Preferences > Unit Testing and that fixed the issue for me.

Tom
  • 36
  • 2
  • I forgot to answer this question myself as this indeed fixed my issue eventually. I accepted your answer since it is the right one. Thanks! – KittyCat Sep 10 '20 at 12:03