How do I get unit tests to run on a x64 platform

前端 未结 6 739
自闭症患者
自闭症患者 2020-12-14 14:20

I have a C# application that must run in x64 mode. The problem is I try to create unit tests that run methods in the x64 application and the unit test project won\'t even b

6条回答
  •  北荒
    北荒 (楼主)
    2020-12-14 14:45

    I'm assuming that you are using Visual Studios testing framework since you mention no other. In VS2010 you can force the testing host to run in x64. Build your assemblies as Any CPU or x64 then set the test host to x64.

    http://msdn.microsoft.com/en-us/library/ee782531.aspx

提交回复
热议问题