Building nunit from source for the first time
shovavnik <[email protected]> Fri, 5 Sep 2008 22:04:23 +0300
| Newsgroups | gmane.comp.windows.dotnet.nunit.devel |
|---|---|
| Message-ID | <[email protected]> |
--===============0526447109==
Content-Type: multipart/alternative;
boundary="----=_Part_70528_32091075.1220641463928"
------=_Part_70528_32091075.1220641463928
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
I downloaded the most recent nunit source code from CVS and am trying to
build it.
I'm running this command on the command line:
nant debug net-2.0 build test
When I run this command, the build fails with the failure at the end
(snipped to the relevant failure). The error itself is "error CS0246: The
type or namespace name 'TestCases' could not be found (are you missing a
using directive or an assembly reference?)".
I opened up the VS2008 solution, which built just fine from within the IDE.
When I ran the tests using ReSharper's integrated unit test runner, a couple
hundred tests failed. The runner even crashed when it got to the
StackOverflowTestFixture.SimpleOverflow test.
So the big question is: what am I doing wrong?
Thanks!
Here's the snipped nant build output I promised :)
==================================================
[nant]
c:\Projects\NUnit\nunit20\src\NUnitFramework\tests\nunit.framework.tests.build
build
Buildfile:
file:///c:/Projects/NUnit/nunit20/src/NUnitFramework/tests/nunit.framework.tests.build
Target framework: Microsoft .NET Framework 2.0
Target(s) specified: build
build:
[csc] Compiling 55 files to
'c:\Projects\NUnit\nunit20\build\net\2.0\debug\tests\nunit.framework.tests.dll'.
[csc]
c:\Projects\NUnit\nunit20\src\NUnitFramework\tests\Constraints\ConstraintTestBase.cs(16,16):
error CS0246: The type or namespace name 'TestCases' could not be found (are
you missing a using directive or an assembly reference?)
[csc]
c:\Projects\NUnit\nunit20\src\NUnitFramework\tests\Constraints\ConstraintTestBase.cs(22,16):
error CS0246: The type or namespace name 'TestCases' could not be found (are
you missing a using directive or an assembly reference?)
[csc]
c:\Projects\NUnit\nunit20\src\NUnitFramework\tests\Constraints\ConstraintTestBase.cs(62,16):
error CS0246: The type or namespace name 'TestCases' could not be found (are
you missing a using directive or an assembly reference?)
[csc]
c:\Projects\NUnit\nunit20\src\NUnitFramework\tests\Constraints\ConstraintTestBase.cs(76,16):
error CS0246: The type or namespace name 'TestCases' could not be found (are
you missing a using directive or an assembly reference?)
[csc]
c:\Projects\NUnit\nunit20\src\NUnitFramework\tests\Syntax\InvalidCodeTests.cs(58,16):
error CS0246: The type or namespace name 'TestCases' could not be found (are
you missing a using directive or an assembly reference?)
BUILD FAILED
c:\Projects\NUnit\nunit20\src\NUnitFramework\tests\nunit.framework.tests.build(69,6):
External Program Failed:
C:\Windows\Microsoft.NET\Framework\v2.0.50727\csc.exe (return code was 1)
Total time: 0.5 seconds.
========================================
------=_Part_70528_32091075.1220641463928
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
<div dir="ltr">I downloaded the most recent nunit source code from CVS and am trying to build it.<br><br>I'm running this command on the command line:<br>nant debug net-2.0 build test<br><br>When I run this command, the build fails with the failure at the end (snipped to the relevant failure). The error itself is "error CS0246: The type or namespace name 'TestCases' could not be found (are you missing a using directive or an assembly reference?)".<br>
<br>I opened up the VS2008 solution, which built just fine from within the IDE. When I ran the tests using ReSharper's integrated unit test runner, a couple hundred tests failed. The runner even crashed when it got to the StackOverflowTestFixture.SimpleOverflow test.<br>
<br>So the big question is: what am I doing wrong?<br><br>Thanks!<br><br><br>Here's the snipped nant build output I promised :)<br><br><br>==================================================<br> [nant] c:\Projects\NUnit\nunit20\src\NUnitFramework\tests\nunit.framework.tests.build build<br>
Buildfile: file:///c:/Projects/NUnit/nunit20/src/NUnitFramework/tests/nunit.framework.tests.build<br> Target framework: Microsoft .NET Framework 2.0<br> Target(s) specified: build<br><br>
<br> build:<br><br> [csc] Compiling 55 files to 'c:\Projects\NUnit\nunit20\build\net\2.0\debug\tests\nunit.framework.tests.dll'.<br> [csc] c:\Projects\NUnit\nunit20\src\NUnitFramework\tests\Constraints\ConstraintTestBase.cs(16,16): error CS0246: The type or namespace name 'TestCases' could not be found (are you missing a using directive or an assembly reference?)<br>
[csc] c:\Projects\NUnit\nunit20\src\NUnitFramework\tests\Constraints\ConstraintTestBase.cs(22,16): error CS0246: The type or namespace name 'TestCases' could not be found (are you missing a using directive or an assembly reference?)<br>
[csc] c:\Projects\NUnit\nunit20\src\NUnitFramework\tests\Constraints\ConstraintTestBase.cs(62,16): error CS0246: The type or namespace name 'TestCases' could not be found (are you missing a using directive or an assembly reference?)<br>
[csc] c:\Projects\NUnit\nunit20\src\NUnitFramework\tests\Constraints\ConstraintTestBase.cs(76,16): error CS0246: The type or namespace name 'TestCases' could not be found (are you missing a using directive or an assembly reference?)<br>
[csc] c:\Projects\NUnit\nunit20\src\NUnitFramework\tests\Syntax\InvalidCodeTests.cs(58,16): error CS0246: The type or namespace name 'TestCases' could not be found (are you missing a using directive or an assembly reference?)<br>
<br> BUILD FAILED<br><br> c:\Projects\NUnit\nunit20\src\NUnitFramework\tests\nunit.framework.tests.build(69,6):<br> External Program Failed: C:\Windows\Microsoft.NET\Framework\v2.0.50727\csc.exe (return code was 1)<br>
<br> Total time: 0.5 seconds.<br>========================================<br><br></div>
------=_Part_70528_32091075.1220641463928--
--===============0526447109==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
--===============0526447109==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
nunit-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nunit-developer
--===============0526447109==--