วันพุธที่ 9 มิถุนายน พ.ศ. 2553

NUnit 2.5.5 and .NET 4 Testing

I have problem to load assembly .NET 4 to test
Yes compile to .NET 2 will don't have any problem but .NET 4 I can't open dll to test

To fix this we need to modified nunit.exe.config
In folder nunit.exe we used

by 2 step

1. Under <configuration> add:
<startup><requiredRuntime version="v4.0.30319" /></startup>
2. Under <runtime> add:
<loadFromRemoteSources enabled="true" />

Yes for me .NET is version 4.0.30319 (for now)

Thanks to this ref : http://beta.blogs.microsoft.co.il/blogs/dhelper/archive/2010/01/25/how-to-run-nunit-tests-created-with-vs2010-and-net-4.aspx

ไม่มีความคิดเห็น: