can I build nunit 2.5 with vs2010 from source

Asked by Craig Hill

can I build nunit 2.5 with vs2010 from source,
or
do I have to wait for 3.0?

if so when is 3.0 available?

Question information

Language:
English Edit question
Status:
Solved
For:
NUnit Framework Edit question
Assignee:
No assignee Edit question
Solved by:
Craig Hill
Solved:
Last query:
Last reply:
Revision history for this message
Charlie Poole (charlie.poole) said :
#1

Yes, the 2.5.5 source is known to build with VS2010. Use the VS2008
solution and let
VS2010 convert it. If you change the target .NET framework to anything
but 2.0, you
may need to mess around with some of the project-level #defines.

Note that it is NOT necessary to build for .NET 4.0 in order to run
tests under 4.0.
The .NET 2.0 build already does this.

Charlie

On Fri, Jul 2, 2010 at 10:49 AM, Craig Hill
<email address hidden> wrote:
> New question #116483 on NUnit Framework:
> https://answers.launchpad.net/nunit-3.0/+question/116483
>
> can I build nunit 2.5 with vs2010 from source,
> or
> do I have to wait for 3.0?
>
> if so when is 3.0 available?
>
> --
> You received this question notification because you are a member of
> NUnit Core Developers, which is an answer contact for NUnit Framework.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~nunit-core
> Post to     : <email address hidden>
> Unsubscribe : https://launchpad.net/~nunit-core
> More help   : https://help.launchpad.net/ListHelp
>

Revision history for this message
Craig Hill (craig-hill) said :
#2

I am getting "Could not load type 'System.Runtime.Versioning.TargetFrameworkAttribute' from assembly 'mscorlib, Version=2.0.0.0"

Revision history for this message
Craig Hill (craig-hill) said :
#3

got it working with the /framework=net-4.0 switch