Multiple NUnit and .NET version interaction failure

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nikpreek
    New Member
    • Jun 2007
    • 22

    Multiple NUnit and .NET version interaction failure

    Hi All,

    I've VS 2003 (.NET 1.1) and VS 2005 (.NET 2.0) on my dev PC. For different projects I also have different NUnit versions (2.2.8, 2.4, 2.4.1).
    For this particular project in VS 2003 and NUnit 2.4 all my projects get built except Test Suite. When I try to build test suite I get following error:
    Metadata file 'c:\Program Files\NUnit 2.4\bin\nunit.f ramework.dll' could not be opened -- 'Version 2.0 is not a compatible version.'

    Could anyone please explain why?

    Thanks in advance for helping out.

    Regards,
    Nik
  • nateraaaa
    Recognized Expert Contributor
    • May 2007
    • 664

    #2
    Originally posted by nikpreek
    Hi All,

    I've VS 2003 (.NET 1.1) and VS 2005 (.NET 2.0) on my dev PC. For different projects I also have different NUnit versions (2.2.8, 2.4, 2.4.1).
    For this particular project in VS 2003 and NUnit 2.4 all my projects get built except Test Suite. When I try to build test suite I get following error:
    Metadata file 'c:\Program Files\NUnit 2.4\bin\nunit.f ramework.dll' could not be opened -- 'Version 2.0 is not a compatible version.'

    Could anyone please explain why?

    Thanks in advance for helping out.

    Regards,
    Nik
    I would recommend using the same version of NUnit for an entire solution. The references seem to change when trying to use multiple NUnit versions. A group of developers at my company are currently developing an application that uses VS 1.1 as the Client and VS 2.0 to create the Web Services used by the Client. We had to change both solutions to use NUnit 2.2.8 because the references were being switched in SourceSafe when new code was checked in. Try using the same version throughout your solution and let us know if that fixes your problem.

    Nathan

    Comment

    • nikpreek
      New Member
      • Jun 2007
      • 22

      #3
      Originally posted by nateraaaa
      I would recommend using the same version of NUnit for an entire solution. ............... ..........
      Nathan
      Thanks for reply, Nathan.
      But, what I meant is, I've got all these versions installed on my PC. But my entire solution is in .NET 1.1 and only one project (Test Suite) refers NUnit version 2.4, that's all.
      But still I'm getting this error.
      I'm still struggling to get any answer myself.
      If I get any answer, I'll sure post it here.

      Comment

      Working...