Menu

#10 Crash while trying to add .designer.cs files into CSPROJs

open
nobody
Parse (2)
5
2010-06-14
2010-06-14
No

Hi.

I know that it has already been an issue about this, but I'm currently linked with Prebuild's trunk and the application is crashing when it tries to add .designer.cs files in a csproj. I'm using a structure <Match path="source/cs/ROOT_NAMESPACE" pattern="*.cs" recurse="true"/> for all my C-Sharp source files adding. Below follows the traceback:

Prebuild v2.0.4
Copyright (c) 2004-2008
Matthew Holmes (matthew@wildfiregames.com),
Dan Moorehead (dan05a@gmail.com),
David Hudson (jendave@yahoo.com),
Rob Loach (http://www.robloach.net),
C.J. Adams-Collier (cjac@colliertech.org),
See 'prebuild /usage' for help

[!] Match in project MyProject returned no files: Resources\*.jpg
Creating Visual Studio 2008 solution and project files
...Creating project: MyProject
Unhandled error: Length cannot be less than zero.
Parameter name: length
at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
at Prebuild.Core.Targets.VSGenericTarget.WriteProject(SolutionNode solution, ProjectNode project)
at Prebuild.Core.Targets.VSGenericTarget.WriteSolution(SolutionNode solution, Boolean writeSolutionToDisk)
at Prebuild.Core.Targets.VSGenericTarget.Write(Kernel kern)
at Prebuild.Core.Kernel.Process()
at Prebuild.Prebuild.Main(String[] args)

Unfortunately I can no longer the last tag because of VS 2010 support.
Cheers,
Vinicius Pessôa.

Discussion


Log in to post a comment.