Discussion:
SVN Not building?
Cory Foy
2008-08-28 03:10:53 UTC
Permalink
Hi All,

Just checked out the latest version of NUnit from SVN. I'm seeing the
following. This was with an "nant build-all". Looks like ITestCaseData
was added on 8/16?

build:

[echo] *
[echo] * Starting mono-1.0 debug build
[echo] *
[nant]
/Users/foyc/Workspace/nunit/nunit20/src/NUnitFramework/framework/nunit.framework.build
build
Buildfile:
file:///Users/foyc/Workspace/nunit/nunit20/src/NUnitFramework/framework/nunit.framework.build
Target framework: Mono 1.0 Profile
Target(s) specified: build


build:

[csc] Compiling 70 files to
'/Users/foyc/Workspace/nunit/nunit20/build/mono/1.0/debug/lib/nunit.framework.dll'.
[csc]
/Users/foyc/Workspace/nunit/nunit20/src/NUnitFramework/framework/TestCaseAttribute.cs(15,49):
error CS0246: The type or namespace name `ITestCaseData' could not be
found. Are you missing a using directive or an assembly reference?
[csc]
/Users/foyc/Workspace/nunit/nunit20/src/NUnitFramework/framework/TestCaseData.cs(14,33):
error CS0246: The type or namespace name `ITestCaseData' could not be
found. Are you missing a using directive or an assembly reference?
[csc] Compilation failed: 2 error(s), 0 warnings

BUILD FAILED - 0 non-fatal error(s), 2 warning(s)


/Users/foyc/Workspace/nunit/nunit20/src/NUnitFramework/framework/nunit.framework.build(78,6):
External Program Failed:
/Library/Frameworks/Mono.framework/Versions/1.9.1/lib/mono/1.0/mcs.exe
(return code was 1)

Total time: 0.6 seconds.


BUILD FAILED
--
Cory Foy
http://www.cornetdesign.com
http://www.agileflorida.com


-------------------------------------------------------------------------
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=/
Cory Foy
2008-08-28 03:29:09 UTC
Permalink
Ok, found it. ITestCaseData isn't listed in the nunit.framework.build
file. The updated file is attached.

Got all the way to PNUnit this time. I'm going to keep playing with
this. I'm building it on OSX with the latest Mono version. Should be fun. ;)

Cory
Post by Cory Foy
Hi All,
Just checked out the latest version of NUnit from SVN. I'm seeing the
following. This was with an "nant build-all". Looks like ITestCaseData
was added on 8/16?
[echo] *
[echo] * Starting mono-1.0 debug build
[echo] *
[nant]
/Users/foyc/Workspace/nunit/nunit20/src/NUnitFramework/framework/nunit.framework.build
build
file:///Users/foyc/Workspace/nunit/nunit20/src/NUnitFramework/framework/nunit.framework.build
Target framework: Mono 1.0 Profile
Target(s) specified: build
[csc] Compiling 70 files to
'/Users/foyc/Workspace/nunit/nunit20/build/mono/1.0/debug/lib/nunit.framework.dll'.
[csc]
error CS0246: The type or namespace name `ITestCaseData' could not be
found. Are you missing a using directive or an assembly reference?
[csc]
error CS0246: The type or namespace name `ITestCaseData' could not be
found. Are you missing a using directive or an assembly reference?
[csc] Compilation failed: 2 error(s), 0 warnings
BUILD FAILED - 0 non-fatal error(s), 2 warning(s)
/Library/Frameworks/Mono.framework/Versions/1.9.1/lib/mono/1.0/mcs.exe
(return code was 1)
Total time: 0.6 seconds.
BUILD FAILED
--
Cory Foy
http://www.cornetdesign.com
http://www.agileflorida.com
Charlie Poole
2008-08-28 05:27:09 UTC
Permalink
Thanks, I'll check that in shortly.

Charlie
-----Original Message-----
Behalf Of Cory Foy
Sent: Wednesday, August 27, 2008 8:29 PM
Subject: Re: [nunit-developer] SVN Not building?
Ok, found it. ITestCaseData isn't listed in the
nunit.framework.build file. The updated file is attached.
Got all the way to PNUnit this time. I'm going to keep
playing with this. I'm building it on OSX with the latest
Mono version. Should be fun. ;)
Cory
Post by Cory Foy
Hi All,
Just checked out the latest version of NUnit from SVN. I'm
seeing the
Post by Cory Foy
following. This was with an "nant build-all". Looks like
ITestCaseData
Post by Cory Foy
was added on 8/16?
[echo] *
[echo] * Starting mono-1.0 debug build
[echo] *
[nant]
/Users/foyc/Workspace/nunit/nunit20/src/NUnitFramework/framework/nunit
Post by Cory Foy
.framework.build
build
file:///Users/foyc/Workspace/nunit/nunit20/src/NUnitFramework/
framework/nunit.framework.build
Post by Cory Foy
Target framework: Mono 1.0 Profile
Target(s) specified: build
[csc] Compiling 70 files to
'/Users/foyc/Workspace/nunit/nunit20/build/mono/1.0/debug/lib/
nunit.framework.dll'.
Post by Cory Foy
[csc]
/Users/foyc/Workspace/nunit/nunit20/src/NUnitFramework/framewo
Post by Cory Foy
error CS0246: The type or namespace name `ITestCaseData'
could not be
Post by Cory Foy
found. Are you missing a using directive or an assembly reference?
[csc]
/Users/foyc/Workspace/nunit/nunit20/src/NUnitFramework/framewo
Post by Cory Foy
error CS0246: The type or namespace name `ITestCaseData'
could not be
Post by Cory Foy
found. Are you missing a using directive or an assembly reference?
[csc] Compilation failed: 2 error(s), 0 warnings
BUILD FAILED - 0 non-fatal error(s), 2 warning(s)
/Users/foyc/Workspace/nunit/nunit20/src/NUnitFramework/framewo
/Library/Frameworks/Mono.framework/Versions/1.9.1/lib/mono/1.0/mcs.exe
Post by Cory Foy
(return code was 1)
Total time: 0.6 seconds.
BUILD FAILED
--
Cory Foy
http://www.cornetdesign.com
http://www.agileflorida.com
-------------------------------------------------------------------------
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=/
Cory Foy
2008-08-28 03:33:08 UTC
Permalink
Ok, new issue. PNunitAgent isn't building because the file is checked in
as agent.cs but referenced as Agent.cs in the build script. Charlie, how
do you want to handle that?

Cory
Post by Cory Foy
Hi All,
Just checked out the latest version of NUnit from SVN. I'm seeing the
following. This was with an "nant build-all". Looks like ITestCaseData
was added on 8/16?
[echo] *
[echo] * Starting mono-1.0 debug build
[echo] *
[nant]
/Users/foyc/Workspace/nunit/nunit20/src/NUnitFramework/framework/nunit.framework.build
build
file:///Users/foyc/Workspace/nunit/nunit20/src/NUnitFramework/framework/nunit.framework.build
Target framework: Mono 1.0 Profile
Target(s) specified: build
[csc] Compiling 70 files to
'/Users/foyc/Workspace/nunit/nunit20/build/mono/1.0/debug/lib/nunit.framework.dll'.
[csc]
error CS0246: The type or namespace name `ITestCaseData' could not be
found. Are you missing a using directive or an assembly reference?
[csc]
error CS0246: The type or namespace name `ITestCaseData' could not be
found. Are you missing a using directive or an assembly reference?
[csc] Compilation failed: 2 error(s), 0 warnings
BUILD FAILED - 0 non-fatal error(s), 2 warning(s)
/Library/Frameworks/Mono.framework/Versions/1.9.1/lib/mono/1.0/mcs.exe
(return code was 1)
Total time: 0.6 seconds.
BUILD FAILED
--
Cory Foy
http://www.cornetdesign.com
http://www.agileflorida.com


-------------------------------------------------------------------------
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=/
Cory Foy
2008-08-28 03:51:16 UTC
Permalink
Ok, final issue for the night. I'm running the following:

nant mono-2.0 build-all

but it looks like the build script is looping over the
installed.frameworks and resetting it back to 1.0. This is causing a
failre in PNUnitAgent because the Mono 1.0 profile doesn't know about
Tcp Remoting. Can I get a refresher on how to get that to stick?

Cory
Post by Cory Foy
Ok, new issue. PNunitAgent isn't building because the file is checked in
as agent.cs but referenced as Agent.cs in the build script. Charlie, how
do you want to handle that?
Cory
Post by Cory Foy
Hi All,
Just checked out the latest version of NUnit from SVN. I'm seeing the
following. This was with an "nant build-all". Looks like ITestCaseData
was added on 8/16?
[echo] *
[echo] * Starting mono-1.0 debug build
[echo] *
[nant]
/Users/foyc/Workspace/nunit/nunit20/src/NUnitFramework/framework/nunit.framework.build
build
file:///Users/foyc/Workspace/nunit/nunit20/src/NUnitFramework/framework/nunit.framework.build
Target framework: Mono 1.0 Profile
Target(s) specified: build
[csc] Compiling 70 files to
'/Users/foyc/Workspace/nunit/nunit20/build/mono/1.0/debug/lib/nunit.framework.dll'.
[csc]
error CS0246: The type or namespace name `ITestCaseData' could not be
found. Are you missing a using directive or an assembly reference?
[csc]
error CS0246: The type or namespace name `ITestCaseData' could not be
found. Are you missing a using directive or an assembly reference?
[csc] Compilation failed: 2 error(s), 0 warnings
BUILD FAILED - 0 non-fatal error(s), 2 warning(s)
/Library/Frameworks/Mono.framework/Versions/1.9.1/lib/mono/1.0/mcs.exe
(return code was 1)
Total time: 0.6 seconds.
BUILD FAILED
--
Cory Foy
http://www.cornetdesign.com
http://www.agileflorida.com


-------------------------------------------------------------------------
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=/
Charlie Poole
2008-08-28 05:41:09 UTC
Permalink
The build-all target builds the current config for all targets.
So it's ignoring your setting of the target as mono-2.0 and
attempting to build debug for all the supported targets you
have installed.

I'm guessing you meant to use
nant mono-2.0 build
-----Original Message-----
Behalf Of Cory Foy
Sent: Wednesday, August 27, 2008 8:51 PM
Subject: Re: [nunit-developer] SVN Not building?
nant mono-2.0 build-all
but it looks like the build script is looping over the
installed.frameworks and resetting it back to 1.0. This is
causing a failre in PNUnitAgent because the Mono 1.0 profile
doesn't know about Tcp Remoting. Can I get a refresher on how
to get that to stick?
Cory
Post by Cory Foy
Ok, new issue. PNunitAgent isn't building because the file
is checked
Post by Cory Foy
in as agent.cs but referenced as Agent.cs in the build script.
Charlie, how do you want to handle that?
Cory
Post by Cory Foy
Hi All,
Just checked out the latest version of NUnit from SVN. I'm
seeing the
Post by Cory Foy
Post by Cory Foy
following. This was with an "nant build-all". Looks like
ITestCaseData was added on 8/16?
[echo] *
[echo] * Starting mono-1.0 debug build
[echo] *
[nant]
/Users/foyc/Workspace/nunit/nunit20/src/NUnitFramework/framework/nuni
Post by Cory Foy
Post by Cory Foy
t.framework.build
build
file:///Users/foyc/Workspace/nunit/nunit20/src/NUnitFramework/
framework/nunit.framework.build
Post by Cory Foy
Post by Cory Foy
Target framework: Mono 1.0 Profile
Target(s) specified: build
[csc] Compiling 70 files to
'/Users/foyc/Workspace/nunit/nunit20/build/mono/1.0/debug/lib/
nunit.framework.dll'.
Post by Cory Foy
Post by Cory Foy
[csc]
/Users/foyc/Workspace/nunit/nunit20/src/NUnitFramework/framewo
Post by Cory Foy
Post by Cory Foy
error CS0246: The type or namespace name `ITestCaseData'
could not be
Post by Cory Foy
Post by Cory Foy
found. Are you missing a using directive or an assembly reference?
[csc]
/Users/foyc/Workspace/nunit/nunit20/src/NUnitFramework/framewo
Post by Cory Foy
Post by Cory Foy
error CS0246: The type or namespace name `ITestCaseData'
could not be
Post by Cory Foy
Post by Cory Foy
found. Are you missing a using directive or an assembly reference?
[csc] Compilation failed: 2 error(s), 0 warnings
BUILD FAILED - 0 non-fatal error(s), 2 warning(s)
/Users/foyc/Workspace/nunit/nunit20/src/NUnitFramework/framewo
/Library/Frameworks/Mono.framework/Versions/1.9.1/lib/mono/1.0/mcs.ex
Post by Cory Foy
Post by Cory Foy
e
(return code was 1)
Total time: 0.6 seconds.
BUILD FAILED
--
Cory Foy
http://www.cornetdesign.com
http://www.agileflorida.com
--------------------------------------------------------------
-----------
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=/
_______________________________________________
nunit-developer mailing list
https://lists.sourceforge.net/lists/listinfo/nunit-developer
-------------------------------------------------------------------------
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=/
Charlie Poole
2008-08-28 05:33:01 UTC
Permalink
It came from the Codice guys as agent.cs, so the build
script is wrong. I'll update it.

Charlie
-----Original Message-----
Behalf Of Cory Foy
Sent: Wednesday, August 27, 2008 8:33 PM
Subject: Re: [nunit-developer] SVN Not building?
Ok, new issue. PNunitAgent isn't building because the file is
checked in as agent.cs but referenced as Agent.cs in the
build script. Charlie, how do you want to handle that?
Cory
Post by Cory Foy
Hi All,
Just checked out the latest version of NUnit from SVN. I'm
seeing the
Post by Cory Foy
following. This was with an "nant build-all". Looks like
ITestCaseData
Post by Cory Foy
was added on 8/16?
[echo] *
[echo] * Starting mono-1.0 debug build
[echo] *
[nant]
/Users/foyc/Workspace/nunit/nunit20/src/NUnitFramework/framework/nunit
Post by Cory Foy
.framework.build
build
file:///Users/foyc/Workspace/nunit/nunit20/src/NUnitFramework/
framework/nunit.framework.build
Post by Cory Foy
Target framework: Mono 1.0 Profile
Target(s) specified: build
[csc] Compiling 70 files to
'/Users/foyc/Workspace/nunit/nunit20/build/mono/1.0/debug/lib/
nunit.framework.dll'.
Post by Cory Foy
[csc]
/Users/foyc/Workspace/nunit/nunit20/src/NUnitFramework/framewo
Post by Cory Foy
error CS0246: The type or namespace name `ITestCaseData'
could not be
Post by Cory Foy
found. Are you missing a using directive or an assembly reference?
[csc]
/Users/foyc/Workspace/nunit/nunit20/src/NUnitFramework/framewo
Post by Cory Foy
error CS0246: The type or namespace name `ITestCaseData'
could not be
Post by Cory Foy
found. Are you missing a using directive or an assembly reference?
[csc] Compilation failed: 2 error(s), 0 warnings
BUILD FAILED - 0 non-fatal error(s), 2 warning(s)
/Users/foyc/Workspace/nunit/nunit20/src/NUnitFramework/framewo
/Library/Frameworks/Mono.framework/Versions/1.9.1/lib/mono/1.0/mcs.exe
Post by Cory Foy
(return code was 1)
Total time: 0.6 seconds.
BUILD FAILED
--
Cory Foy
http://www.cornetdesign.com
http://www.agileflorida.com
--------------------------------------------------------------
-----------
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=/
_______________________________________________
nunit-developer mailing list
https://lists.sourceforge.net/lists/listinfo/nunit-developer
-------------------------------------------------------------------------
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=/
Cory Foy
2008-08-28 16:59:34 UTC
Permalink
The build-all target builds the current config for all targets.
So it's ignoring your setting of the target as mono-2.0 and
attempting to build debug for all the supported targets you
have installed.
I'm guessing you meant to use
nant mono-2.0 build
Ah, thanks. Ok, here are the other files that need to be modified.
Mostly missing references.

src/NUnitCore/core/nunit.core.build
src/ClientUtilities/util/nunit.util.build
src/GuiRunner/nunit-gui/nunit-gui.build
src/PNUnit/agent/pnunit-agent.build
src/PNUnit/launcher/pnunit-launcher.build
src/NUnitFramework/framework/nunit.framework.build
src/NUnitFramework/tests/nunit.framework.tests.build
src/NUnitFramework/tests/NullableTypesTests.cs

With these changes, everything builds. Almost everything was either
missing references or missing includes. The only exception was the
NullableTypesTests - that whole thing doesn't compile, complaining that:

[csc]
/Users/foyc/Workspace/nunit/nunit20/src/NUnitFramework/tests/NullableTypesTests.cs(35,20):
error CS1502: The best overloaded method match for
`NUnit.Framework.Assert.Greater(int, int)' has some invalid arguments
[csc]
/Users/foyc/Workspace/nunit/nunit20/build/mono/2.0/debug/lib/nunit.framework.dll
(Location of the symbol related to previous error)
[csc]
/Users/foyc/Workspace/nunit/nunit20/src/NUnitFramework/tests/NullableTypesTests.cs(35,20):
error CS1503: Argument 1: Cannot convert type `int?' to `int'


and about 70 other similar errors. So I just added to the preprocess #if
to ignore the tests if MONO.

Next up is to run the tests and see where we can get. ;)
--
Cory Foy
http://www.cornetdesign.com
http://www.agileflorida.com
Charlie Poole
2008-08-28 17:30:25 UTC
Permalink
Hi Cory,

Thanks for the fixes - I have to confess I haven't built it for
on mono for a few weeks since my build system was being used
for something else.

Charlie
-----Original Message-----
Behalf Of Cory Foy
Sent: Thursday, August 28, 2008 10:00 AM
To: Charlie Poole
Subject: Re: [nunit-developer] SVN Not building?
The build-all target builds the current config for all targets.
So it's ignoring your setting of the target as mono-2.0
and > attempting to build debug for all the supported
targets you > have installed.
I'm guessing you meant to use
nant mono-2.0 build
Ah, thanks. Ok, here are the other files that need to be modified.
Mostly missing references.
src/NUnitCore/core/nunit.core.build
src/ClientUtilities/util/nunit.util.build
src/GuiRunner/nunit-gui/nunit-gui.build
src/PNUnit/agent/pnunit-agent.build
src/PNUnit/launcher/pnunit-launcher.build
src/NUnitFramework/framework/nunit.framework.build
src/NUnitFramework/tests/nunit.framework.tests.build
src/NUnitFramework/tests/NullableTypesTests.cs
With these changes, everything builds. Almost everything was
either missing references or missing includes. The only
exception was the NullableTypesTests - that whole thing
[csc]
/Users/foyc/Workspace/nunit/nunit20/src/NUnitFramework/tests/N
error CS1502: The best overloaded method match for
`NUnit.Framework.Assert.Greater(int, int)' has some invalid arguments
[csc]
/Users/foyc/Workspace/nunit/nunit20/build/mono/2.0/debug/lib/n
unit.framework.dll
(Location of the symbol related to previous error)
[csc]
/Users/foyc/Workspace/nunit/nunit20/src/NUnitFramework/tests/N
error CS1503: Argument 1: Cannot convert type `int?' to `int'
and about 70 other similar errors. So I just added to the
preprocess #if to ignore the tests if MONO.
Next up is to run the tests and see where we can get. ;)
--
Cory Foy
http://www.cornetdesign.com
http://www.agileflorida.com
-------------------------------------------------------------------------
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=/
Charlie Poole
2008-08-29 05:13:07 UTC
Permalink
I'm trying to figure out just /why/ some of those missing
references are needed in your environment before checking
in the changes. Any ideas?

Charlie
-----Original Message-----
Behalf Of Cory Foy
Sent: Thursday, August 28, 2008 10:00 AM
To: Charlie Poole
Subject: Re: [nunit-developer] SVN Not building?
The build-all target builds the current config for all targets.
So it's ignoring your setting of the target as mono-2.0
and > attempting to build debug for all the supported
targets you > have installed.
I'm guessing you meant to use
nant mono-2.0 build
Ah, thanks. Ok, here are the other files that need to be modified.
Mostly missing references.
src/NUnitCore/core/nunit.core.build
src/ClientUtilities/util/nunit.util.build
src/GuiRunner/nunit-gui/nunit-gui.build
src/PNUnit/agent/pnunit-agent.build
src/PNUnit/launcher/pnunit-launcher.build
src/NUnitFramework/framework/nunit.framework.build
src/NUnitFramework/tests/nunit.framework.tests.build
src/NUnitFramework/tests/NullableTypesTests.cs
With these changes, everything builds. Almost everything was
either missing references or missing includes. The only
exception was the NullableTypesTests - that whole thing
[csc]
/Users/foyc/Workspace/nunit/nunit20/src/NUnitFramework/tests/N
error CS1502: The best overloaded method match for
`NUnit.Framework.Assert.Greater(int, int)' has some invalid arguments
[csc]
/Users/foyc/Workspace/nunit/nunit20/build/mono/2.0/debug/lib/n
unit.framework.dll
(Location of the symbol related to previous error)
[csc]
/Users/foyc/Workspace/nunit/nunit20/src/NUnitFramework/tests/N
error CS1503: Argument 1: Cannot convert type `int?' to `int'
and about 70 other similar errors. So I just added to the
preprocess #if to ignore the tests if MONO.
Next up is to run the tests and see where we can get. ;)
--
Cory Foy
http://www.cornetdesign.com
http://www.agileflorida.com
-------------------------------------------------------------------------
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=/
Cory Foy
2008-08-29 10:53:31 UTC
Permalink
Post by Charlie Poole
I'm trying to figure out just /why/ some of those missing
references are needed in your environment before checking
in the changes. Any ideas?
Most of them were either System.Configuration.dll or
System.Runtime.Remoting.dll. I guess I don't understand why those
references /wouldn't/ be there.
--
Cory Foy
http://www.cornetdesign.com
http://www.agileflorida.com


-------------------------------------------------------------------------
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=/
Matt
2008-08-29 16:45:57 UTC
Permalink
Post by Cory Foy
Post by Charlie Poole
I'm trying to figure out just /why/ some of those missing
references are needed in your environment before checking
in the changes. Any ideas?
Most of them were either System.Configuration.dll or
System.Runtime.Remoting.dll. I guess I don't understand why those
references /wouldn't/ be there.
Microsoft's compiler implicitly adds a bunch of references, which the
linker then optimizes out. Mono's behaviour is more correct, in this
particular instance, in my opinion.


--
tangled strands of DNA explain the way that I behave.
http://www.clock.org/~matt

-------------------------------------------------------------------------
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=/
Charlie Poole
2008-08-29 17:30:34 UTC
Permalink
Hi Matt,
Post by Matt
Microsoft's compiler implicitly adds a bunch of references,
which the linker then optimizes out. Mono's behaviour is more
correct, in this particular instance, in my opinion.
Oddly, I couldn't find this info anywhere.

Charlie



-------------------------------------------------------------------------
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=/
Matt
2008-08-29 19:29:16 UTC
Permalink
Post by Charlie Poole
Post by Matt
Microsoft's compiler implicitly adds a bunch of references,
which the linker then optimizes out. Mono's behaviour is more
correct, in this particular instance, in my opinion.
Oddly, I couldn't find this info anywhere.
To my knowledge, it's not documented. If you write little example programs
and them compile them at the commandline with csc.exe, there's all kinds
of things you don't have to specify.

I understand why they did it, but it would be nice for them to document
it. I'd love to see the profile-guided recompiler service documented as
well... hpoefully in the next version of CLR via C#, if there is one.

--
tangled strands of DNA explain the way that I behave.
http://www.clock.org/~matt

-------------------------------------------------------------------------
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=/
Charlie Poole
2008-08-30 01:49:40 UTC
Permalink
Hi Matt,
Post by Matt
Post by Charlie Poole
Post by Matt
Microsoft's compiler implicitly adds a bunch of
references, which the
Post by Charlie Poole
Post by Matt
linker then optimizes out. Mono's behaviour is more
correct, in this
Post by Charlie Poole
Post by Matt
particular instance, in my opinion.
Oddly, I couldn't find this info anywhere.
To my knowledge, it's not documented. If you write little
example programs and them compile them at the commandline
with csc.exe, there's all kinds of things you don't have to specify.
I guess I'll just accept it and move on. :-)
Post by Matt
I understand why they did it, but it would be nice for them
to document it. I'd love to see the profile-guided recompiler
service documented as well... hpoefully in the next version
of CLR via C#, if there is one.
I Googled that and it looks interesting. Here's hoping.

Charlie
Post by Matt
--
tangled strands of DNA explain the way that I behave.
http://www.clock.org/~matt
--------------------------------------------------------------
-----------
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=/
_______________________________________________
nunit-developer mailing list
https://lists.sourceforge.net/lists/listinfo/nunit-developer
-------------------------------------------------------------------------
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=/
Charlie Poole
2008-08-29 17:29:11 UTC
Permalink
I don't either. But it builds with csc and my understanding was
that mscorlib is the only thing csc references by default.

Anyway, I'll add the refs.

Charlie
-----Original Message-----
Sent: Friday, August 29, 2008 3:54 AM
To: Charlie Poole
Subject: Re: [nunit-developer] SVN Not building?
Post by Charlie Poole
I'm trying to figure out just /why/ some of those missing
references
Post by Charlie Poole
are needed in your environment before checking in the changes. Any
ideas?
Most of them were either System.Configuration.dll or
System.Runtime.Remoting.dll. I guess I don't understand why
those references /wouldn't/ be there.
--
Cory Foy
http://www.cornetdesign.com
http://www.agileflorida.com
-------------------------------------------------------------------------
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=/
Charlie Poole
2008-08-29 17:24:36 UTC
Permalink
Hi Cory,

OK, here's what I figured out about NullableTypes tests...

The first line that fails to compile is
Assert.Greater(five, 3);
where five is int?

This is interesting since these lines that precede it compile:
Assert.AreEqual(five, 5);
Assert.AreEqual(5, five);

AreEqual has an (object,object) overload, which is used in this
case by both MS and Mono. Greater has (IComparable,IComparable)
which MS uses, but Mono does not use.

Mono is picking up the (int,int) overload and trying to use it,
but there is no implicit conversion of int? to int. If I comment
out the (int,int) overload, it goes on to try (uint,uint). I'll
create a simpler test case to see if it /ever/ uses the
IComparable interface.

Fact is, Nullable<T> does't implement IComparable! Apparently
the MS compiler is doing some magic with int? that Mono is
not duplicating.

For now, I applied your fix of removing these tests from the
Mono build.

Charlie
-----Original Message-----
Behalf Of Cory Foy
Sent: Thursday, August 28, 2008 10:00 AM
To: Charlie Poole
Subject: Re: [nunit-developer] SVN Not building?
The build-all target builds the current config for all targets.
So it's ignoring your setting of the target as mono-2.0
and > attempting to build debug for all the supported
targets you > have installed.
I'm guessing you meant to use
nant mono-2.0 build
Ah, thanks. Ok, here are the other files that need to be modified.
Mostly missing references.
src/NUnitCore/core/nunit.core.build
src/ClientUtilities/util/nunit.util.build
src/GuiRunner/nunit-gui/nunit-gui.build
src/PNUnit/agent/pnunit-agent.build
src/PNUnit/launcher/pnunit-launcher.build
src/NUnitFramework/framework/nunit.framework.build
src/NUnitFramework/tests/nunit.framework.tests.build
src/NUnitFramework/tests/NullableTypesTests.cs
With these changes, everything builds. Almost everything was
either missing references or missing includes. The only
exception was the NullableTypesTests - that whole thing
[csc]
/Users/foyc/Workspace/nunit/nunit20/src/NUnitFramework/tests/N
error CS1502: The best overloaded method match for
`NUnit.Framework.Assert.Greater(int, int)' has some invalid arguments
[csc]
/Users/foyc/Workspace/nunit/nunit20/build/mono/2.0/debug/lib/n
unit.framework.dll
(Location of the symbol related to previous error)
[csc]
/Users/foyc/Workspace/nunit/nunit20/src/NUnitFramework/tests/N
error CS1503: Argument 1: Cannot convert type `int?' to `int'
and about 70 other similar errors. So I just added to the
preprocess #if to ignore the tests if MONO.
Next up is to run the tests and see where we can get. ;)
--
Cory Foy
http://www.cornetdesign.com
http://www.agileflorida.com
-------------------------------------------------------------------------
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=/
Cory Foy
2008-08-30 12:30:12 UTC
Permalink
Hi Charlie,
Post by Charlie Poole
AreEqual has an (object,object) overload, which is used in this
case by both MS and Mono. Greater has (IComparable,IComparable)
which MS uses, but Mono does not use.
Mono is picking up the (int,int) overload and trying to use it,
but there is no implicit conversion of int? to int. If I comment
out the (int,int) overload, it goes on to try (uint,uint). I'll
create a simpler test case to see if it /ever/ uses the
IComparable interface.
Fact is, Nullable<T> does't implement IComparable! Apparently
the MS compiler is doing some magic with int? that Mono is
not duplicating.
Fun stuff. Perhaps we can come up with a simple example which works on
one but not the other to send over to the Mono guys.
Post by Charlie Poole
For now, I applied your fix of removing these tests from the
Mono build.
Ok, thanks! Now to figure out why the tests aren't running...
--
Cory Foy
http://www.cornetdesign.com
http://www.agileflorida.com


-------------------------------------------------------------------------
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=/
Gert Driesen
2008-08-30 16:36:59 UTC
Permalink
FYI, I've submitted a bug against gmcs for this:
https://bugzilla.novell.com/show_bug.cgi?id=421737

-----Original Message-----
From: nunit-developer-***@lists.sourceforge.net
[mailto:nunit-developer-***@lists.sourceforge.net] On Behalf Of Cory Foy
Sent: zaterdag 30 augustus 2008 14:30
To: nunit-***@lists.sourceforge.net
Subject: Re: [nunit-developer] SVN Not building?

Hi Charlie,
Post by Charlie Poole
AreEqual has an (object,object) overload, which is used in this
case by both MS and Mono. Greater has (IComparable,IComparable)
which MS uses, but Mono does not use.
Mono is picking up the (int,int) overload and trying to use it,
but there is no implicit conversion of int? to int. If I comment
out the (int,int) overload, it goes on to try (uint,uint). I'll
create a simpler test case to see if it /ever/ uses the
IComparable interface.
Fact is, Nullable<T> does't implement IComparable! Apparently
the MS compiler is doing some magic with int? that Mono is
not duplicating.
Fun stuff. Perhaps we can come up with a simple example which works on
one but not the other to send over to the Mono guys.
Post by Charlie Poole
For now, I applied your fix of removing these tests from the
Mono build.
Ok, thanks! Now to figure out why the tests aren't running...
--
Cory Foy
http://www.cornetdesign.com
http://www.agileflorida.com


-------------------------------------------------------------------------
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=/
_______________________________________________
nunit-developer mailing list
nunit-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nunit-developer


-------------------------------------------------------------------------
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=/
Charlie Poole
2008-08-30 18:11:00 UTC
Permalink
Hi Cory,
Post by Cory Foy
Post by Charlie Poole
For now, I applied your fix of removing these tests from the Mono
build.
Ok, thanks! Now to figure out why the tests aren't running...
I found another apparent compiler bug, which prevented combinatorial
tests from loading - has to do with the implementation of iterators.
I have a workaround I'll check in later today.

With that in, we're down to test failures, rather than crashing,
which should make life easier.

Charlie
Post by Cory Foy
--
Cory Foy
http://www.cornetdesign.com
http://www.agileflorida.com
--------------------------------------------------------------
-----------
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=/
_______________________________________________
nunit-developer mailing list
https://lists.sourceforge.net/lists/listinfo/nunit-developer
-------------------------------------------------------------------------
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=/
Charlie Poole
2008-08-31 01:24:14 UTC
Permalink
I've made some checkins that improve the situation....

* It builds under mono.
* The tests all run using the console runner but there's
an exception thrown after the tests have run.
* All tests now pass, but only because I've marked a number
of things as not working in Mono.
* Running the Gui, there are a large number of errors and
failures and a number of UI glitches, in addition to
all of the above.

I've been neglecting mono for the past month or two and a
lot of new code has been added, so this isn't terribly
surprising. Hopefully, it will all get under control and
we can figure out which issues are for Mono and which
are NUnit's.

Charlie
-----Original Message-----
Behalf Of Charlie Poole
Sent: Saturday, August 30, 2008 11:11 AM
Subject: Re: [nunit-developer] SVN Not building?
Hi Cory,
Post by Cory Foy
Post by Charlie Poole
For now, I applied your fix of removing these tests from the Mono
build.
Ok, thanks! Now to figure out why the tests aren't running...
I found another apparent compiler bug, which prevented
combinatorial tests from loading - has to do with the
implementation of iterators.
I have a workaround I'll check in later today.
With that in, we're down to test failures, rather than
crashing, which should make life easier.
Charlie
Post by Cory Foy
--
Cory Foy
http://www.cornetdesign.com
http://www.agileflorida.com
--------------------------------------------------------------
-----------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge Build the coolest Linux based applications with
Moblin SDK &
Post by Cory Foy
win great prizes Grand prize is a trip for two to an Open
Source event
Post by Cory Foy
anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
nunit-developer mailing list
https://lists.sourceforge.net/lists/listinfo/nunit-developer
--------------------------------------------------------------
-----------
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=/
_______________________________________________
nunit-developer mailing list
https://lists.sourceforge.net/lists/listinfo/nunit-developer
-------------------------------------------------------------------------
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=/
Cory Foy
2008-08-31 02:54:52 UTC
Permalink
Thanks Charlie. I pulled down the new sources, and this is what I'm getting:


BUILD FAILED


/Users/foyc/Workspace/nunit/nunit20/src/NUnitTestServer/nunit-agent-exe/nunit-agent.exe.build(24,6):
Could not find file
'/Users/foyc/Workspace/nunit/nunit20/src/NUnitTestServer/nunit-agent-exe/Ship.config'
to copy.
--
Cory Foy
http://www.cornetdesign.com
http://www.agileflorida.com


-------------------------------------------------------------------------
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=/
Charlie Poole
2008-08-31 05:05:04 UTC
Permalink
That's part of a change I hadn't intended to check in yet.
Since it's there, I added Ship.config. Or you can just
copy App.config for the moment.

Charlie
-----Original Message-----
Behalf Of Cory Foy
Sent: Saturday, August 30, 2008 7:55 PM
Subject: Re: [nunit-developer] SVN Not building?
Thanks Charlie. I pulled down the new sources, and this is
BUILD FAILED
/Users/foyc/Workspace/nunit/nunit20/src/NUnitTestServer/nunit-
Could not find file
'/Users/foyc/Workspace/nunit/nunit20/src/NUnitTestServer/nunit
-agent-exe/Ship.config'
to copy.
--
Cory Foy
http://www.cornetdesign.com
http://www.agileflorida.com
--------------------------------------------------------------
-----------
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=/
_______________________________________________
nunit-developer mailing list
https://lists.sourceforge.net/lists/listinfo/nunit-developer
-------------------------------------------------------------------------
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=/

Charlie Poole
2008-08-30 18:08:04 UTC
Permalink
Thanks! I was wondering if it merely failed to work in the
presence of other overloads or didn't work at all. It's
apparently the latter.

Charlie
-----Original Message-----
Behalf Of Gert Driesen
Sent: Saturday, August 30, 2008 9:37 AM
Subject: Re: [nunit-developer] SVN Not building?
https://bugzilla.novell.com/show_bug.cgi?id=421737
-----Original Message-----
Behalf Of Cory Foy
Sent: zaterdag 30 augustus 2008 14:30
Subject: Re: [nunit-developer] SVN Not building?
Hi Charlie,
Post by Charlie Poole
AreEqual has an (object,object) overload, which is used in
this case
Post by Charlie Poole
by both MS and Mono. Greater has (IComparable,IComparable) which MS
uses, but Mono does not use.
Mono is picking up the (int,int) overload and trying to use it, but
there is no implicit conversion of int? to int. If I
comment out the
Post by Charlie Poole
(int,int) overload, it goes on to try (uint,uint). I'll create a
simpler test case to see if it /ever/ uses the IComparable
interface.
Post by Charlie Poole
Fact is, Nullable<T> does't implement IComparable!
Apparently the MS
Post by Charlie Poole
compiler is doing some magic with int? that Mono is not duplicating.
Fun stuff. Perhaps we can come up with a simple example which
works on one but not the other to send over to the Mono guys.
Post by Charlie Poole
For now, I applied your fix of removing these tests from the Mono
build.
Ok, thanks! Now to figure out why the tests aren't running...
--
Cory Foy
http://www.cornetdesign.com
http://www.agileflorida.com
--------------------------------------------------------------
-----------
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=/
_______________________________________________
nunit-developer mailing list
https://lists.sourceforge.net/lists/listinfo/nunit-developer
--------------------------------------------------------------
-----------
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=/
_______________________________________________
nunit-developer mailing list
https://lists.sourceforge.net/lists/listinfo/nunit-developer
-------------------------------------------------------------------------
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=/
Continue reading on narkive:
Loading...