Bugs item #926035, was opened at 2004-03-30 16:11
Message generated for change (Comment added) made by gidion
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=926035&group_id=31650

Category: Core
Group: 0.85
>Status: Closed
Resolution: None
Priority: 5
Submitted By: Alex Duggleby (gidion)
Assigned to: Nobody/Anonymous (nobody)
Summary: Internal Error (Substring length not 0) with dynamicprefix

Initial Comment:
When building a windows application using
dynamicprefix="true" and with prefix set to a namespace

<resources basedir="." dynamicprefix="true"
prefix="namespace.project"  >
                                <includes name="App.ico" />
                                <includes name="**/*.resx" />
                                <includes name="images/*.*" />
                                <includes name="../misc/misc.xml" />
                                <includes name="../misc/lic.txt" />
</resources>

When building in release mode I get 

            INTERNAL ERROR

            System.ArgumentOutOfRangeException: Length
cannot be less than zero.
Parameter name: length
   at System.String.Substring(Int32 startIndex, Int32
length)
   at
NAnt.DotNet.Types.ResourceFileSet.GetManifestResourceName(String
fileName)
   at
NAnt.DotNet.Tasks.CompilerBase.GetManifestResourceName(ResourceFileSet
resources, String resourceFile, String dependentFile)
   at
NAnt.DotNet.Tasks.CompilerBase.GetManifestResourceName(ResourceFileSet
resources, String resourceFile)
   at NAnt.DotNet.Tasks.CompilerBase.ExecuteTask()
   at NAnt.Core.Task.Execute()
   at NAnt.Core.Target.Execute()
   at NAnt.Core.Project.Execute(String targetName,
Boolean forceDependencies)
   at NAnt.Core.Project.Execute()
   at NAnt.Core.Project.Run()

 As soon as I remove dynamicprefix it works well. I
haven't got the time right now to publish a test case
where it will fail, but I'll try to do so this week.

----------------------------------------------------------------------

>Comment By: Alex Duggleby (gidion)
Date: 2004-04-14 12:49

Message:
Logged In: YES 
user_id=378928

I'm sorry, I can't provide a repro. I've been trying all morning, 
even in the project where it happened but I can't reproduce 
it. So sorry, if it happens again I'll repost it.

----------------------------------------------------------------------

Comment By: Gert Driesen (drieseng)
Date: 2004-04-02 18:12

Message:
Logged In: YES 
user_id=707851

Alex, can you attach a repro (build file and 
sources/resources) to this bug report ?

Thanks !

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=926035&group_id=31650


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to