I have a Visual Studio 2005 solution (.sln) with a mix of .NET and C++ projects. What is the best way to generate the .build file I will need to run my build process with NAnt. I'm new to using NAnt, and I'm not sure how to set it up. Will I have to update the .build file manually every time there is a new source file in any of the projects? Is there a tool that will generate the files for NAnt from the .sln and studio project files?
R – How to bootstrap NAnt environment from an existing solution (.sln)
auto-generatenantvisual studio
Related Topic
- Visual-studio – What are the various “Build action” settings in Visual Studio project properties and what do they do
- Visual-studio – How to add an existing directory tree to a project in Visual Studio
- Visual-studio – Open two instances of a file in a single Visual Studio session
- Visual-studio – Proper way to rename solution (and directories) in Visual Studio
- C# – How to remedy “The breakpoint will not currently be hit. No symbols have been loaded for this document.” warning
- .net – Release generating .pdb files, why
- Visual-studio – Error ‘LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt’ after installing Visual Studio 2012 Release Preview
- Asp.net-mvc – Visual Studio debugging/loading very slow
Best Answer
There is no way that I know of to generate a .build file from an sln. There should be decent examples of .build files at http://nant.sourceforge.net.
That being said there are two ways to build a .sln file from NAnt.
msbuild.exe has native support for sln files. You can build an sln file from the command line as follows:
msbuild.exe can be found in your .NET Framework directory (e.g. C:\WINDOWS\Microsoft.NET\Framework\vX.XX.XXXX)