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.


Thanks.


NAnt configuration:
------------------------------------------
<?xml version="1.0" encoding="Windows-1252" ?>
<configuration>
<!-- Leave this alone. Sets up configsectionhandler section -->
<configSections>
<section name="nant" type="NAnt.Core.ConfigurationSection, NAnt.Core" />
<section name="log4net" type="System.Configuration.IgnoreSectionHandler" />
</configSections>
<appSettings>
<!-- 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 running-->
<add key="nant.shadowfiles.cleanup" value="False" />
<!-- To enable internal log4net logging, uncomment the next line -->
<!-- <add key="log4net.Internal.Debug" value="true"/> -->
</appSettings>
<!-- nant config settings -->
<nant>
<frameworks>
<platform name="unix" default="auto">
<framework
name="mono-1.0"
family="mono"
version="1.0"
description="GNOME projects port of the .NET Framework"
runtimeengine="mono"
sdkdirectory="/usr/bin"
frameworkdirectory="/usr/bin"
frameworkassemblydirectory="/usr/lib"
clrversion="${clrversion}"
>
<extensions>
<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" />
</extensions>
<properties>
<property name="clrversion" value="1.1.4322" />
</properties>
<tasks>
<task name="al">
<attribute name="exename">al</attribute>
<attribute name="useruntimeengine">true</attribute>
</task>
<task name="csc">
<attribute name="exename">mcs</attribute>
<attribute name="useruntimeengine">true</attribute>
</task>
<task name="vbc">
<attribute name="exename">mbas</attribute>
<attribute name="useruntimeengine">true</attribute>
</task>
<task name="resgen">
<attribute name="exename">monoresgen</attribute>
<attribute name="useruntimeengine">true</attribute>
</task>
<task name="delay-sign">
<attribute name="exename">monosn</attribute>
<attribute name="useruntimeengine">true</attribute>
</task>
</tasks>
</framework>
</platform>
<!-- Framework-neutral properties -->
<properties>
<!-- <property name="foo" value = "bar" /> -->
</properties>
<!-- Framework-neutral task configuration defaults -->
<tasks>
<!-- settings for individual tasks -->
</tasks>
</frameworks>
<!-- Default properties -->
<properties>
<!-- add global properties here in the following format-->
<!-- <property name="foo" value = "bar" readonly="false" /> -->
</properties>
</nant>
<!--
This section contains the log4net configuration settings.


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


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
console.
-->
<log4net threshold="ALL">
<appender name="ConsoleAppender" type="log4net.Appender.ConsoleAppender">
<layout type="log4net.Layout.PatternLayout">
<param name="ConversionPattern" value="[%c{2}:%m - [%x] &lt;%X{auth}&gt;]%n" />
</layout>
</appender>
<appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender">
<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" />
</layout>
</appender>
<!-- Setup the root category, add the appenders and set the default level -->
<root>
<!-- 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" /> -->
</root>
<!-- Specify the priority for some specific categories -->
<!--
<logger name="NAnt.Core.TaskBuilderCollection">
<level value="DEBUG" />
</logger>
<logger name="NAnt">
<level value="INFO" />
</logger>
-->
</log4net>
<startup>
<supportedRuntime version="v1.1.4322" />
<supportedRuntime version="v1.0.3705" />
</startup>
</configuration>


NAnt error:
--------------------------------------------
nant /f:DC_IAPI.build
Compat mode: the request from /home/user1/mono/nant/build/mono-1.0.unix/nant-0.85-debug/bin/log4net.dll to load System.Data was remapped (http://www.go-mono.com/remap.html)
Compat mode: the request from /home/user1/mono/nant/build/mono-1.0.unix/nant-0.85-debug/bin/log4net.dll 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
http://nant.sourceforge.net


[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 /home/user1/mono/nant/build/mono-1.0.unix/nant-0.85-debug/bin/NAnt.Core.dll:NAnt.Core.Tasks.AttribTask - [] <>]
...
BUILD FAILED


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 (System.Xml.XmlNode)
in <0x00104> NAnt.Core.ProjectSettingsLoader:ProcessSettings ()
in <0x005cb> NAnt.Core.Project:CtorHelper (System.Xml.XmlDocument,NAnt.Core.Level,int)
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  - [] <>]



_______________________________________________
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to