1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
<?xml version="1.0"?>
<project name="MonWebSite" default="build" basedir="." xmlns="http://nant.sf.net/release/0.86-beta1/nant.xsd">
<property name="BaseDir" value = "..\" />
<property name="DeployWeb" value="${BaseDir}\Deploy\" />
<property name="SolutionName" value="MonWebSite\MonWebSite.sln" />
<property name="SolutionPath" value="C:\VS_Solution\" />
<property name="aspx.dir" value="${BaseDir}\WebSite\" />
<property name="build.dir" value="C:\VS_Solution\MonWebSite\WebSite\bin\" />
<property name="BuildType" value="Debug" />
<property name="msbuildArgs" value='/p:Configuration=${BuildType} /p:Platform="Any CPU"' />
<target name="clean" description="Suppression du repertoire \deploy">
<delete dir="${DeployWeb}" failonerror="false" />
<mkdir dir="${DeployWeb}" failonerror="false" />
</target>
<target name="build" description="Compilation of the solution">
<exec
program="C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe"
commandline="${SolutionPath}${SolutionName} ${msbuildArgs}"
verbose="false"
useruntimeengine="true"
>
</exec>
</target>
<target name="DeletePDB" depends="build">
<delete>
<fileset basedir="${build.dir}">
<include name="*.pdb" />
</fileset>
</delete>
</target>
<target name="copyBuild" description="copy build to \deploy">
<copy todir="C:\VS_Solution\MonWebSite\Deploy">
<fileset basedir="${build.dir}">
<include name="*.dll" />
</fileset>
</copy>
</target>
</project> |
Partager