<PropertyGroup> <PostBuildEvent> if "$(ConfigurationName)" == "Release" goto Release goto End :Release copy *.* ..\..\..\..\Release\ :End </PostBuildEvent> </PropertyGroup>