Hi all,
I'm using the NAnt 0.9 release on Linux 11.2/Gnome.
Monodevelop 2.4 (Beta)
Mono 2.6.3
This error is not new to the list: My problem is, that the code compiles
with Monodevelop but not with NAnt. It stops with error CS0234. See build
output below. Funny is that the error detail belongs to standard mono
libraries/DLLs. This might be a configuration problem, but I cannot figure
out what it is...
Maybe one could give me a clue...
Regards
Niklas
Buildfile:
<?xml version="1.0"?>
<project name="Ways Core Framework" default="All">
<property name="Debug" value="true" overwrite="true" />
<property name="Optimize" value="false" overwrite="true" />
<property name="Symbols" value="_UNIX" overwrite="true" />
<property name="SilvaDir" value="../../.." overwrite="true" />
<property name="SourceDir" value="${SilvaDir}/Source" overwrite="true" />
<!-- Directories -->
<property name="BuildDir" value="../Debug XX WRONG XX" overwrite="true"
/>
<property name="ApplicationDataDir" value="${BuildDir}/ApplicationData"
/>
<property name="ApplicationResourceDataDir"
value="${ApplicationDataDir}/Resources" />
<property name="ApplicationSystemResourceDataDir"
value="${ApplicationResourceDataDir}/System" />
<property name="ApplicationDalDir" value="${ApplicationDataDir}/Dal" />
<property name="ApplicationSpellDataDir"
value="${ApplicationResourceDataDir}/Spell" />
<!-- Keyfile -->
<property name="SnkFile"
value="${SourceDir}/Ways/Support/WaysKeyPair.snk" />
<!-- Icon file -->
<property name="DefaultIcon"
value="${SourceDir}/Ways/Support/AppIcon.ico" />
<!-- External libraries directories -->
<property name="ExtLibrary" value="${SilvaDir}/ExternalLib"
overwrite="true" />
<target name="CompileWaysFramwork" description="Compiles the core
framework">
<csc target="library" output="${BuildDir}/Ways.Core.dll"
debug="${Debug}" define="${Symbols}" rebuild="true" optimize="${Optimize}"
keyfile="${SnkFile}" doc="${BuildDir}/Ways.Core.xml">
<sources>
<include
name="${SourceDir}/Ways/Core/**/*.cs" />
</sources>
<references>
<include name="System" />
<include name="System.Data" />
<include name="System.Drawing" />
<include name="System.Runtime.Serialization"/>
<include name="System.Runtime.Serialization.Formatters.Soap" />
<include name="System.Runtime.ServiceModel" />
<include name="System.Web" />
<include name="System.Web.Services" />
<include name="System.Xml" />
</references>
</csc>
<copy
file="${SourceDir}/Ways/Core/WaysMessages/Ways.Core.Message.config"
tofile="${ApplicationSystemResourceDataDir}/Ways.Core.Message.config" />
</target>
<target name="All" depends="CompileWaysFramwork" />
</project>
Build output (snippet):
[csc]
/home/dev/Silva/Source/Ways/Core/Application/ServiceRequest/Client/Soap/Serv
iceRequestSoapProxy.cs(55,67): error CS0234: The type or namespace name
`Services' does not exist in the namespace `System.Web'. Are you missing
an assembly reference?
[csc]
/home/dev/Silva/Source/Ways/Core/DataAccess/Provider/Ado/AdoDataAccessProvid
erConfiguration.cs(2,14): error CS0234: The type or namespace name `Data'
does not exist in the namespace `System'. Are you missing an assembly
reference?
[csc] Compilation failed: 2 error(s), 275 warnings
Assembly data (from Monodevelop):
// Assembly System.Data, Version 2.0.0.0 [AssemblyTitle
("System.Data.dll")] [AssemblyDescription ("System.Data.dll")]
[AssemblyDefaultAlias ("System.Data.dll")] [AssemblyCompany ("MONO
development team")] [AssemblyProduct ("MONO Common language
infrastructure")] [AssemblyCopyright ("(c) various MONO Authors")]
[SatelliteContractVersion ("2.0.0.0")] [AssemblyInformationalVersion
("2.0.50727.1433")] [CLSCompliant (true)] [NeutralResourcesLanguage
("en-US")] [ComVisible (false)] [AllowPartiallyTrustedCallers ()]
[AssemblyDelaySign (true)] [AssemblyKeyFile ("../ecma.pub")]
[AssemblyFileVersion ("2.0.50727.1433")] [ComCompatibleVersion (1, 0,
3300, 0)] [InternalsVisibleTo ("System.Design,
PublicKey=002400000480000094000000060200000024000052534131000400000100010007
d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dc
c1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5
efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a
12436518206dc093344d5ad293")]
[InternalsVisibleTo ("System.Web,
PublicKey=002400000480000094000000060200000024000052534131000400000100010007
d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dc
c1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5
efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a
12436518206dc093344d5ad293")]
[RuntimeCompatibility ()]
// Assembly System.Web.Services, Version 2.0.0.0 [AssemblyTitle
("System.Web.Services.dll")] [AssemblyDescription
("System.Web.Services.dll")] [AssemblyDefaultAlias
("System.Web.Services.dll")] [AssemblyCompany ("MONO development team")]
[AssemblyProduct ("MONO Common language infrastructure")]
[AssemblyCopyright ("(c) various MONO Authors")] [SatelliteContractVersion
("2.0.0.0")] [AssemblyInformationalVersion ("2.0.50727.1433")]
[NeutralResourcesLanguage ("en-US")] [ComVisible (false)]
[AllowPartiallyTrustedCallers ()] [CLSCompliant (true)] [AssemblyDelaySign
(true)] [AssemblyKeyFile ("../msfinal.pub")] [AssemblyFileVersion
("2.0.50727.1433")] [CompilationRelaxations (8)] [Debuggable (2)]
[RuntimeCompatibility ()]
GAC info:
d...@linux-gh99:~/Silva/Release/Build> locate System.Web.Services.dll
/home/dev/.config/MonoDevelop/CodeCompletionData/_usr_lib_mono_2.0_System.Web.Services.dll.pidb
/usr/lib/mono/1.0/System.Web.Services.dll
/usr/lib/mono/2.0/System.Web.Services.dll
/usr/lib/mono/gac/System.Web.Services/1.0.5000.0__b03f5f7f11d50a3a/System.Web.Services.dll
/usr/lib/mono/gac/System.Web.Services/1.0.5000.0__b03f5f7f11d50a3a/System.Web.Services.dll.mdb
/usr/lib/mono/gac/System.Web.Services/2.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll
/usr/lib/mono/gac/System.Web.Services/2.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll.mdb
d...@linux-gh99:~/Silva/Release/Build> locate System.Data.dll
/home/dev/.config/MonoDevelop/CodeCompletionData/_usr_lib_mono_2.0_System.Data.dll.pidb
/usr/lib/mono/1.0/System.Data.dll
/usr/lib/mono/2.0/System.Data.dll
/usr/lib/mono/gac/System.Data/1.0.5000.0__b77a5c561934e089/System.Data.dll
/usr/lib/mono/gac/System.Data/1.0.5000.0__b77a5c561934e089/System.Data.dll.mdb
/usr/lib/mono/gac/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
/usr/lib/mono/gac/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll.mdb
d...@linux-gh99:~/Silva/Release/Build>
NAnt.exe.config:
<framework
name="mono-3.5"
family="mono"
version="3.5"
description="Mono 3.5 Profile"
sdkdirectory="${toolDirectory}"
frameworkdirectory="${toolDirectory}"
frameworkassemblydirectory="${path::combine(prefix, 'lib/mono/2.0')}"
clrversion="2.0.50727"
clrtype="Desktop"
vendor="Mono"
>
<runtime>
<probing-paths>
<directory name="lib/mono/2.0" />
<directory name="lib/mono/neutral" />
<directory name="lib/common/2.0" />
<directory name="lib/common/neutral" />
</probing-paths>
<modes>
<auto>
<engine program="${path::combine(prefix, 'bin/mono')}" />
</auto>
<strict>
<engine program="${path::combine(prefix, 'bin/mono')}">
<arg value="--runtime=v2.0.50727" />
</engine>
</strict>
</modes>
</runtime>
<reference-assemblies basedir="${path::combine(prefix,
'lib/mono/3.5')}">
<include name="*.dll" />
</reference-assemblies>
<reference-assemblies basedir="${path::combine(prefix,
'lib/mono/3.0')}">
<include name="*.dll" />
</reference-assemblies>
<reference-assemblies basedir="${path::combine(prefix,
'lib/mono/2.0')}">
<include name="*.dll" />
</reference-assemblies>
<task-assemblies>
<!-- include Mono version-neutral assemblies -->
<include name="extensions/mono/neutral/**/*.dll" />
<!-- include Mono 2.0 specific assemblies -->
<include name="extensions/mono/2.0/**/*.dll" />
<!-- include .NET 2.0 specific assemblies -->
<include name="extensions/common/2.0/**/*.dll" />
</task-assemblies>
<tool-paths>
<directory name="${toolDirectory}" />
<directory name="${path::combine(prefix, 'lib/mono/2.0')}" />
<directory name="${path::combine(prefix, 'lib/mono/1.0')}" />
<!-- unmanaged tools -->
<directory name="${prefix}/bin" />
</tool-paths>
<project>
<if test="${not pkg-config::exists('mono')}">
<fail>Unable to locate 'mono' module using pkg-config.
Download the Mono development packages from
http://www.mono-project.com/downloads/.</fail>
</if>
<property name="resgen.supportsexternalfilereferences"
value="false"
/>
<property name="prefix" value="${pkg-config::get-variable('mono',
'prefix')}" />
<property name="toolDirectory" value="${path::combine(prefix,
'lib/mono/3.5')}" />
</project>
<tasks>
<task name="al">
<attribute name="managed">true</attribute>
</task>
<task name="csc">
<attribute name="exename">gmcs</attribute>
<attribute name="managed">true</attribute>
<attribute name="langversion">linq</attribute>
<attribute name="supportspackagereferences">true</attribute>
<attribute name="supportsnowarnlist">true</attribute>
<attribute name="supportsdocgeneration">true</attribute>
<attribute name="supportskeycontainer">true</attribute>
<attribute name="supportskeyfile">true</attribute>
<attribute name="supportsdelaysign">true</attribute>
<attribute name="supportslangversion">true</attribute>
</task>
<task name="jsc">
<attribute name="exename">mjs</attribute>
<attribute name="managed">strict</attribute>
</task>
<task name="vbc">
<attribute name="exename">vbnc</attribute>
<attribute name="managed">true</attribute>
</task>
<task name="resgen">
<attribute name="managed">true</attribute>
<attribute
name="supportsexternalfilereferences">true</attribute>
</task>
<task name="delay-sign">
<attribute name="exename">sn</attribute>
<attribute name="managed">true</attribute>
</task>
<task name="license">
<attribute name="hascommandlinecompiler">false</attribute>
</task>
<task name="ilasm">
<attribute name="managed">true</attribute>
</task>
</tasks>
</framework>
------------------------
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers