当我从Visual Studio 2010发布时,它会根据 Web.Debug.config
或 Web.Release.config
转换 web.config
。在Albacore中是否有一种使用aspnet_compiler
或其他方式实现这一功能的方法?
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