[Mwinapi-commits] SF.net SVN: mwinapi:[82] trunk/nant.build
Status: Beta
Brought to you by:
schierlm
From: <sch...@us...> - 2009-04-13 15:35:34
|
Revision: 82 http://mwinapi.svn.sourceforge.net/mwinapi/?rev=82&view=rev Author: schierlm Date: 2009-04-13 15:35:03 +0000 (Mon, 13 Apr 2009) Log Message: ----------- Change nant.build to launch msbuild.exe for compiling the project rather than the Visual Studio 2005 compiler. The end result should be the same. The change was made because everyone working with the project will have .net 2.0, but not everyone will use Visual Studio 2005. [submitted by Ron Vanderwal <mcdon dot ron at gmail dot com>] Modified Paths: -------------- trunk/nant.build Modified: trunk/nant.build =================================================================== --- trunk/nant.build 2009-03-29 16:22:29 UTC (rev 81) +++ trunk/nant.build 2009-04-13 15:35:03 UTC (rev 82) @@ -1,21 +1,21 @@ <?xml version="1.0"?> <project name="ManagedWinapi" default="build"> - <!-- Path to Microsoft Visual Studio 2005 command line version to compile stuff --> - <property name="devenv.path" value="d:\Progs\Microsoft Visual Studio 8\Common7\IDE\devenv"/> + <!-- Path to MSBuild to compile stuff --> + <property name="msbuild.path" value="${environment::get-variable('windir')}\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe"/> <target name="clean"> <delete dir="build"/> <delete dir="dist"/> - <exec program="${devenv.path}" verbose="True"> + <exec program="${msbuild.path}" verbose="True"> <arg value="ManagedWinapi.sln"/> - <arg value="/clean"/> - <arg value="Release"/> + <arg value="/t:Clean"/> + <arg value="/p:Configuration=Release"/> </exec> - <exec program="${devenv.path}" verbose="True"> + <exec program="${msbuild.path}" verbose="True"> <arg value="ManagedWinapi.sln"/> - <arg value="/clean"/> - <arg value="Debug"/> + <arg value="/t:Clean"/> + <arg value="/p:Configuration=Debug"/> </exec> <foreach item="File" property="solutionfile"> <in> @@ -24,15 +24,15 @@ </items> </in> <do> - <exec program="${devenv.path}" verbose="True"> + <exec program="${msbuild.path}" verbose="True"> <arg value="${solutionfile}"/> - <arg value="/clean"/> - <arg value="Debug"/> + <arg value="/t:Clean"/> + <arg value="/p:Configuration=Debug"/> </exec> - <exec program="${devenv.path}" verbose="True"> + <exec program="${msbuild.path}" verbose="True"> <arg value="${solutionfile}"/> - <arg value="/clean"/> - <arg value="Release"/> + <arg value="/t:Clean"/> + <arg value="/p:Configuration=Release"/> </exec> </do> </foreach> @@ -40,10 +40,10 @@ <target name="build-dll"> <mkdir dir="build/bin" /> - <exec program="${devenv.path}" verbose="True"> + <exec program="${msbuild.path}" verbose="True"> <arg value="ManagedWinapi.sln"/> - <arg value="/build"/> - <arg value="Release"/> + <arg value="/t:Build"/> + <arg value="/p:Configuration=Release"/> </exec> <copy file="ManagedWinapi\bin\release\ManagedWinapi.dll" todir="build/bin"/> @@ -62,10 +62,10 @@ </in> <do> <property name="toolname" value="${path::get-file-name(toolpath)}" /> - <exec program="${devenv.path}" verbose="True"> + <exec program="${msbuild.path}" verbose="True"> <arg value="Tools/${toolname}.sln"/> - <arg value="/build"/> - <arg value="Release"/> + <arg value="/t:Build"/> + <arg value="/p:Configuration=Release"/> </exec> <copy file="Tools/${toolname}/bin/Release/${toolname}.exe" todir="build/bin"/> </do> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |