[Mono-bugs] [Bug 619842] New: xbuild fails when project file contains items with wildcards.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Jul 5 04:02:18 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=619842

http://bugzilla.novell.com/show_bug.cgi?id=619842#c0


           Summary: xbuild fails when project file contains items with
                    wildcards.
    Classification: Mono
           Product: Mono: Tools
           Version: 2.6.x
          Platform: x86-64
        OS/Version: Windows Server 2008
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: xbuild
        AssignedTo: jankit at novell.com
        ReportedBy: hardcaseminator at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Description of Problem:


Steps to reproduce the problem:
1. Create any valid project file that contains include like:
   <Compile Item="*.cs" />
2. Run xbuild


Actual Results:
xbuild fails with exception.

Expected Results:
Normal processing items selected by wildcard.

How often does this happen? 
Always

Additional Information:
Xbuild is broken in 2.6.4 release.
Binaries from 2.6 works fine.

Stacktrace:
XBuild Engine Version 2.6.4.0
Mono, Version 2.6.4.0
Copyright (C) Marek Sieradzki 2005-2008, Novell 2008-2009.
MSBUILD: error MSBUILD0000:
Microsoft.Build.BuildEngine.InvalidProjectFileException:
C:\!Proj\nemerle\Nemerle.XBuild.Ta
ks.csproj: Argument is out of range.
Parameter name: startIndex ---> System.ArgumentOutOfRangeException: Argument is
out of range.
Parameter name: startIndex
  at System.String.Substring (Int32 startIndex) [0x00000] in <filename
unknown>:0
  at Microsoft.Build.BuildEngine.DirectoryScanner.ProcessInclude (ITaskItem
include_item, System.Collections.Generic.Di
tionary`2 excludedItems, System.Collections.Generic.List`1 includedItems)
[0x00000] in <filename unknown>:0
  at Microsoft.Build.BuildEngine.DirectoryScanner.Scan () [0x00000] in
<filename unknown>:0
  at Microsoft.Build.BuildEngine.BuildItem.Evaluate
(Microsoft.Build.BuildEngine.Project project, Boolean evaluatedTo)
0x00000] in <filename unknown>:0
  at Microsoft.Build.BuildEngine.BuildItemGroup.Evaluate () [0x00000] in
<filename unknown>:0
  at Microsoft.Build.BuildEngine.GroupingCollection.Evaluate (EvaluationType
type) [0x00000] in <filename unknown>:0
  at Microsoft.Build.BuildEngine.GroupingCollection.Evaluate () [0x00000] in
<filename unknown>:0
  at Microsoft.Build.BuildEngine.Project.Evaluate () [0x00000] in <filename
unknown>:0
  at Microsoft.Build.BuildEngine.Project.ProcessXml () [0x00000] in <filename
unknown>:0
  at Microsoft.Build.BuildEngine.Project.DoLoad (System.IO.TextReader
textReader) [0x00000] in <filename unknown>:0
  --- End of inner exception stack trace ---
  at Microsoft.Build.BuildEngine.Project.DoLoad (System.IO.TextReader
textReader) [0x00000] in <filename unknown>:0
  at Microsoft.Build.BuildEngine.Project.Load (System.String projectFileName,
ProjectLoadSettings settings) [0x00000] i
 <filename unknown>:0
  at Microsoft.Build.BuildEngine.Project.Load (System.String projectFileName)
[0x00000] in <filename unknown>:0
  at Mono.XBuild.CommandLine.MainClass.Execute () [0x00000] in <filename
unknown>:0

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list