> ----- Original Message ----- 
> From: "Gary Feldman" <[EMAIL PROTECTED]>
> To: <nant-users@lists.sourceforge.net>
> Sent: Thursday, July 27, 2006 1:22 AM
> Subject: Re: [NAnt-users] MSBuild
>

> Chris Holt wrote:
> >
> > I’m trying to switch my nant script to use the msbuild task instead of
> > executing devenv and I’m not sure how to properly choose the build
> > configuration.
> >
> > So for example, if I want to clean the Debug build of a solution file
> > I understand that I need to have the task defined like this:
> >
> > <msbuild project="${build.dir}\My.sln" target="Clean" />
> >
> > But how do I tell it to clean the debug configuration as opposed to
> > the Release configuration or vice versa?
> >
> > Does anybody have an example of doing this?
> >
> I use an explicit msbuild property switch as a command line argument:
>
> <msbuild ...>
> ...
> <arg value="/property:Configuration=${build.config}" />
> </msbuild>

You should use this instead:

<msbuild ...>
     ...
    <property name="Configuration" value="${build.config}" />
</msbuild>

Gary, can you add an example to the MSBuildTask.cs in NAntContrib ?

(let me know if you still need commit access)

Gert 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to