So I've been battling against using the Solution task in NAnt to automate the build of a large VB.Net solution that includes heaps of libraries and a web service and all sorts

I was hoping to have it done like this:
<solution configuration="Debug"
solutionfile="LargeProject.sln" >
<webmap>
<map url="http://localhost/Project/ProjectWebService/ProjectWS.vbproj"
path="C:\Inetpub\wwwroot\Project\ProjectWebService\ProjectWS.vbproj"/>
</webmap>
</solution>...but was getting lots of errors like:
error BC30002: Type 'Xml.XmlDocument' is not defined.
It turns out the source of this is all the odds and ends that VB.Net automatically includes in your project - I was only vaguely aware of them, and it seems like there is no option on the Solution task for it.
After some googling and general messing around, I added an Exec task to the build as thus:
<exec program="C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE\devenv.exe">
<arg line="EPOnline2.0.sln /build Debug"/>
</exec>The down side is there is no nice output from devenv.exe like you get from the Solution & VBC tasks, but my build succeeds and that makes me happy
After blog mint [?]: I didn't read the devenv.exe /? help close enough! If you include /Out at the end of the command line (i.e. after /build Debug in the above example) you do get the pretty output.