-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Israel Obinyan
Sent: Tuesday, 05 August, 2003 06:29
To: '[EMAIL PROTECTED]'
Subject: [nant-dev] Solution build problemHi,I'm new to NAnt and am trying to build an application using the <solution> task.Here's the build file content<?xml version="1.0"?>
<project name="TEST" default="ApplySolution"><target name="ApplySolution" description="Build Apply.sln using SolutionTask">
<echo message="Building Apply Solution"/>
<solution configuration="debug" solutionfile="Apply.sln">
</solution>
</target>
</project>Here's the error I'm getting...Buildfile: file:///C:/DotNet Products/Apply/Apply.buildApplySolution:[echo] Building Apply Solution
[solution] Starting solution build.
Total time: 0 seconds.BUILD FAILEDINTERNAL ERRORSystem.Xml.XmlException: The data at the root level is invalid. Line 1, position 1.
at System.Xml.XmlTextReader.ParseRoot()
at System.Xml.XmlTextReader.Read()
at System.Xml.XmlValidatingReader.ReadWithCollectTextToken()
at System.Xml.XmlValidatingReader.Read()
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.Load(String filename)
at NAnt.VSNet.Tasks.Project.LoadXmlDocument(String strFilename)
at NAnt.VSNet.Tasks.Project.IsEnterpriseTemplateProject(String strFilename)
at NAnt.VSNet.Tasks.Solution..ctor(String strSolutionFilename, ArrayList alAdditionalProjects, Ar
rayList alReferenceProjects, TempFileCollection tfc, Task nanttask)
at NAnt.VSNet.Tasks.SolutionTask.ExecuteTask()
at NAnt.Core.Task.Execute()
at NAnt.Core.Target.Execute()
at NAnt.Core.Project.Execute(String targetName)
at NAnt.Core.Project.Execute()
at NAnt.Core.Project.Run()Anyone have any idea what the problem might be?CheersIsraelThis email and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to whom they are addressed. This communication represents the originator's personal views and opinions, which do not necessarily reflect those of Intelligent Environments Europe Ltd (iE) . If you are not the original recipient or the person responsible for delivering the email to the intended recipient, be advised that you have received this email in error, and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you received this email in error, please immediately notify [EMAIL PROTECTED] Intelligent Environments Europe Ltd, Riverview House, 20 Old Bridge Street, Kingston upon Thames, Surrey, KT1 4BU. www.ie.com
Title: Message
And this is "nant-dev" question
instead of a "nant-user" question because of .... ?
Anyway on first glance it looks
like just a missing space between the closing double quote and the question
mark on the first line. You would have deduced this if you had read closely
the error message "System.Xml.XmlException: The data at
the root level is invalid. Line 1, position 1."
- Ants
- [nant-dev] Solution build problem Israel Obinyan
- [nant-dev] Solution build problem Anthony LoveFrancisco
- [nant-dev] Solution build problem Simon Steele