<p>I've already got a NAnt build script that builds/runs tests/zips web project together, etc. but I'm working on a basic desktop application.  How would I go about building the setup project using NAnt so I can include it with the build report on TeamCity.</p>

<p>Edit: The setup is the basic Setup Project supplied with Visual Studio.  It's for internal to a company so it doesn't do anything fancy.</p>

[{'answer_id': 82195, 'author': 'Scott Dorman', 'author_id': 1559, 'author_profile': 'https://Stackoverflow.com/users/1559', 'pm_score': 2, 'selected': False, 'text': '<p>The only way to build a Visual Studio setup project is through Visual Studio. You will need to have a copy of VS installed on the build machine and run it as a command line tool (exec devenv.exe) with the appropriate parameters (which should be the build mode (release or debug) and the project name to build, there might be a few others but you can run devenv /? to get a list of the different command line options).</p>\n'}, {'answer_id': 82224, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 3, 'selected': True, 'text': "<p>It's been a few years, but the last time I had to do this, I used a tool called Wix, which had utilities named Candle and Light.  I used these tools in my NAnt script to create an MSI Installer.</p>\n"}, {'answer_id': 82240, 'author': 'EggyBach', 'author_id': 15475, 'author_profile': 'https://Stackoverflow.com/users/15475', 'pm_score': 0, 'selected': False, 'text': "<p>Instead of trying to build using MSBUILD (assumption), build the solution or project using DEVENV.EXE. The command line is something along the lines of:</p>\n\n<p>DEVENV MySolutionFile.sln /build DEBUG /project SetupProject.vdproj</p>\n\n<p>You can change the DEBUG to RELEASE or any other build configuration you've set up. You can also leave out the /project... part to build the whole solution.</p>\n"}]
['https://Stackoverflow.com/questions/82169', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/5802/']