Hi,All,

I have a VC++ .NET project. I tried to use task "solution,project " in NANT to build it,but I always failed to build. Even I use solution file.

Here is my solution file:

<?xml version="1.0" ?>
<project name="codeHelpers." basedir="." default="build">
<target name="build">
<solution configuration="debug">
<projects>
<includes NAME= "D:\NANT\codeHelpers\codeHelpers.vcproj" />
</projects>
</solution>
</target>
</project>


When I run it. I got the following message:

D:\NANT\NANT\bin>nant
NAnt 0.85 (Build 0.85.1594.0; net-1.0.win32; nightly; 5/13/2004)
Copyright (C) 2001-2004 Gerry Shaw
NAnt Team

Buildfile: file:///D:/NANT/NANT/bin/test.build
Target(s) specified: build

build:

[solution] Starting solution build.

BUILD FAILED

INTERNAL ERROR

System.NullReferenceException: Object reference not set to an instance of an obj
ect.
at NAnt.VSNet.VcConfiguration..ctor(XmlElement elem, VcProject parentProject,
Solution parentSln, VcConfiguration parentConfig, DirectoryInfo outputDir) in C
:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp9D7.tmp\src\NAnt.VSNet\VcConfiguration.cs:l
ine 58
at NAnt.VSNet.VcConfiguration..ctor(XmlElement elem, VcProject parentProject,
Solution parentSln, DirectoryInfo outputDir) in C:\DOCUME~1\ADMINI~1\LOCALS~1\T
emp\tmp9D7.tmp\src\NAnt.VSNet\VcConfiguration.cs:line 42
at NAnt.VSNet.VcProject.Load(Solution sln, String projectPath) in C:\DOCUME~1
\ADMINI~1\LOCALS~1\Temp\tmp9D7.tmp\src\NAnt.VSNet\VcProject.cs:line 159
at NAnt.VSNet.ProjectFactory.LoadProject(Solution sln, SolutionTask slnTask,
TempFileCollection tfc, GacCache gacCache, DirectoryInfo outputDir, String path)
in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp9D7.tmp\src\NAnt.VSNet\ProjectFactory.
cs:line 76
at NAnt.VSNet.Solution.LoadProjects(GacCache gacCache) in C:\DOCUME~1\ADMINI~
1\LOCALS~1\Temp\tmp9D7.tmp\src\NAnt.VSNet\Solution.cs:line 535
at NAnt.VSNet.Solution..ctor(ArrayList projects, ArrayList referenceProjects,
TempFileCollection tfc, SolutionTask solutionTask, WebMapCollection webMaps, Fi
leSet excludesProjects, DirectoryInfo outputDir, GacCache gacCache) in C:\DOCUME
~1\ADMINI~1\LOCALS~1\Temp\tmp9D7.tmp\src\NAnt.VSNet\Solution.cs:line 137
at NAnt.VSNet.Tasks.SolutionTask.ExecuteTask() in C:\DOCUME~1\ADMINI~1\LOCALS
~1\Temp\tmp9D7.tmp\src\NAnt.VSNet\Tasks\SolutionTask.cs:line 362
at NAnt.Core.Task.Execute() in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp9D7.tmp\
src\NAnt.Core\Task.cs:line 176
at NAnt.Core.Target.Execute() in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp9D7.tm
p\src\NAnt.Core\Target.cs:line 249
at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies) in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp9D7.tmp\src\NAnt.Core\Project.cs:line 870


at NAnt.Core.Project.Execute() in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp9D7.t
mp\src\NAnt.Core\Project.cs:line 827
at NAnt.Core.Project.Run() in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp9D7.tmp\s
rc\NAnt.Core\Project.cs:line 895


Please send bug report to [EMAIL PROTECTED]

Total time: 0.1 seconds.


Question:

1: Doesn't NANT support VC++ .NET (project and solution)
2: I has a .vdproj file (setup project). It doesn't work in NANT. How to slove it?


Thank you very much for your response!!

Charles

_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfeeŽ Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963




-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to