shovavnik
2008-09-05 19:04:23 UTC
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.
========================================
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.
========================================