Can I do this in the postbuildevent=copy bin\$(Configuration)\*.dll \
\stones\bin\*.dll ?

I basically want to leave the outputdir the same as is ie \bin\release\
[compiled code].  However after the solution has been build I want to
copy all the dlls to a common folder.

On Oct 12, 9:57 am, Benjamin Baumann <[email protected]> wrote:
> You can specify the OutputPath (or OutDir) property in your arguments. 
> Seehttp://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