Thanks Eric,
So its only for web projects that this is failing, is that right ?

Ian

Sorry Ian, forgot to post this one. Defintely looks like a easy bug fix, but again, can't debug if I can't get the build working. Here's my command:
slingshot -nant build.basedir=bin -sln ProCard.Centre.Web.sln -map http://localhost/Centre/ . > buildWeb.build
and my output:
D:\projects\procard\Centre\Web>slingshot -nant build.basedir=bin -sln ProCard.Centre.Web.sln -map http://localhost/Centr
e/ . > buildWeb.build
Unhandled Exception: System.IO.FileNotFoundException: Could not find file "D:\projects\procard\Centre\Web\.ProCard.Centr
e.Web.csproj".
File name: "D:\projects\procard\Centre\Web\.ProCard.Centre.Web.csproj"
at System.IO.__Error.WinIOError(Int32 errorCode, String str)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boole
an useAsync, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials)
at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
at System.Xml.XmlTextReader.CreateScanner()
at System.Xml.XmlTextReader.Init()
at System.Xml.XmlTextReader.Read()
at System.Xml.XmlValidatingReader.ReadWithCollectTextToken()
at System.Xml.XmlValidatingReader.Read()
at System.Xml.XPath.XPathDocument.Load(XmlReader reader)
at System.Xml.XPath.XPathDocument.Init(XmlReader reader)
at System.Xml.XPath.XPathDocument..ctor(String uri)
at SLiNgshoT.Core.Project.Read(String path)
at SLiNgshoT.Core.Solution.AddProject(String projectLine)
at SLiNgshoT.Core.Solution.Read(String path, Hashtable uriMap)
at SLiNgshoT.Core.Driver.WriteSolution(SolutionWriter writer, TextWriter textWriter, String sln, Hashtable parameters
, Hashtable uriMap)
at SLiNgshoT_Console.Main(String[] args)


When looking for the solution file, he's putting a "." in front of the .sln filename. I've also tried hardcoding the path in which case I get one of the following 2 errors:
D:\projects\procard\Centre\Web>slingshot -nant build.basedir=bin -sln ProCard.Centre.Web.sln -map http://localhost/Centr
e/ D:\projects\procard\Centre\Web > buildWeb.build
Unhandled Exception: System.IO.FileNotFoundException: Could not find file "D:\projects\procard\Centre\WebProCard.Centre.
Web.csproj".
File name: "D:\projects\procard\Centre\WebProCard.Centre.Web.csproj"
at System.IO.__Error.WinIOError(Int32 errorCode, String str)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boole
an useAsync, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials)
at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
at System.Xml.XmlTextReader.CreateScanner()
at System.Xml.XmlTextReader.Init()
at System.Xml.XmlTextReader.Read()
at System.Xml.XmlValidatingReader.ReadWithCollectTextToken()
at System.Xml.XmlValidatingReader.Read()
at System.Xml.XPath.XPathDocument.Load(XmlReader reader)
at System.Xml.XPath.XPathDocument.Init(XmlReader reader)
at System.Xml.XPath.XPathDocument..ctor(String uri)
at SLiNgshoT.Core.Project.Read(String path)
at SLiNgshoT.Core.Solution.AddProject(String projectLine)
at SLiNgshoT.Core.Solution.Read(String path, Hashtable uriMap)
at SLiNgshoT.Core.Driver.WriteSolution(SolutionWriter writer, TextWriter textWriter, String sln, Hashtable parameters
, Hashtable uriMap)
at SLiNgshoT_Console.Main(String[] args)
D:\projects\procard\Centre\Web>slingshot -nant build.basedir=bin -sln ProCard.Centre.Web.sln -map http://localhost/Centr
e/ D:\projects\procard\Centre\Web\ > buildWeb.build
Unhandled Exception: System.NotSupportedException: The given path's format is not supported.
at System.Security.Util.StringExpressionSet.CanonicalizePath(String path, Boolean needFullPath)
at System.Security.Util.StringExpressionSet.AddExpressions(String[] str, Boolean checkForDuplicates, Boolean needFull
Path)
at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, String[] pathListOrig, Boo
lean checkForDuplicates, Boolean needFullPath, Boolean copyPathList)
at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String[] pathList, Boolean check
ForDuplicates, Boolean needFullPath)
at System.IO.Path.GetFullPath(String path)
at SLiNgshoT.Core.NAntWriter.writeCopyRef(String referenceName, String configurationName)
at SLiNgshoT.Core.NAntWriter.WriteCopyRefsTargets(Solution solution)
&nb! sp; at SLiNgshoT.Core.NAntWriter.WriteStartSolution(Solution solution)
at SLiNgshoT.Core.Driver.WriteSolution(SolutionWriter writer, TextWriter textWriter, String sln, Hashtable parameters
, Hashtable uriMap)
at SLiNgshoT_Console.Main(String[] args)


*/Ian MacLean <[EMAIL PROTECTED]>/* wrote:

    What about running slingshot.exe from the commandline ? does that
    work ?

Ian

    > I quit using slingshot quite a while back when solution came to be.
    > It seems to have stopped working. I've upgraded NAnt & NAntContrib
    > several times since then. I'm just living off of the binaries in
    > Contrib because I can't manage to get it built. I can get the build
    > to work, but when I go to put the binaries in NAnt's bin folder,
    I get
    > a not recognized type of error.
    >
    > That change to my build file didn't do it Jean. I still get the
    same
    > error with that. If I could get a build to work, I'd try to debug,
    > but rc2 doesn't have the NAntContrib source, only binaries.
    >
    > Thanks,
    > Eric
    >
    > */Jean Rajotte /* wrote:
    >
    > eric,
    >! ; it does look like the syntax is as advertized.
    > i thought you had other slingshot tasks in your projects. what's
    > different here?
    > as i look in the code for SlingshotTask, i see there's some
    > confusion about how OptionSets are iterated. pls. try something
    > crazy like the following and see whether it goes:
    >
    >
    >
    > output="MySolution.build">
    >
    > *
    > *
    >
    >
    > value="."/>
    >
    >
    >
    >
    > if that's so, it's really wacky but at least you're going.
    > the code i'm talking about is the following in SlingshotTask.cs.
    > it's there because i'd found inconsistencies in how
    > returns options...
    >
    > ! /// Converts an to a
    > cref="Hashtable"/>.
    > private Hashtable OptionSetToHashtable(OptionSet options,
    > string optionSetName) {
    >
    > Hashtable convertedOptions = new Hashtable();
    >
    > if (options != null) {
    > foreach (object option in options) {
    > string name;
    > string value;
    > if ( option is OptionValue ) {
    > OptionValue ov = (OptionValue) option;
    > name = ov.Name;
    > value = ov.Value;
    > } else if ( option is OptionElement ) {
    > OptionElement oe = (OptionElement) option;
    > name = oe.OptionName;
    > value = oe.Value;
    > } else {
    > throw new BuildException( string.Format( "Invalid
    > Option type {0} in {1} OptionSet", option.GetType(),
    optionSetName) );
    > }
    > Log.WriteLine( LogPrefix + " -- {0} = {1}", name, value );
    >
    > // name must be specified
    > if (name == null) {
    > st! ring msg = String.Format("Unspecified
    > name for <{0}> option '{1}'", optionSetName, name);
    > throw new BuildException(msg);
    > // value must be specified
    > } else if (value == null) {
    > string msg = String.Format("Unspecified
    > value for <{0}> option '{1}'", optionSetName, name);
    > throw new BuildException(msg);
    > } else {
    > convertedOptions.Add(name, value);
    > &nb! sp; }
    > }
    > }
    >
    > return convertedOptions;
    > }
    >
    > }
    >
    > HTH ! ??
    >
    > /jean
    >
    >
    > -----Original Message-----
    > *From:* [EMAIL PROTECTED]
    > [mailto:[EMAIL PROTECTED] *On Behalf Of
    > *Eric Fetzer
    > *Sent:* Wednesday, August 27, 2003 17:09
    > *To:* Nant Users
    > *Subject:* [Nant-users] slingshot task
    >
    > I'm experiencing a problem with slingshot:
    >
    > D:\projects\procard>nant -f:BuildWebBuild.build
    > NAnt version 0.8.3 Copyright (C) 2001-2003 Gerry Shaw
    > http://nant.sourceforge.net
    > Buildfile: file:///D:/projects/procard/BuildWebBuild.build
    > [slingshot] Converting ProCard.Centre.Web.sln to
    > MySolution.build using nant format
    > [slingshot] -- option = bin
    > Total time: 0 seconds.
    > BUILD FAILED
    > The option 'build.basedir' is required.
    >
    > My option contains build.basedir as follows:
    >
    >
    >
    > format="nant" output="MySolution.build">
    >
    >
    >
    >
    >
    > value="."/>
    >
    >
    >
    >
    > I'm ! having the problem no matter which version of the binaries
    > I download. Anybody have a clue?
    >
    > Thanks,
    > Eric
    >
    >
    ------------------------------------------------------------------------
    > Do you Yahoo!?
    > SBC Yahoo! DSL
    >
    > - Now only $29.95 per month!
    >
    >
    ------------------------------------------------------------------------
    > Do you Yahoo!?
    > SBC Yahoo! DSL
    >
    > - Now only $29.95 per month!


------------------------------------------------------------------------
Do you Yahoo!?
SBC Yahoo! DSL <http://pa.yahoo.com/*http://rd.yahoo.com/evt=1207/*http://promo.yahoo.com/sbc/> - Now only $29.95 per month!





------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to