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>

Gary


-------------------------------------------------------------------------
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