<?xml version="1.0" encoding="utf-8" ?>
<project
name="Build411SongProject"
basedir="."
default="build"
xmlns=" http://nant.sf.net/schemas/nant-0.85.win32.net-1.0.xsd" ><property name="root" value="${nant.project.basedir}" />
<property name="slndir" value="${root}\source" />
<property name="slnfile" value=" 411Song.sln" />
<property name="config" value="release" />
<property name="outdir" value="${root}\latest\${config}" />
<property name="verbose" value="false" /><property name="vssdb" value="\\mkdomsrv-nyc001\vss" />
<property name="vssuser" value="eventi" />
<property name="vsspwd" value="" /><target name="getlatest" description="Get the latest version of the code from source safe">
<mkdir dir="${slndir}" failonerror="false" verbose="${verbose}"/>
<vssget username="${vssuser}"
password="${vsspwd}"
localpath="${slndir}"
recursive="true"
replace="true"
writable="true"
dbpath="${vssdb}\srcsafe.ini"
path="$/Solutions/411Song"
verbose="${verbose}"
/>
</target><target name="build" description="Build the solution" depends="getlatest">
<solution solutionfile="${slndir}\${slnfile}" configuration="${config}" verbose="${verbose}"
outputdir="${outdir}">
<webmap>
<map url="" href="http://localhost/html_77/html.csproj">http://localhost/html_77/html.csproj" path="${slndir}\html\html.csproj" />
</webmap>
<assemblyfolders>
<include name="${outdir}"/>
</assemblyfolders>
</solution>
</target>
</project>
And here are the results:
Buildfile: file:///C:/temp/nant/html.build
Target framework: Microsoft .NET Framework 1.1
Target(s) specified: build
getlatest:[vssget] Getting '$/Solutions/411Song' to 'C:\temp\nant\source'...
build:
[solution] Starting solution build.
[solution] Building 'MusiKube.EM' [Release] ...
[solution] MusiKube.EM\EMExceptionHandler.cs(19,4): warning CS0168: The variable 'exp' is declared but never used
[solution] Building ' Microsoft.ApplicationBlocks.Data' [Release] ...
[solution] Building 'MusiKube.EMServices.CarrierLookUP' [Release] ...
[solution] Building 'MusiKube' [Release] ...
[solution] MusiKube\SmsStringRefinement.cs(30,8): warning CS0219: The variable 'l' is assigned but its value is never used
[solution] MusiKube\SmsStringRefinement.cs(60,8): warning CS0219: The variable 'k' is assigned but its value is never used
[solution] MusiKube\ZipperThreaded.cs(16,15): warning CS0169: The private field 'Test.ZipperThreaded.totalSourceFiles ' is never used
[solution] MusiKube\ZipperThreaded.cs(17,15): warning CS0169: The private field 'Test.ZipperThreaded.totalExtractedFiles' is never used
[solution] MusiKube\MuzeUnzip.cs(12,33): warning CS0067: The event ' MusiKube.MuzeUnzip.unzipTmpPercent' is never used
[solution] MusiKube\MuzeUnzip.cs(13,35): warning CS0067: The event 'MusiKube.MuzeUnzip.unzipTotalPercent' is never used
[solution] MusiKube\MuzeUnzip.cs(17,15): warning CS0169: The private field ' MusiKube.MuzeUnzip.counter' is never used
[solution] Building 'MusiKube.EMServices' [Release] ...
[solution] Referenced assembly "C:\temp\nant\source\MusiKube\obj\Release\MusiKube.dll" could not be loaded:
[solution] fatal error CS0009: Metadata file 'c:\temp\nant\source\Microsoft.ApplicationBlocks.Data\obj\Release\Microsoft.ApplicationBlocks.Data.dll' could not be opened -- 'Version 1.1 is not a compatible version.'
[solution] Build failed.
[solution] Project 'MusiKube.EMServices' failed!
[solution] Continuing build with non-dependent projects.
[solution]
[solution] Solution failed to build! Failed projects were:
[solution] - MusiKube.EMServicesBUILD FAILED - 6 non-fatal error(s), 1 warning(s)
C:\temp\nant\html.build(34,4):
Project build failed.Total time: 21.5 seconds.
Thanks in advance
--e
Hi Eugene,You should get more information on the cause of the error in the next nightly build.Let me know if that helped you troubleshoot the issue.Gert
From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED]] On Behalf Of Eugene Ventimiglia
Sent: donderdag 12 mei 2005 18:19
To: nant-users@lists.sourceforge.net
Subject: [Nant-users] Referenced Assembly ... could not be loaded
I'm getting a strange error while building my solution:<solution solutionfile="${slndir}\${slnfile}" configuration="${config}" verbose="${verbose}"
outputdir="${outdir}">
<webmap>
<map url="" http://localhost/html_77/html.csproj" path="${slndir}\html\html.csproj" />
</webmap>
<assemblyfolders>
<include name="${outdir}"/>
</assemblyfolders>
</solution>Produces the error:[solution] Referenced assembly "C:\temp\nant\source\MusiKube\obj\Release\MusiKube.dll" could not be loaded:even though the dll is in the location mentioned, and in the output dir.The solution is retrieved from VSS first if that makes a difference.Thanks in advance--e
--
** Help my friend Mangala from Sri Lanka build houses for tsunami victims.
** http://www.karunalanka.org/