I have problem using Nant for to compile a C# project.  

OS= Fedora Core 3.
NET= Mono 1.0.2

---------------------------------------------------------------------------------------------------------------------

[EMAIL PROTECTED] AuthorToolsServices]$ mono ../Nant/bin/NAnt.exe -verbose
Compat mode: the request from /home/marketing/Nant/bin/log4net.dll to
load System was remapped (http://www.go-mono.com/remap.html)
Compat mode: the request from /home/marketing/Nant/bin/log4net.dll to
load System.Data was remapped (http://www.go-mono.com/remap.html)
Compat mode: the request from /home/marketing/Nant/bin/log4net.dll to
load System.Web was remapped (http://www.go-mono.com/remap.html)
NAnt 0.85 (Build 0.85.1793.0; rc1; 11/28/2004)
Copyright (C) 2001-2004 Gerry Shaw
http://nant.sourceforge.net

Framework 'mono-2.0' is invalid and has not been loaded : Framework
assembly directory '/usr/lib/mono/2.0' does not exist.

Buildfile: file:///home/marketing/AuthorToolsServices/AuthorToolsServices.build
Base Directory: /home/marketing/AuthorToolsServices.
Target(s) specified: build


build:

      [csc] 
'/home/marketing/AuthorToolsServices/WebServicesAuthor/AuthorToolServices.cs'
has been updated, recompiling.
      [csc] Compiling 8 files to
'/home/marketing/AuthorToolsServices/bin/Debug/AuthorTools.dll'.
      [csc] Contents of /tmp/tmp2e38af26.
      [csc] /fullpaths
      [csc] /debug
      [csc] "/define:DEBUG"
      [csc] "/define:TRACE"
      [csc] /nologo
      [csc] "/target:library"
      [csc] "/out:/home/marketing/AuthorToolsServices/bin/Debug/AuthorTools.dll"
      [csc] 
"/reference:/home/marketing/AuthorToolsServices/bin/Debug/Geotools.dll"
      [csc] 
"/reference:/home/marketing/AuthorToolsServices/bin/Debug/SigisMapServer.dll"
      [csc] 
"/home/marketing/AuthorToolsServices/WebServicesAuthor/Application.cs"
      [csc] 
"/home/marketing/AuthorToolsServices/WebServicesAuthor/ApplicationCollection.cs"
      [csc] 
"/home/marketing/AuthorToolsServices/WebServicesAuthor/AssemblyInfo.cs"
      [csc] 
"/home/marketing/AuthorToolsServices/WebServicesAuthor/AuthorToolConfig.cs"
      [csc] 
"/home/marketing/AuthorToolsServices/WebServicesAuthor/AuthorToolServices.cs"
      [csc] 
"/home/marketing/AuthorToolsServices/WebServicesAuthor/DataSource.cs"
      [csc] 
"/home/marketing/AuthorToolsServices/WebServicesAuthor/FolderList.cs"
      [csc] 
"/home/marketing/AuthorToolsServices/WebServicesAuthor/TypesDataSource.cs"
      [csc]
      [csc] Starting '/usr/bin/mono ("/usr/lib/mono/1.0/mcs.exe"
@"/tmp/tmp2e38af26")' in '/home/marketing/AuthorToolsServices'
      [csc] 
/home/marketing/AuthorToolsServices/WebServicesAuthor/AuthorToolServices.cs(20)
error CS0246: Cannot find type `System.Web.Services.WebService'
      [csc] Compilation failed: 1 error(s), 0 warnings

BUILD FAILED

/home/marketing/AuthorToolsServices/AuthorToolsServices.build(5,4):
External Program Failed: /usr/lib/mono/1.0/mcs.exe (return code was 1):
NAnt.Core.BuildException:
/home/marketing/AuthorToolsServices/AuthorToolsServices.build(5,4):
External Program Failed: /usr/lib/mono/1.0/mcs.exe (return code was 1)
in <0x004f3> NAnt.Core.Tasks.ExternalProgramBase:ExecuteTask ()


Total time: 0.5 seconds.

------------------------------------------------------------------------------------------------------------------------------

My Build File is:

000000000000000000000000000000000000000000000000000000000000000000000
<?xml version="1.0" encoding="UTF-8"?>
<project  name="AuthorToolsServices" basedir="." default="build">
        <property name="debug" value="true"/>
        <target name="build" description="Construye la libreria de los 
WebServices">
                <csc target="library" output="./bin/Debug/AuthorTools.dll"  
debug="${debug}">
                                <references>
                                        <include name="System"></include>
                                        <include name="System.Web"></include>   
                                
                                        <include 
name="System.Web.Services"></include>
                                        <include name="System.Xml"></include>
                                        <include name="System.Data"></include>  
                                
                                        <include 
name="./bin/Debug/Geotools.dll"></include>     
                                        <include 
name="./bin/Debug/SigisMapServer.dll"></include>                               
                                </references>
                                 <sources>
                    <include name="./WebServicesAuthor/*.cs" />
                </sources>
                </csc>  
        </target>
</project>
0000000000000000000000000000000000000000000000000000000000000000000000

Ant the Code Section what reference the output work from Nant Is:

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
---------------------------------------------------------------------------------------------------------



// created on 10/15/2004 at 11:07 AM
using System;
using System.ComponentModel;
using System.Web;
using System.Web.Services;
using System.Xml;
using System.Diagnostics;
using System.Xml.Serialization;
using System.Collections;
using System.IO;
using System.Data;
using Geotools;
using Geotools.IO;
using Geotools.Geometries;
using Sigis.MapServer;

namespace MapServer
{       
        [System.Web.Services.WebService (Namespace="http://www.sigis.com.ve";)]
        public class AuthorTools: System.Web.Services.WebService  // <--- 
Here the Compile reference wath can't find
        {

---------------------------------------------------------------------------------------------------------------------
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to