A similar question was asked recently on the mailing list. I do not know if this is the same situation that you have encountered, but hopefully this will help you. Based on the needs of this person, I recommended the following for the msbuild task.
CLIENT_SOURCE_DIR = 'C:/Builds/MySolution/Source/Client/'
PUBLISH_CLIENT_DIR = 'C:/Builds/MySolution/Publish/Client/'
desc 'Publish the web site'
msbuild :publish do |msb|
msb.solution = "#{CLIENT_SOURCE_DIR}/Client.csproj"
msb.targets [:Clean, :Rebuild]
msb.properties = {
:configuration => :Release,
:UseWPP_CopyWebApplication => true,
:PipelineDependsOnBuild => false,
:webprojectoutputdir => "#{PUBLISH_CLIENT_DIR}/",
:outdir => "#{PUBLISH_CLIENT_DIR}/bin/"
}
end
source
share