Hi Rajiv,
Can you submit a bug report for this, and attach a small repro ?
Thanks !
Gert
_____
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rajiv
Srivastava
Sent: maandag 23 april 2007 12:33
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] NANT 0.86 <Solution> tasks shows error.for VS2005
webapplication projects
Hi There,
I just downloaded NANT nightly build and re-placed my NANT ver 0.85 with
downloaded one i.e. NANT 0.86 with the hope of executing solution task for
my web services solution file written using VSNET 2005. I had heard that
unlike VS 2003, we do not have to provide URL for the web services solutions
and so wrote the following code...
VS 2005:
<solution configuration = "release" solutionfile = "AspenWebServices.sln" >
</solution>
For VS2003, it was something like this...
<webmap>
<map url = "http://localhost/AspenWS/AspenWS.csproj" path =
"${ROOT_DRIVE}/${ROOT_DIRECTORY}/aspen_ws/AspenWebServices/AspenWS/AspenWS.c
sproj" />
</webmap>
.
Now when I am executing build for VS2005, I am getting the following
error...
System.NullReferenceException: Object reference not set to an
instance of an object.
at NAnt.MSBuild.MSBuildConfiguration..ctor(MSBuildProject
project, Project msproj) in
d:\Source\nant-20070415T122232Z\src\NAnt.MSBuild\MSBuildConfiguration.cs:lin
e 47
at NAnt.MSBuild.MSBuildProject..ctor(SolutionBase solution,
String projectPath, XmlElement xmlDefinition, SolutionTask solutionTask,
TempFileCollection tfc, GacCache gacCache, Reference
solver refResolver, DirectoryInfo outputDir) in
d:\Source\nant-20070415T122232Z\src\NAnt.MSBuild\MSBuildProject.cs:line 97
at NAnt.MSBuild.MSBuildProjectProvider.GetInstance(SolutionBase
solution, String projectPath, XmlElement xmlDefinition, SolutionTask
solutionTask, TempFileCollection tfc, GacCache gacCa
, ReferencesResolver refResolver, DirectoryInfo outputDir) in
d:\Source\nant-20070415T122232Z\src\NAnt.MSBuild\MSBuildProjectProvider.cs:l
ine 45
at NAnt.VSNet.ProjectFactory.CreateProject(SolutionBase
solution, SolutionTask solutionTask, TempFileCollection tfc, GacCache
gacCache, ReferencesResolver referencesResolver, DirectoryI
outputDir, String projectPath) in
d:\Source\nant-20070415T122232Z\src\NAnt.VSNet\ProjectFactory.cs:line 169
at NAnt.VSNet.ProjectFactory.LoadProject(SolutionBase solution,
SolutionTask solutionTask, TempFileCollection tfc, GacCache gacCache,
ReferencesResolver referencesResolver, DirectoryInf
utputDir, String path) in
d:\Source\nant-20070415T122232Z\src\NAnt.VSNet\ProjectFactory.cs:line 100
at NAnt.VSNet.SolutionBase.LoadProjects(GacCache gacCache,
ReferencesResolver refResolver, Hashtable explicitProjectDependencies) in
d:\Source\nant-20070415T122232Z\src\NAnt.VSNet\Solut
Base.cs:line 396
at NAnt.VSNet.WhidbeySolution..ctor(String solutionContent,
SolutionTask solutionTask, TempFileCollection tfc, GacCache gacCache,
ReferencesResolver refResolver) in d:\Source\nant-20070
T122232Z\src\NAnt.MSBuild\WhidbeySolution.cs:line 100
at NAnt.VSNet.WhidbeySolutionProvider.GetInstance(String
solutionContent, SolutionTask solutionTask, TempFileCollection tfc, GacCache
gacCache, ReferencesResolver refResolver) in d:\Sou
\nant-20070415T122232Z\src\NAnt.MSBuild\WhidbeySolutionProvider.cs:line 50
at NAnt.VSNet.SolutionFactory.LoadSolution(SolutionTask
solutionTask, TempFileCollection tfc, GacCache gacCache, ReferencesResolver
refResolver) in d:\Source\nant-20070415T122232Z\src\N
.VSNet\SolutionFactory.cs:line 76
at NAnt.VSNet.Tasks.SolutionTask.ExecuteTask() in
d:\Source\nant-20070415T122232Z\src\NAnt.VSNet\Tasks\SolutionTask.cs:line
452
at NAnt.Core.Task.Execute() in
d:\Source\nant-20070415T122232Z\src\NAnt.Core\Task.cs:line 185
at NAnt.Core.Target.Execute() in
d:\Source\nant-20070415T122232Z\src\NAnt.Core\Target.cs:line 247
at NAnt.Core.Project.Execute(String targetName, Boolean
forceDependencies) in
d:\Source\nant-20070415T122232Z\src\NAnt.Core\Project.cs:line 910
at NAnt.Core.Project.Execute() in
d:\Source\nant-20070415T122232Z\src\NAnt.Core\Project.cs:line 862
at NAnt.Core.Project.Run() in
d:\Source\nant-20070415T122232Z\src\NAnt.Core\Project.cs:line 947
Please send bug report to [EMAIL PROTECTED]
Not able to locate the error. Could somebody put some light on this?
Thanks!
Rajiv Kr. Srivastava
_____
Check out what you're missing if you're not on Yahoo!
<http://us.rd.yahoo.com/mail/in/ymessenger/*http://in.messenger.yahoo.com/>
Messenger
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users