Re: Upgrade NUnit from 2.2.8 to 2.4.6
"Charlie Poole" <[email protected]>
| Newsgroups | gmane.comp.windows.dotnet.nunit.user |
|---|---|
| Message-ID | <00fe01c862b0$011f3e10$6401a8c0@ferrari> |
Hi Johan, It looks as if removing 2.2.8 is the cause of your problem, since your tests require the 2.2.8 framework dll in order to load. You could try removing and re-adding any nunit refrences in your tests - which should normally only be references to nunit.framework.dll. NOTE: If any tests were refering to other nunit assemblies, besides framework, then you are not the typical case and you may have to make code changes. Charlie _____ From: [email protected] [mailto:[email protected]] On Behalf Of Johan Fält Sent: Tuesday, January 29, 2008 12:59 AM To: [email protected] Subject: [Nunit-users] Upgrade NUnit from 2.2.8 to 2.4.6 I have been running NUnit 2.2.8 for way to long and have decided to upgrade, unfortunately I have run into some snags. Any ideas what to do? My development is done on Borland Developer Studio 2006 (service pack 2) .NET 1.1. I have uninstalled NUnit 2.2.8 and installed NUnit 2.4.6 in its place. I have rerouted the settings so they now point at the correct exe. \NUnit 2.4.6\bin\nunit.exe When I run the tests, havent done anything to change them just recompiled everything, I get the following: System.IO.FileLoadException... Server stack trace: at System.Reflection.CustomAttribute.GetCustomAttributeList(Int32 token, IntPtr module, RuntimeType caType, CustomAttribute caItem, Int32 level) at System.Reflection.CustomAttribute.GetCustomAttributeListCheckType(Int32 token, IntPtr module, Type caType, CustomAttribute caItem, Int32 level) at System.Reflection.CustomAttribute.GetCustomAttributeList(MemberInfo member, Type caType, CustomAttribute caItem, Int32 level) at System.Reflection.CustomAttribute.GetCustomAttributes(MemberInfo member, Type caType, Boolean inherit) at System.Reflection.CustomAttribute.GetCustomAttributes(Type type, Type caType, Boolean inherit) at System.RuntimeType.GetCustomAttributes(Boolean inherit) at NUnit.Core.Reflect.HasAttribute(MemberInfo member, String attrName, Boolean inherit) at NUnit.Core.Builders.SetUpFixtureBuilder.CanBuildFrom(Type type) at NUnit.Core.Extensibility.SuiteBuilderCollection.CanBuildFrom(Type type) at NUnit.Core.TestFixtureBuilder.CanBuildFrom(Type type) at NUnit.Core.Builders.TestAssemblyBuilder.GetFixtures(Assembly assembly, String ns) at NUnit.Core.Builders.TestAssemblyBuilder.Build(String assemblyName, Boolean autoSuites) at NUnit.Core.Builders.TestAssemblyBuilder.Build(String assemblyName, String testName, Boolean autoSuites) at NUnit.Core.TestSuiteBuilder.Build(TestPackage package) at NUnit.Core.SimpleTestRunner.Load(TestPackage package) at NUnit.Core.ProxyTestRunner.Load(TestPackage package) at NUnit.Core.ProxyTestRunner.Load(TestPackage package) at NUnit.Core.RemoteTestRunner.Load(TestPackage package) at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(Met hodBase mb, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs) at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessa ge msg, Int32 methodPtr, Boolean fExecuteInContext) Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) at NUnit.Core.TestRunner.Load(TestPackage package) at NUnit.Util.TestDomain.Load(TestPackage package) at NUnit.Util.TestLoader.LoadTest(String testName) Johan Felt Nilex ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nunit-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nunit-users