You can specify the OutputPath (or OutDir) property in your arguments. See
http://msdn.microsoft.com/en-us/library/bb629394.aspx

The path is relative to the .csproj files, I usually use "..\Compil".

Hope this helps,
Benjamin

2010/10/12 Stones * <[email protected]>

> I have MSBuild building multiple solution files. Is there a way to
> allow it to build to the normal bin\release folder and then only copy
> the *.dll files from the release folder to a static location.
>
> I have been trying to put it into postbuildevent but can't seem to get
> it:
>
>
>
> <Target Name="BuildProjects">
>   <Message Text="Starting to Build"/>
>   <MSBuild Projects="@(Solution)" Targets="Clean;Build"
> RunEachTargetSeparately="true" Properties="Configuration=$
> (Configuration);postbuildevent=copy bin\$(Configuration)\*.dll \\stones
> \bin\;Platform=Any CPU;ReferencePath=$(SomeReferencePath)"
> ContinueOnError="true" />
> </Target>

Reply via email to