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

Category: Core
Group: 0.85
Status: Open
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&#039;t got the time right now to publish a test case
where it will fail, but I&#039;ll try to do so this week.

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

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