try running the MSBuild from the command line and note any errors that may occur. One problem that I encountered immediately is that the Current Working Directory was not what I expected. Try this in your post-build event. echo CD: %CD% echo TargetDir: $(TargetDir) echo ProjectDir: $(ProjectDir)
also, I think you may have the macro incorrect. isn't it $ (ConfigurationName) instead of $(Configuration) On Oct 12, 2:53 am, "Stones *" <[email protected]> wrote: > 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>
