Terry,

The <solution> does not support VS.NET 2005 solutions/projects, but it does
support building a VS.NET 2003 solution (or projects) targeting .NET 2.0
Beta 1.  Also, the individual compiler tasks (<csc>, <vbc>, ...) support
.NET 2.0 Beta 1.

We should indeed document this in the <solution> task help, and provide a
more meaningful error message when an unsupport solution file (or project)
is supplied. Can you submit a bug report for this ?

Thanks,

Gert

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of terry
russell
Sent: zaterdag 16 oktober 2004 20:36
To: [EMAIL PROTECTED]
Subject: [nant-dev] nant and suport for projects files vs beta 2 format.


 
I'm attempting to use the lasest nant ( build .85), and even though it
states it support the .NET beta 1,
I get errors when attempting to load project files in the new format.
 
Heres the error I'm seeing.
 
UtilityLibrary:
 
 [solution] Starting solution build.
 
BUILD FAILED
 
INTERNAL ERROR
 
System.NullReferenceException: Object reference not set to an instance of an
object.
   at NAnt.VSNet.ProjectSettings.GetProjectGuid(XmlElement elemRoot) in
C:\Documents and Settings\drieseng\Local
Settings\Temp\tmp460.tmp\src\NAnt.VSNet\ProjectSettings.cs:line 261
   at NAnt.VSNet.ProjectSettings..ctor(XmlElement elemRoot, XmlElement
elemSettings, Project project) in C:\Documents and Settings\drieseng\Local
Settings\Temp\tmp460.tmp\src\NAnt.VSNet\ProjectSettings.cs:line 46
   at NAnt.VSNet.Project.Load(Solution sln, String projectPath) in
C:\Documents and Settings\drieseng\Local
Settings\Temp\tmp460.tmp\src\NAnt.VSNet\Project.cs:line 168
   at NAnt.VSNet.ProjectFactory.LoadProject(Solution sln, SolutionTask
slnTask, TempFileCollection tfc, GacCache gacCache, ReferencesResolver
refResolver, DirectoryInfo outputDir, String path) in C:\Documents and
Settings\drieseng\Local
Settings\Temp\tmp460.tmp\src\NAnt.VSNet\ProjectFactory.cs:line 95
   at NAnt.VSNet.Solution.LoadProjects(GacCache gacCache, ReferencesResolver
refResolver) in C:\Documents and Settings\drieseng\Local
Settings\Temp\tmp460.tmp\src\NAnt.VSNet\Solution.cs:line 575
   at NAnt.VSNet.Solution..ctor(FileInfo solutionFile, ArrayList
additionalProjects, ArrayList referenceProjects, TempFileCollection tfc,
SolutionTask solutionTask, WebMapCollection webMaps, FileSet
excludesProjects, DirectoryInfo outputDir, GacCache gacCache,
ReferencesResolver refResolver) in C:\Documents and Settings\drieseng\Local
Settings\Temp\tmp460.tmp\src\NAnt.VSNet\Solution.cs:line 130
   at NAnt.VSNet.Tasks.SolutionTask.ExecuteTask() in C:\Documents and
Settings\drieseng\Local
Settings\Temp\tmp460.tmp\src\NAnt.VSNet\Tasks\SolutionTask.cs:line 380
   at NAnt.Core.Task.Execute() in C:\Documents and Settings\drieseng\Local
Settings\Temp\tmp460.tmp\src\NAnt.Core\Task.cs:line 177
   at NAnt.Core.Target.Execute() in C:\Documents and Settings\drieseng\Local
Settings\Temp\tmp460.tmp\src\NAnt.Core\Target.cs:line 249
   at NAnt.Core.Project.Execute(String targetName, Boolean
forceDependencies) in C:\Documents and Settings\drieseng\Local
Settings\Temp\tmp460.tmp\src\NAnt.Core\Project.cs:line 876
   at NAnt.Core.Project.Execute(String targetName) in C:\Documents and
Settings\drieseng\Local
Settings\Temp\tmp460.tmp\src\NAnt.Core\Project.cs:line 846
   at NAnt.Core.Tasks.CallTask.ExecuteTask() in C:\Documents and
Settings\drieseng\Local
Settings\Temp\tmp460.tmp\src\NAnt.Core\Tasks\CallTask.cs:line 117
   at NAnt.Core.Task.Execute() in C:\Documents and Settings\drieseng\Local
Settings\Temp\tmp460.tmp\src\NAnt.Core\Task.cs:line 177
   at NAnt.Core.Target.Execute() in C:\Documents and Settings\drieseng\Local
Settings\Temp\tmp460.tmp\src\NAnt.Core\Target.cs:line 249
   at NAnt.Core.Project.Execute(String targetName, Boolean
forceDependencies) in C:\Documents and Settings\drieseng\Local
Settings\Temp\tmp460.tmp\src\NAnt.Core\Project.cs:line 876
   at NAnt.Core.Project.Execute(String targetName) in C:\Documents and
Settings\drieseng\Local
Settings\Temp\tmp460.tmp\src\NAnt.Core\Project.cs:line 846
   at NAnt.Core.Tasks.CallTask.ExecuteTask() in C:\Documents and
Settings\drieseng\Local
Settings\Temp\tmp460.tmp\src\NAnt.Core\Tasks\CallTask.cs:line 117
   at NAnt.Core.Task.Execute() in C:\Documents and Settings\drieseng\Local
Settings\Temp\tmp460.tmp\src\NAnt.Core\Task.cs:line 177
   at NAnt.Core.Target.Execute() in C:\Documents and Settings\drieseng\Local
Settings\Temp\tmp460.tmp\src\NAnt.Core\Target.cs:line 249
   at NAnt.Core.Project.Execute(String targetName, Boolean
forceDependencies) in C:\Documents and Settings\drieseng\Local
Settings\Temp\tmp460.tmp\src\NAnt.Core\Project.cs:line 876
   at NAnt.Core.Project.Execute() in C:\Documents and
Settings\drieseng\Local
Settings\Temp\tmp460.tmp\src\NAnt.Core\Project.cs:line 833
   at NAnt.Core.Project.Run() in C:\Documents and Settings\drieseng\Local
Settings\Temp\tmp460.tmp\src\NAnt.Core\Project.cs:line 902
 
Please send bug report to [EMAIL PROTECTED]
 
Total time: 0.5 seconds.
 
The problem is with the ProjectSettings class in
Nant.VSNet.ProjectSettings.cs does not support the new VS beta project
format.
 
Has anyone updated the  ProjectSettings  class to support VS beta project
files? 
 
If nobody else has done this, I can probably update this class myself, but
before I do, I want to make sure I'm not missing anything, or
re-inveting the wheel.
 
thanks
terryru

________________________________

Do you Yahoo!?
vote.yahoo.com - Register online to vote today!



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to