Gert,

To confirm my understanding....I do have .NET framework 1.1 installed and
mono 0.29 installed on my Win XP Pro system.  I am running NAnt set with the
Mono framework as the default framework.  It sounds like when I run the
<solution> task against my Hello_World solution that there are items in the
solution that are requiring the .NET framework but since I have the compile
set to mono it fails because it can not find the MS c# compiler.  The
solution for this is to refactorg the <solution> task to use other NAnt
tasks rather than the command line tools that it currently uses.

Is this a correct understanding?  If so...why would I need to be using the
MS c# compiler when mcs compiler should do the exact same thing?  Or...does
this issue tie back to you other reply where the Nant.Win32Tasks contain
.NET Specific tasks that really should be pulled out into a .NET specific
task?

Thanks.

-----Original Message-----
From: Gert Driesen [mailto:[EMAIL PROTECTED] 
Sent: Saturday, January 24, 2004 10:42 AM
To: Lee M Seidel; 'Cromwell, Ryan'; 'Nicklas Norling'
Cc: NAnt Mailing List (E-Mail)
Subject: Re: [Nant-users] Solutionfile Problem - Newbie


Lee,

The reason for this error is that the <solution> task currently does not use
other NAnt tasks to, for example, perform the compilation.  For now, the
<solution> task directly executes commandline tools to perform these
tasks/steps.  In your case its executing csc.exe (from the MS .NET
Framework) which is not available on your system ...

There has been lots of talk about refactoring the <solution> task, but so
far no one dived in (yet) ...

Gert

----- Original Message ----- 
From: "Lee M Seidel" <[EMAIL PROTECTED]>
To: "'Cromwell, Ryan'" <[EMAIL PROTECTED]>; "'Nicklas Norling'"
<[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, January 23, 2004 5:17 PM
Subject: RE: [Nant-users] Solutionfile Problem - Newbie


As a follow-up....here is the error message from the build when using mono
.29:


Buildfile:  <file:///C:/Visual> file:///C:/Visual Studio Local/C# Hello
World/Hello_World_Examples/Hello_World_Examples.build
Target(s) specified: Release

Release:


Clean:

 [solution] Starting solution build.
 [solution] Building Hello_World_3 [Release]...
                 [copy] Copying 113 files to 'C:\Visual Studio Local\C#
Hello World\Hello_World_Examples\Hello_World_3\bin\Release\'.

BUILD FAILED

INTERNAL ERROR

System.ComponentModel.Win32Exception: The system cannot find the file
specified
   at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo
startInfo)
   at System.Diagnostics.Process.Start()
   at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
   at NAnt.VSNet.Project.Compile(String configuration, ArrayList
alCSCArguments, String strLogFile, Boolean bVerbose, Boolean bShowCommands)
in c:\NAnt0121\src\NAnt.VSNet\Project.cs:line 387
   at NAnt.VSNet.Solution.Compile(String configuration, ArrayList
compilerArguments, String logFile, Boolean verbose, Boolean showCommands) in
c:\NAnt0121\src\NAnt.VSNet\Solution.cs:line 279
   at NAnt.VSNet.Tasks.SolutionTask.ExecuteTask() in
c:\NAnt0121\src\NAnt.VSNet\Tasks\SolutionTask.cs:line 335
   at NAnt.Core.Task.Execute() in c:\NAnt0121\src\NAnt.Core\Task.cs:line 151
   at NAnt.Core.Target.Execute() in c:\NAnt0121\src\NAnt.Core\Target.cs:line
217
   at NAnt.Core.Project.Execute(String targetName, Boolean
forceDependencies) in c:\NAnt0121\src\NAnt.Core\Project.cs:line 772
   at NAnt.Core.Project.Execute() in
c:\NAnt0121\src\NAnt.Core\Project.cs:line 734
   at NAnt.Core.Project.Run() in c:\NAnt0121\src\NAnt.Core\Project.cs:line
797

Please send bug report to  <mailto:[EMAIL PROTECTED]>
[EMAIL PROTECTED]

Total time: 8.5 seconds.
-----Original Message-----
From: Lee M Seidel [mailto:[EMAIL PROTECTED]
Sent: Friday, January 23, 2004 10:59 AM
To: 'Cromwell, Ryan'; 'Nicklas Norling'
Cc: '[EMAIL PROTECTED]'
Subject: RE: [Nant-users] Solutionfile Problem - Newbie


Ryan...Yes I was using the build order dialog and the projects actually
don't depend on each other...that would explain the order issue....I will
check it out with making the projects dependent themselves and see how that
works.

As for the Mono compile issue I am not sure if what I am doing to do the
compile is correct....I simply changed the default framework from net-1.1 to
mono-1.0 in the NAnet.exe.config file in the directory that I cam calling
NAnt from...which is the directory I built NAnt into using the .NET 1.1
framework.  When the build runs I get the following message:

 [solution] Building Hello_World_3 [Release]...
                 [copy] Copying 113 files to 'C:\Visual Studio Local\C#
Hello World\Hello_World_Examples\Hello_World_3\bin\Release\'.

I should get a clean compile, so I would think, just like I do when I have
the default set to net-1.1.  The 113 files that are copied to the Release
directory are .NET framework files....things like
System.Directory.Services.dll and System.XML.dll.  When I try to create an
assembled version of NAnt with mono I get the following error...perhaps it
is mono .29?

     [nant] C:\NAnt0121\src\NAnt.Win32\NAnt.Win32.build build

            Buildfile: <file:///C:/NAnt0121/src/NAnt.Win32/NAnt.Win32.build>
file:///C:/NAnt0121/src/NAnt.Win32/NAnt.Win32.build
            Target(s) specified: build

            build:

                  [csc] Compiling 7 files to
'C:\NAnt0121\build\mono-1.0.win32\nant-0.85-debug\bin\NAnt.Win32Tasks.dll'.

C:\NAnt0121\src\NAnt.Win32\Tasks\ServiceControllerTask.cs(212) error CS0246:
Cannot find type `ServiceController'

C:\NAnt0121\src\NAnt.Win32\Tasks\ServiceControllerTask.cs(235) error CS0246:
Cannot find type `ServiceController'

C:\NAnt0121\src\NAnt.Win32\Tasks\ServiceControllerTask.cs(263) error CS0246:
Cannot find type `ServiceController'

C:\NAnt0121\src\NAnt.Win32\Tasks\ServiceControllerTask.cs(278) error CS0246:
Cannot find type `ServiceController'

C:\NAnt0121\src\NAnt.Win32\Tasks\ServiceControllerTask.cs(321) error CS0246:
Cannot find type `ServiceController'
                        Compilation failed: 5 error(s), 0 warnings

            BUILD FAILED

            C:\NAnt0121\src\NAnt.Win32\NAnt.Win32.build(11,10):
            External Program Failed: C:\Program Files\Mono-0.29\bin\mcs.exe
(return code was 1)

            Total time: 0.7 seconds.
-----Original Message-----
From: Cromwell, Ryan [mailto:[EMAIL PROTECTED]
Sent: Friday, January 23, 2004 8:32 AM
To: Nicklas Norling; Lee M Seidel
Cc: [EMAIL PROTECTED]
Subject: RE: [Nant-users] Solutionfile Problem - Newbie


This is in response to Lee - I don't have your original.

Are you setting the build order yourself through the Build Order dialog?  If
so, I don't believe that would be used.  The task generates the build order
itself by checking the project dependencies.  That said, if your hello world
projects do not reference each other, there is no build order.

As for the copying of everything, are you sure the assemblies are being
copied or are they xml files?  If so, those are the help files I believe.

FYI: Please don't quote me on either one!  It's been a couple weeks since I
skimmed the solution task code.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Nicklas Norling
Sent: Friday, January 23, 2004 3:30 AM
To: 'Lee M Seidel'
Cc: [EMAIL PROTECTED]
Subject: RE: [Nant-users] Solutionfile Problem - Newbie

Hi.

I've been using the solution task quite extensivly with solution files with
over 30 projects. I'v never had a problem where project dependencies did not
work as of the final 0.84 release. Can you create a reproducable case on
this?

As for mono, I'm not quite sure I understand, can you describe the steps to
reproduce? What versions are you using, what platforms etc. would be nice.
/Nicke -----Original Message-----
From: Lee M Seidel [mailto:[EMAIL PROTECTED]
Sent: den 23 januari 2004 05:09
To: [EMAIL PROTECTED]
Subject: [Nant-users] Solutionfile Problem - Newbie
I am a newbie to using NAnt.....I loaded and built the 01/21 build.  I have
a VS 2003 solution file that has 6 projects.  The 6 projects are just simple
hello world examples done in different styles.

I have two problems:

1.
When I run the build using the NET-1.1 framework the projects all compile
fine but the project predecessor order is ignored.  In this case it is not
an issue but for real multi-project Solutions that have to be compiled in a
certain order to compile successfully.

2.
When I switch the NAnt.exe.config to use the mono-1.0 framework(I have mono
.29 installed and updated the config files version) something weird happens
and it looks like the whole .Net Framework ends up in the folder where the
assembled project is to go.

Any help would be appreciated.

Thanks.

Lee





-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to