How do you use Nant to create an ASP.Net MVC project?

Does anyone have an example nant build file for creating an MVC2 project? I'm not sure if you can use msbuild or you need to use aspnet_compiler, or if nant just processes it.

thank

+3
source share
2 answers

Using the msbuild task in your solution file, you need to collect all the projects in this solution, including MVC projects. Here is a sample from my own build script:

<target name="msbuild_solution">
    <msbuild project="build.sln"  verbosity="minimal">
        <property name="Configuration" value="Release" />
        <arg value="/t:Build" />
        <arg value="/nologo" />
        <arg value="/noconsolelogger" />
        <arg value="/m:2" />
        <arg value="/tv:3.5" />
    </msbuild>
</target>
+2
source

Have you watched this blog post ?:

http://unethicalblogger.com/node/224

This was written for MVC1, so you might need to make some settings for MVC2.

+1
source

Source: https://habr.com/ru/post/1746285/


All Articles