Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to integrate NAnt with Visual Studio?

I'm just trying to get into NAnt for my build processes, and successfully have a script that sets up a build dir, and compiles a sln file into it. My question now is, on a day to day basis how would you execute the NAnt script from Visual Studio. I'm used to just hitting Ctrl + Shift + B and then just refreshing my browser (I have a local site setup pointing to the project folder), but whats the best way to intergrate the NAnt script with VS?

Many thanks

Matt

like image 853
Matt Brailsford Avatar asked Jan 05 '10 12:01

Matt Brailsford


People also ask

What is NAnt used for?

NAnt is a free and open source software tool for automating software build processes. It is similar to Apache Ant, but targeted at the . NET environment rather than Java.

What does clean stand for in the command NAnt clean?

nant. Runs NAnt and builds the project in debug mode (the default). nant clean. Runs NAnt and removes the compiled files if they exist. nant -D:debug=false.


1 Answers

Depends what you want to do with it.

You can add it as a post/pre build event, if that's your thing (I do that for some things), but mostly I use NAnt to build on the buildserver, so it doesn't serve much purpose on the local machine.

like image 147
Noon Silk Avatar answered Sep 20 '22 06:09

Noon Silk