There is a solution (a vs.net addin) that we use at work, right now. I have the approval to donate it to NAntContrib, if there is a desire. It would be unsupported, but the code is easy to modify. Anyway, this is sort of an overview of what it does.
Our build file (located at the solution level of the project) would contain something similar to this. Note, I wrote it somewhat quickly and there might contain some errors... <project name="sample" default="build"> <target name="preBuildSteps"> ... </target> <target name="build"> <call target="preBuildSteps" /> <solution src="MySolution.sln" ...> <call target="postBuildSteps" /> </target> <target name="postBuildSteps"> ... </target> When a rebuild is performed in Visual Studio, the addin will find the build script and run the tasks before the solution tag. The output (from Nant) is redirected to the output pane. Visual studio is then used to build the solution (as normal). Finally, NAnt is used to run the tasks after the solution element. It makes re-setting the database and/or building strongly typed objects from schemas nice. Those are just examples of what you can do before the solution is built. Anyway, if you want more information on this addin, let me know. Or if someone is interested, let me know and I can add it to CVS... Jim > What are the various strategies for integrating nant with Visual Studio > .NET? I'd like to be able to launch nant within visual studio with the > build output redirected to the visual studio output pane. > > I've seen NAntRunner, but can't find any documentation on how to get it > configured. > > Are there any other options? > > Thanks, > Mike. ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users
