[Mono-list] NAnt config file framework problem with mono 0.91.99

GUnit gmiyake@carter-inc.com
Wed, 12 May 2004 11:25:23 -0600

The latest CVS version fixed the problem with the NAnt config file 
encoding. Thx.

I am now getting the following error when trying to build with NAnt:

"The current runtime framework 'mono-1.0' is not correctly configured in 
the NAnt configuration file."

This configuration file worked under mono 0.31 and I have not modified 
my NAnt version.  I tried updating
NAnt and the nant build failed with a similar error. The NAnt config 
file and error message follow.


NAnt configuration:
<?xml version="1.0" encoding="Windows-1252" ?>
    <!-- Leave this alone. Sets up configsectionhandler section -->
        <section name="nant" type="NAnt.Core.ConfigurationSection, 
NAnt.Core" />
        <section name="log4net" 
type="System.Configuration.IgnoreSectionHandler" />
        <!-- Used to indicate the location of the cache folder for 
shadow files -->
        <add key="shadowfiles.path" 
value="%temp%\nunit20\ShadowCopyCache" />
        <!-- Used to indicate that NAnt should shadow files in a cache 
folder near the executable -->
        <add key="nant.shadowfiles" value="False" />
        <!-- Used to indicate if cached files should be delete when done 
        <add key="nant.shadowfiles.cleanup" value="False" />
        <!-- To enable internal log4net logging, uncomment the next line -->
        <!-- <add key="log4net.Internal.Debug" value="true"/> -->
    <!-- nant config settings -->
            <platform name="unix" default="auto">
                    description="GNOME projects port of the .NET Framework"
                        <includes name="*Tasks.dll" />
                        <includes name="*Tests.dll" />
                        <!-- exclude Microsoft.NET specific extension 
assembly -->
                        <excludes name="NAnt.MSNetTasks.dll" />
                        <!-- exclude Microsoft.NET specific test 
assembly -->
                        <excludes name="NAnt.MSNet.Tests.dll" />
                        <!-- exclude win32 specific extension assembly -->
                        <excludes name="NAnt.Win32Tasks.dll" />
                        <!-- exclude win32 specific test assembly -->
                        <excludes name="NAnt.Win32.Tests.dll" />
                        <property name="clrversion" value="1.1.4322" />
                        <task name="al">
                            <attribute name="exename">al</attribute>
                        <task name="csc">
                            <attribute name="exename">mcs</attribute>
                        <task name="vbc">
                            <attribute name="exename">mbas</attribute>
                        <task name="resgen">
                            <attribute name="exename">monoresgen</attribute>
                        <task name="delay-sign">
                            <attribute name="exename">monosn</attribute>
            <!-- Framework-neutral properties -->
                <!-- <property name="foo" value = "bar" /> -->
            <!-- Framework-neutral task configuration defaults -->
                <!-- settings for individual tasks -->
        <!-- Default properties -->
            <!-- add global properties here in the following format-->
            <!-- <property name="foo" value = "bar" readonly="false" /> -->
        This section contains the log4net configuration settings.

        By default, no messages will be logged to the log4net logging 

        To enable the internal logging, set the threshold attribute on 
the log4net element
        to "ALL".

        When internal logging is enabled, internal messages will be 
written to the
    <log4net threshold="ALL">
        <appender name="ConsoleAppender" 
            <layout type="log4net.Layout.PatternLayout">
                <param name="ConversionPattern" value="[%c{2}:%m  - [%x] 
&lt;%X{auth}&gt;]%n" />
        <appender name="RollingLogFileAppender" 
            <param name="File" value="${APPDATA}\\NAnt\\NAnt.log" />
            <param name="AppendToFile" value="true" />
            <param name="MaxSizeRollBackups" value="2" />
            <param name="MaximumFileSize" value="500KB" />
            <param name="RollingStyle" value="Size" />
            <param name="StaticLogFileName" value="true" />
            <layout type="log4net.Layout.PatternLayout">
            <param name="ConversionPattern" value="[%c{2}:%m  - [%x] 
&lt;%X{auth}&gt;]%n" />
        <!-- Setup the root category, add the appenders and set the 
default level -->
            <!-- Only log messages with severity ERROR (or higher) -->
            <level value="DEBUG" />
            <!-- Log messages to the console -->
            <appender-ref ref="ConsoleAppender" />
            <!-- Uncomment the next line to enable logging messages to 
the NAnt.log file -->
            <!-- <appender-ref ref="RollingLogFileAppender" /> -->
        <!-- Specify the priority for some specific categories -->
        <logger name="NAnt.Core.TaskBuilderCollection">
            <level value="DEBUG" />
        <logger name="NAnt">
            <level value="INFO" />
        <supportedRuntime version="v1.1.4322" />
        <supportedRuntime version="v1.0.3705" />

NAnt error:
nant /f:DC_IAPI.build
Compat mode: the request from 
to load System.Data was remapped (http://www.go-mono.com/remap.html)
Compat mode: the request from 
to load System.Web was remapped (http://www.go-mono.com/remap.html)
[Console.ConsoleStub:Shadowing files(False) -- cleanup=False  - [] <>]
[Console.ConsoleStub:Creating HelperArgs(System.String[])  - [] <>]
[Console.ConsoleStub:NAnt.Core Loaded: NAnt.Core, Version=0.85.1549.0, 
Culture=neutral, PublicKeyToken=null  - [] <>]
NAnt 0.85 (Build 0.85.1549.0; mono-1.0.unix; nightly; 3/29/2004)
Copyright (C) 2001-2004 Gerry Shaw
[Core.Project:Error creating URI in project constructor. Moving on...   
- [] <>]
Exception: System.UriFormatException
Message: The format of the URI could not be determined.
Source: System
in <0x00120> System.Uri:Parse (string)
in <0x00056> (wrapper remoting-invoke-with-check) System.Uri:Parse (string)
in <0x00089> System.Uri:.ctor (string,bool)
in <0x00012> System.Uri:.ctor (string)
in <0x00056> (wrapper remoting-invoke-with-check) System.Uri:.ctor (string)
in <0x0019e> NAnt.Core.Project:.ctor (string,NAnt.Core.Level,int)

[Core.TypeFactory:Creating TaskBuilder for 'AttribTask'  - [] <>]
[Core.TypeFactory:Adding 'attrib' from 
- [] <>]
The current runtime framework 'mono-1.0' is not correctly configured in 
the NAnt configuration file.
[Core.ConsoleDriver:NAnt Build Failure  - [] <>]
Exception: NAnt.Core.BuildException
Message: The current runtime framework 'mono-1.0' is not correctly 
configured in the NAnt configuration file.
Source: NAnt.Core
in <0x0076d> NAnt.Core.ProjectSettingsLoader:ProcessFrameworks 
in <0x00104> NAnt.Core.ProjectSettingsLoader:ProcessSettings ()
in <0x005cb> NAnt.Core.Project:CtorHelper 
in <0x0025f> NAnt.Core.Project:.ctor (string,NAnt.Core.Level,int)
in <0x0034a> NAnt.Core.ConsoleDriver:Main (string[])
Consult the log4net output for more information.
Try 'nant -help' for more information
[Console.ConsoleStub:'Int32 Main(System.String[])' returned 1  - [] <>]
[Console.ConsoleStub:Return Code = 1  - [] <>]