Reputation: 61
I have created build files of c# solution(.sln) files as well as the .cs file, but if i want to create a build file of only one project out of more than one project in a solution, i gets error some of those are like escape sequence character "\" etc.
I am including the project file as <include name="projectname.csproj" />
Upvotes: 4
Views: 3952
Reputation: 10347
NAnt does not use the project files directly. Either use the csc task or the msbuild to build a solution. You can read more in the documentation abou these tasks.
UPDATE: You can read the latest documentation at http://nant.sourceforge.net/release/latest/help/
UPDATE 2: Here's a link to an answer ashowing how you can achieve this by calling msbuild: <msbuild> task or msbuild.exe with NAnt?
Upvotes: 2